2 Summary: Media Fileinfo
5 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: libmm-fileinfo.manifest
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
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)
23 BuildRequires: pkgconfig(gmock)
27 Multimedia Framework FileInfo Library
30 Summary: Media Fileinfo Tools
31 Group: Development/Tools
32 Requires: %{name} = %{version}-%{release}
35 Multimedia Framework FileInfo Tools
38 Summary: Media Fileinfo
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
43 Multimedia Framework FileInfo Library (development files)
50 %if "%{tizen_profile_name}" == "tv"
51 export CFLAGS+=" -DUSE_CODEC_VPX"
53 export CFLAGS+=" -Wextra -Wno-array-bounds"
54 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
55 export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror"
56 export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -fgnu89-inline -fstack-protector-strong -D_FORTIFY_SOURCE=2"
60 CFLAGS="${CFLAGS} -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" " LDFLAGS="${LDFLAGS}" \
61 ./configure --disable-testmode --disable-dump --enable-dyn --disable-iommap --prefix=/usr \
72 mkdir -p %{buildroot}%{_sysconfdir}/multimedia
73 cp -rf %{_builddir}/%{name}-%{version}/mm_file_config.ini %{buildroot}%{_sysconfdir}/multimedia/mm_file_config.ini
75 mkdir -p %{buildroot}%{_bindir}
76 cp -rf %{_builddir}/%{name}-%{version}/unittest/*.mp4 %{buildroot}%{_bindir}/
77 cp -rf %{_builddir}/%{name}-%{version}/unittest/*.mp3 %{buildroot}%{_bindir}/
80 %post -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
85 %manifest %{name}.manifest
86 %{_libdir}/libmmffile.so.*
87 %{_libdir}/libmmfile_formats.so.*
88 %{_libdir}/libmmfile_utils.so.*
89 %{_libdir}/libmmffile.so
90 %{_libdir}/libmmfile_formats.so
91 %{_libdir}/libmmfile_utils.so
92 %{_sysconfdir}/multimedia/mm_file_config.ini
95 %{_bindir}/libmm-fileinfo-unittest*
97 %license LICENSE.APLv2.0
100 %manifest %{name}.manifest
101 %{_bindir}/mm_file_test
104 %manifest %{name}.manifest
105 %{_includedir}/mmf/mm_file.h
106 %{_includedir}/mmf/mm_file_error.h
107 %{_libdir}/pkgconfig/mm-fileinfo.pc