merge with master
[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:    17
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 1
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 ./autogen.sh
40
41 %if %{use_drm}
42 CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " LDFLAGS="${LDFLAGS}" ./configure  --disable-testmode --disable-dump --enable-dyn --disable-iommap --prefix=/usr --enable-drm --disable-gtk
43 %else
44 CFLAGS="${CFLAGS} -D_MM_PROJECT_FLOATER -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " LDFLAGS="${LDFLAGS}" ./configure --disable-testmode --disable-dump --enable-dyn --disable-iommap --prefix=/usr --disable-drm --disable-gtk
45 %endif
46
47 make
48
49 %install
50 %make_install
51 mkdir -p %{buildroot}/%{_datadir}/license
52 cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
53
54
55 %post -p /sbin/ldconfig
56
57 %postun -p /sbin/ldconfig
58
59 %files
60 %manifest libmm-fileinfo.manifest
61 %{_bindir}/memtrace_reader
62 %{_bindir}/mm_file_test
63 %{_libdir}/libmmffile.so.*
64 %{_libdir}/libmmfile_codecs.so.*
65 %{_libdir}/libmmfile_formats.so.*
66 %{_libdir}/libmmfile_utils.so.*
67 %{_libdir}/libmmffile.so
68 %{_libdir}/libmmfile_codecs.so
69 %{_libdir}/libmmfile_formats.so
70 %{_libdir}/libmmfile_utils.so
71 %{_datadir}/license/%{name}
72
73 %files devel
74 %{_includedir}/mmf/mm_file.h
75 %{_libdir}/pkgconfig/mm-fileinfo.pc