Fix svace issue
[platform/core/multimedia/libmm-fileinfo.git] / packaging / libmm-fileinfo.spec
1 Name:       libmm-fileinfo
2 Summary:    Media Fileinfo
3 Version:    0.6.49
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(libavcodec)
17 BuildRequires: pkgconfig(libavutil)
18 BuildRequires: pkgconfig(libavformat)
19 BuildRequires: pkgconfig(icu-i18n)
20 BuildRequires: pkgconfig(vconf)
21
22 %description
23 Multimedia Framework FileInfo Library
24
25 %package devel
26 Summary:    Media Fileinfo
27 Group:      Development/Libraries
28 Requires:   %{name} = %{version}-%{release}
29
30 %description devel
31 Multimedia Framework FileInfo Library (development files)
32
33 %prep
34 %setup -q
35 cp %{SOURCE1001} .
36
37 %build
38 export CFLAGS+=" -Wextra -Wno-array-bounds"
39 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
40 export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror"
41 export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast"
42 ./autogen.sh
43
44 %reconfigure \
45 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
46
47 %__make
48
49 %install
50 %make_install
51
52 %post -p /sbin/ldconfig
53
54 %postun -p /sbin/ldconfig
55
56 %files
57 %manifest %{name}.manifest
58 %{_bindir}/mm_file_test
59 %{_libdir}/libmmffile.so.*
60 %{_libdir}/libmmfile_codecs.so.*
61 %{_libdir}/libmmfile_formats.so.*
62 %{_libdir}/libmmfile_utils.so.*
63 %{_libdir}/libmmffile.so
64 %{_libdir}/libmmfile_codecs.so
65 %{_libdir}/libmmfile_formats.so
66 %{_libdir}/libmmfile_utils.so
67 %license LICENSE.APLv2.0
68
69 %files devel
70 %manifest %{name}.manifest
71 %{_includedir}/mmf/mm_file.h
72 %{_includedir}/mmf/mm_file_error.h
73 %{_libdir}/pkgconfig/mm-fileinfo.pc