summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Ylinen <mikko.ylinen@intel.com>2013-10-07 11:47:46 (GMT)
committerMikko Ylinen <mikko.ylinen@intel.com>2013-10-07 11:47:46 (GMT)
commit7d9a17b6aa1fd2763c57529d7d7a729283852419 (patch)
treec95651b360f4eea7861418defe0f3c306bf30dc0
parent1766b71ebba67443ca88f489b78abaa016eee3b3 (diff)
downloadavsystem-submit/tizen_ivi_stable/20131116.100632.zip
avsystem-submit/tizen_ivi_stable/20131116.100632.tar.gz
avsystem-submit/tizen_ivi_stable/20131116.100632.tar.bz2
avsystem is not functional on all profiles. Therefore, it makes no sense to install avsystem binaries and (systemd) init scripts always. Move libavsysaudio to a subpackage to accommodate dependencies from other libraries. If full avsystem functionality is desired, avsystem package must explicitly be installed. Change-Id: Iccffd822e6bbf34f25ec1e7cda0672978da73f40 Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
-rw-r--r--packaging/avsystem.spec19
1 files changed, 16 insertions, 3 deletions
diff --git a/packaging/avsystem.spec b/packaging/avsystem.spec
index cb437eb..d1d2c95 100644
--- a/packaging/avsystem.spec
+++ b/packaging/avsystem.spec
@@ -36,6 +36,12 @@ Requires: %{name} = %{version}-%{release}
Audio Video System Development headers and libraries.
+%package -n libavsysaudio
+Summary: Audio Video System libraries
+
+%description -n libavsysaudio
+Audio Video System libraries
+
%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} .
@@ -70,16 +76,20 @@ if [ $1 == 0 ]; then
fi
%post
-/sbin/ldconfig
systemctl daemon-reload
if [ $1 == 1 ]; then
systemctl restart avsystem.service
fi
-%postun
+%post -n libavsysaudio
/sbin/ldconfig
+
+%postun
systemctl daemon-reload
+%postun -n libavsysaudio
+/sbin/ldconfig
+
%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
@@ -87,7 +97,6 @@ systemctl daemon-reload
%{_sysconfdir}/rc.d/rc3.d/S15snd_init
%{_sysconfdir}/rc.d/rc4.d/S15snd_init
%{_bindir}/*
-%{_libdir}/lib*.so.*
/usr/lib/systemd/system/avsystem.service
/usr/lib/systemd/system/multi-user.target.wants/avsystem.service
@@ -96,3 +105,7 @@ systemctl daemon-reload
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_includedir}/avsystem/*.h
+
+%files -n libavsysaudio
+%manifest %{name}.manifest
+%{_libdir}/lib*.so.*