Skip to content

Commit

Permalink
Merge pull request #1774 from amaslenn/fed-pkg-review
Browse files Browse the repository at this point in the history
rpm: apply changes to comply Fedora guidelines
  • Loading branch information
yosefe authored Aug 24, 2017
2 parents ca053d5 + 9263b5a commit baa0c3c
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions ucx.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ License: BSD
URL: http://www.openucx.org
Source: https://github.com/openucx/%{name}/archive/v@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@.tar.gz

# UCX currently supports only the following architectures
ExclusiveArch: aarch64 ppc64le x86_64

BuildRequires: numactl-devel
BuildRequires: numactl-devel libibverbs-devel
BuildRequires: automake autoconf libtool

%description
Expand All @@ -25,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 All @@ -50,22 +58,26 @@ make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.la

%files
%{_libdir}/lib*.so*
%{_libdir}/lib*.so.*
%{_bindir}/uc*
%{_datadir}/ucx/perftest/*
%{_datadir}/ucx
%exclude %{_datadir}/ucx/examples
%doc README AUTHORS NEWS
%{!?_licensedir:%global license %%doc}
%license LICENSE

%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

%changelog
* Mon Jul 3 2017 Andrey Maslennikov <andreyma@mellanox.com> 1.3
* Mon Jul 3 2017 Andrey Maslennikov <andreyma@mellanox.com> 1.2.0-1
- Fedora package created

0 comments on commit baa0c3c

Please sign in to comment.