From 9263b5a1bbd2f845b5e63804640f5c0073643976 Mon Sep 17 00:00:00 2001 From: Andrey Maslennikov Date: Thu, 10 Aug 2017 11:28:00 +0300 Subject: [PATCH] rpm: package static libraries into -static package --- ucx.spec.in | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ucx.spec.in b/ucx.spec.in index e5f1efeae72..c3613da28b2 100644 --- a/ucx.spec.in +++ b/ucx.spec.in @@ -26,12 +26,19 @@ the following shared memory mechanisms: posix. sysv, cma, knem, xpmem. %package devel Requires: %{name}%{?_isa} = %{version}-%{release} -Provides: %{name}-static = %{version}-%{release} -Summary: Header files and libraries required to develop with ucx +Summary: Header files required to develop with UCX +Group: Development/Libraries + +%package static +Requires: %{name}-devel = %{version}-%{release} +Summary: Static libraries required to develop with UCX Group: Development/Libraries %description devel -Provides header files, static libraries and examples for developing with UCX. +Provides header files and examples for developing with UCX. + +%description static +Provides static libraries required for development with UCX. %prep %setup -q @@ -61,11 +68,13 @@ rm -f %{buildroot}%{_libdir}/*.la %files devel %{_includedir}/uc* -%{_libdir}/lib*.a %{_libdir}/lib*.so %{_libdir}/pkgconfig/ucx.pc %{_datadir}/ucx/examples +%files static +%{_libdir}/lib*.a + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig