Merge "support album art." into tizen
[platform/core/multimedia/libmm-fileinfo.git] / packaging / libmm-fileinfo.spec
1 Name:       libmm-fileinfo
2 Summary:    Media Fileinfo
3 Version:    0.6.1
4 Release:    0
5 Group:      System/Libraries
6 License:    Apache-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 %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 cp %{SOURCE1001} .
38
39 %build
40 CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "
41 export CFLAGS
42
43 %reconfigure \
44     --disable-testmode \
45     --disable-dump \
46     --enable-dyn \
47     --disable-iommap \
48     --disable-gtk \
49 %if %{use_drm}
50     --enable-drm
51 %else
52     --disable-drm
53 %endif
54
55 %__make
56
57 %install
58 %make_install
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 %license LICENSE.APLv2.0
77
78 %files devel
79 %manifest %{name}.manifest
80 %{_includedir}/mmf/mm_file.h
81 %{_libdir}/pkgconfig/mm-fileinfo.pc
82