Use general macro %configure for 64 bit compatibility.
[platform/core/multimedia/libmm-fileinfo.git] / packaging / libmm-fileinfo.spec
1 Name:       libmm-fileinfo
2 Summary:    Media Fileinfo
3 Version:    0.6.0
4 Release:    20
5 Group:      System/Libraries
6 License:    Apache License, Version 2.0
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires: pkgconfig(mm-common)
9 BuildRequires: pkgconfig(mm-log)
10 BuildRequires: pkgconfig(libswscale)
11 BuildRequires: pkgconfig(glib-2.0)
12 BuildRequires: pkgconfig(libavcodec)
13 BuildRequires: pkgconfig(libavutil)
14 BuildRequires: pkgconfig(libavformat)
15
16 %define use_drm 0
17
18 %if %{use_drm}
19 BuildRequires: libss-client-devel
20 BuildRequires: pkgconfig(drm-client)
21 %endif
22
23 %description
24 Multimedia Framework FileInfo Library
25
26
27 %package devel
28 Summary:    Media Fileinfo
29 Group:      Development/Libraries
30 Requires:   %{name} = %{version}-%{release}
31
32 %description devel
33 Multimedia Framework FileInfo Library (developement files)
34
35 %prep
36 %setup -q
37
38 %build
39 CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
40 export CFLAGS
41
42 %autogen.sh
43
44 %if %{use_drm}
45 %configure  --disable-testmode --disable-dump --enable-dyn --disable-iommap --enable-drm --disable-gtk
46 %else
47 %configure --disable-testmode --disable-dump --enable-dyn --disable-iommap  --disable-drm --disable-gtk         
48 %endif
49
50 make
51
52 %install
53 %make_install
54 mkdir -p %{buildroot}/%{_datadir}/license
55 cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
56
57
58 %post -p /sbin/ldconfig
59
60 %postun -p /sbin/ldconfig
61
62 %files
63 %manifest libmm-fileinfo.manifest
64 %{_bindir}/memtrace_reader
65 %{_bindir}/mm_file_test
66 %{_libdir}/libmmffile.so.*
67 %{_libdir}/libmmfile_codecs.so.*
68 %{_libdir}/libmmfile_formats.so.*
69 %{_libdir}/libmmfile_utils.so.*
70 %{_libdir}/libmmffile.so
71 %{_libdir}/libmmfile_codecs.so
72 %{_libdir}/libmmfile_formats.so
73 %{_libdir}/libmmfile_utils.so
74 %{_datadir}/license/%{name}
75
76 %files devel
77 %{_includedir}/mmf/mm_file.h
78 %{_libdir}/pkgconfig/mm-fileinfo.pc