[packages/kvazaar] split libs for multilib support
glen
glen at pld-linux.org
Sun Apr 17 11:12:06 CEST 2016
commit 90917ce374f424fa7f30b7cd4e868520130372e6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 17 12:11:27 2016 +0300
split libs for multilib support
kvazaar.spec | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/kvazaar.spec b/kvazaar.spec
index 805eddb..b138100 100644
--- a/kvazaar.spec
+++ b/kvazaar.spec
@@ -2,7 +2,7 @@ Summary: Kvazaar - open-source HEVC encoder
Summary(pl.UTF-8): Kvazaar - koder HEVC o otwartych źródłach
Name: kvazaar
Version: 0.8.2
-Release: 2
+Release: 3
License: LGPL v2.1+
Group: Libraries
Source0: https://github.com/ultravideo/kvazaar/archive/v%{version}/%{name}-%{version}.tar.gz
@@ -15,6 +15,7 @@ BuildRequires: libtool >= 2:2
%ifarch %{ix86} %{x8664} x32
BuildRequires: yasm
%endif
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -24,11 +25,19 @@ Kvazaar is an open-source HEVC encoder licensed under LGPL v2.1.
Kvazaar to mający otwarte źródła koder HEVC, wydany na licencji LGPL
v2.1.
+%package libs
+Summary: Kvazaar library
+Group: Libraries
+Conflicts: kvazaar < 0.8.2-3
+
+%description libs
+Kvazaar library.
+
%package devel
Summary: Header files for Kvazaar library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Kvazaar
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
%description devel
Header files for Kvazaar library.
@@ -79,13 +88,16 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc COPYING CREDITS README.md doc/syntax_elements.txt
%attr(755,root,root) %{_bindir}/kvazaar
+
+%files libs
+%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libkvazaar.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libkvazaar.so.3
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kvazaar.git/commitdiff/90917ce374f424fa7f30b7cd4e868520130372e6
More information about the pld-cvs-commit
mailing list