summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan Yin <yan.yin@intel.com>2012-03-14 14:03:31 +0800
committerYan Yin <yan.yin@intel.com>2012-03-14 14:03:31 +0800
commit1a432356f7a4f1154376357f0c36054c33e82635 (patch)
tree012437d1d12cb9d3024ea166ab78b91188c1bfc3
parenta754780cf9c971778381d206722959afaf0a44ee (diff)
downloadlibmedia-thumbnail-1a432356f7a4f1154376357f0c36054c33e82635.tar.gz
libmedia-thumbnail-1a432356f7a4f1154376357f0c36054c33e82635.tar.bz2
libmedia-thumbnail-1a432356f7a4f1154376357f0c36054c33e82635.zip
update for beta universally
-rw-r--r--packaging/libmedia-thumbnail.spec21
1 files changed, 8 insertions, 13 deletions
diff --git a/packaging/libmedia-thumbnail.spec b/packaging/libmedia-thumbnail.spec
index 18d1785..ebb9bd4 100644
--- a/packaging/libmedia-thumbnail.spec
+++ b/packaging/libmedia-thumbnail.spec
@@ -1,9 +1,9 @@
Name: libmedia-thumbnail
Summary: Media thumbnail service library for multimedia applications.
-Version: 0.1.9
+Version: 0.2.0
Release: 1
Group: TO_BE/FILLED_IN
-License: TO_BE/FILLED_IN
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
@@ -50,24 +50,22 @@ cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc5.d/
-ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
-mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d/
-ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
+chmod +x %{buildroot}/etc//init.d/thumbsvr
+
+%post
+ln -s /etc//init.d/thumbsvr %{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
+ln -s /etc/init.d/thumbsvr %{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
%files
-%defattr(-,root,root,-)
%{_libdir}/libmedia-thumbnail.so.*
%{_libdir}/libmedia-hash.so.*
%files devel
-%defattr(-,root,root,-)
%{_libdir}/libmedia-thumbnail.so
%{_libdir}/libmedia-hash.so
%{_libdir}/pkgconfig/media-thumbnail.pc
@@ -78,10 +76,7 @@ ln -s %{_sysconfdir}/init.d/thumbsvr %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S47th
%files -n media-thumbnail-server
-%defattr(-,root,root,-)
%{_bindir}/media-thumbnail-server
-%{_sysconfdir}/init.d/thumbsvr
-%{_sysconfdir}/rc.d/rc3.d/S47thumbsvr
-%{_sysconfdir}/rc.d/rc5.d/S47thumbsvr
+%attr(755,root,root) %{_sysconfdir}/init.d/thumbsvr
%exclude %{_bindir}/test-thumb