summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/libmedia-thumbnail.spec91
1 files changed, 45 insertions, 46 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index ab203d9..dc252c3 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,52 +1,52 @@
-Name: libmedia-thumbnail
-Summary: Media thumbnail service library for multimedia applications.
-Version: 0.1.77
-Release: 1
-Group: utils
-License: Apache
-Source0: %{name}-%{version}.tar.gz
-Source1001: %{name}.manifest
-Source1002: %{name}-devel.manifest
-Source1003: media-thumbnail-server.manifest
-
-Requires: media-server
-BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(mm-fileinfo)
-BuildRequires: pkgconfig(mmutil-imgp)
-BuildRequires: pkgconfig(mmutil-jpeg)
-BuildRequires: pkgconfig(drm-client)
-BuildRequires: pkgconfig(libexif)
-BuildRequires: pkgconfig(heynoti)
-BuildRequires: pkgconfig(evas)
-BuildRequires: pkgconfig(ecore)
-BuildRequires: pkgconfig(aul)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(libmedia-utils)
-
+Name: libmedia-thumbnail
+Version: 0.1.77
+Release: 1
+License: Apache-2.0
+Summary: Media thumbnail service Library
+Group: Multimedia/Libraries
+Source0: %{name}-%{version}.tar.gz
+Source1001: %{name}.manifest
+Source1002: %{name}-devel.manifest
+Source1003: media-thumbnail-server.manifest
+
+BuildRequires: cmake
+BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(drm-client)
+BuildRequires: pkgconfig(ecore)
+BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(heynoti)
+BuildRequires: pkgconfig(libexif)
+BuildRequires: pkgconfig(libmedia-utils)
+BuildRequires: pkgconfig(mm-fileinfo)
+BuildRequires: pkgconfig(mmutil-imgp)
+BuildRequires: pkgconfig(mmutil-jpeg)
+BuildRequires: pkgconfig(vconf)
+Requires: media-server
%description
-Description: Media thumbnail service library for multimedia applications.
-
+Media thumbnail service library for multimedia applications.
%package devel
-License: Apache
-Summary: Media thumbnail service library for multimedia applications. (development)
-Requires: %{name} = %{version}-%{release}
-Group: Development/Libraries
+Summary: Media Thumbnail Service Library (development)
+Requires: %{name} = %{version}
%description devel
-Description: Media thumbnail service library for multimedia applications. (development)
+Media thumbnail service library for multimedia applications. (development)
%package -n media-thumbnail-server
-License: Apache
-Summary: Thumbnail generator.
-Requires: %{name} = %{version}-%{release}
-Group: Development/Libraries
+Summary: Thumbnail generator
+Requires: %{name} = %{version}
%description -n media-thumbnail-server
-Description: Media Thumbnail Server.
+Media Thumbnail Server.
+%package test
+Summary: Thumbnail generator Tests
+Requires: %{name} = %{version}
+
+%description test
+Media Thumbnail Tests.
%prep
%setup -q
@@ -55,26 +55,24 @@ cp %{SOURCE1001} %{SOURCE1002} %{SOURCE1003} .
%build
%cmake .
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
%make_install
-#License
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/license/%{name}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%manifest %{name}.manifest
+%license LICENSE
%defattr(-,root,root,-)
%{_libdir}/libmedia-thumbnail.so
%{_libdir}/libmedia-thumbnail.so.*
%{_libdir}/libmedia-hash.so
%{_libdir}/libmedia-hash.so.1
%{_libdir}/libmedia-hash.so.1.0.0
-#License
-%{_datadir}/license/%{name}
%files devel
%manifest %{name}-devel.manifest
@@ -86,5 +84,6 @@ cp -rf %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}/%{_datadir}/license/
%manifest media-thumbnail-server.manifest
%defattr(-,root,root,-)
%{_bindir}/media-thumbnail-server
-/usr/local/bin/test-thumb
+%files test
+%{_bindir}/test-thumb