Add to check junk data
[platform/core/multimedia/libmm-fileinfo.git] / packaging / libmm-fileinfo.spec
1 Name:       libmm-fileinfo
2 Summary:    Media Fileinfo
3 Version:    0.6.58
4 Release:    0
5 Group:      System/Libraries
6 License:    Apache-2.0
7 Source0:    %{name}-%{version}.tar.gz
8 Source1001:    libmm-fileinfo.manifest
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11
12 BuildRequires: pkgconfig(mm-common)
13 BuildRequires: pkgconfig(dlog)
14 BuildRequires: pkgconfig(libswscale)
15 BuildRequires: pkgconfig(glib-2.0)
16 BuildRequires: pkgconfig(iniparser)
17 BuildRequires: pkgconfig(libavcodec)
18 BuildRequires: pkgconfig(libavutil)
19 BuildRequires: pkgconfig(libavformat)
20 BuildRequires: pkgconfig(icu-i18n)
21 BuildRequires: pkgconfig(vconf)
22
23 %description
24 Multimedia Framework FileInfo Library
25
26 %package tool
27 Summary:    Media Fileinfo Tools
28 Group:      Development/Tools
29 Requires:   %{name} = %{version}-%{release}
30
31 %description tool
32 Multimedia Framework FileInfo Tools
33
34 %package devel
35 Summary:    Media Fileinfo
36 Group:      Development/Libraries
37 Requires:   %{name} = %{version}-%{release}
38
39 %description devel
40 Multimedia Framework FileInfo Library (development files)
41
42 %prep
43 %setup -q
44 cp %{SOURCE1001} .
45
46 %build
47 export CFLAGS+=" -Wextra -Wno-array-bounds"
48 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
49 export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror"
50 export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fgnu89-inline"
51 ./autogen.sh
52
53 %reconfigure \
54 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-gtk
55
56 %__make
57
58 %install
59 %make_install
60
61 mkdir -p %{buildroot}%{_sysconfdir}/multimedia
62 cp -rf %{_builddir}/%{name}-%{version}/mm_file_config.ini %{buildroot}%{_sysconfdir}/multimedia/mm_file_config.ini
63
64 %post -p /sbin/ldconfig
65
66 %postun -p /sbin/ldconfig
67
68 %files
69 %manifest %{name}.manifest
70 %{_libdir}/libmmffile.so.*
71 %{_libdir}/libmmfile_codecs.so.*
72 %{_libdir}/libmmfile_formats.so.*
73 %{_libdir}/libmmfile_utils.so.*
74 %{_libdir}/libmmffile.so
75 %{_libdir}/libmmfile_codecs.so
76 %{_libdir}/libmmfile_formats.so
77 %{_libdir}/libmmfile_utils.so
78 %{_sysconfdir}/multimedia/mm_file_config.ini
79 %license LICENSE.APLv2.0
80
81 %files tool
82 %manifest %{name}.manifest
83 %{_bindir}/mm_file_test
84
85 %files devel
86 %manifest %{name}.manifest
87 %{_includedir}/mmf/mm_file.h
88 %{_includedir}/mmf/mm_file_error.h
89 %{_libdir}/pkgconfig/mm-fileinfo.pc