Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm: apply changes to comply Fedora guidelines #1774

Merged
merged 5 commits into from
Aug 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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