Name: libmm-fileinfo Summary: Media Fileinfo Version: 0.6.41 Release: 1 Group: System/Libraries License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig BuildRequires: pkgconfig(mm-common) BuildRequires: pkgconfig(dlog) BuildRequires: pkgconfig(libswscale) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavutil) BuildRequires: pkgconfig(libavformat) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(vconf) %description Multimedia Framework FileInfo Library %package devel Summary: Media Fileinfo Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Multimedia Framework FileInfo Library (developement files) %prep %setup -q %build export CFLAGS+=" -Wextra -Wno-array-bounds" export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow" export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror" export CFLAGS+=" -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast" ./autogen.sh 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 make %install %make_install mkdir -p %{buildroot}/%{_datadir}/license cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest libmm-fileinfo.manifest %{_bindir}/mm_file_test %{_libdir}/libmmffile.so.* %{_libdir}/libmmfile_codecs.so.* %{_libdir}/libmmfile_formats.so.* %{_libdir}/libmmfile_utils.so.* %{_libdir}/libmmffile.so %{_libdir}/libmmfile_codecs.so %{_libdir}/libmmfile_formats.so %{_libdir}/libmmfile_utils.so %{_datadir}/license/%{name} %files devel %{_includedir}/mmf/mm_file.h %{_libdir}/pkgconfig/mm-fileinfo.pc