summaryrefslogtreecommitdiff
path: root/packaging/libmm-fileinfo.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/libmm-fileinfo.spec')
-rwxr-xr-xpackaging/libmm-fileinfo.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/packaging/libmm-fileinfo.spec b/packaging/libmm-fileinfo.spec
new file mode 100755
index 0000000..35b6277
--- /dev/null
+++ b/packaging/libmm-fileinfo.spec
@@ -0,0 +1,78 @@
+Name: libmm-fileinfo
+Summary: Media Fileinfo
+Version: 0.6.0
+Release: 14
+Group: System/Libraries
+License: Apache License, Version 2.0
+Source0: %{name}-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+BuildRequires: pkgconfig(mm-common)
+BuildRequires: pkgconfig(mm-log)
+BuildRequires: pkgconfig(libswscale)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(libavcodec)
+BuildRequires: pkgconfig(libavutil)
+BuildRequires: pkgconfig(libavformat)
+
+%define use_drm 1
+
+%if %{use_drm}
+BuildRequires: libss-client-devel
+BuildRequires: pkgconfig(drm-client)
+%endif
+
+%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
+./autogen.sh
+
+%if %{use_drm}
+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
+%else
+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
+%endif
+
+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}/memtrace_reader
+%{_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