Skip to content

Commit

Permalink
rpm: package static libraries into -static package
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Maslennikov committed Aug 21, 2017
1 parent d802cba commit 9263b5a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions ucx.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9263b5a

Please sign in to comment.