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