Skip to content

Commit baa0c3c

Browse files
authored
Merge pull request #1774 from amaslenn/fed-pkg-review
rpm: apply changes to comply Fedora guidelines
2 parents ca053d5 + 9263b5a commit baa0c3c

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

ucx.spec.in

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ License: BSD
1010
URL: http://www.openucx.org
1111
Source: https://github.com/openucx/%{name}/archive/v@MAJOR_VERSION@.@MINOR_VERSION@.@[email protected]
1212

13+
# UCX currently supports only the following architectures
1314
ExclusiveArch: aarch64 ppc64le x86_64
1415

15-
BuildRequires: numactl-devel
16+
BuildRequires: numactl-devel libibverbs-devel
1617
BuildRequires: automake autoconf libtool
1718

1819
%description
@@ -25,12 +26,19 @@ the following shared memory mechanisms: posix. sysv, cma, knem, xpmem.
2526

2627
%package devel
2728
Requires: %{name}%{?_isa} = %{version}-%{release}
28-
Provides: %{name}-static = %{version}-%{release}
29-
Summary: Header files and libraries required to develop with ucx
29+
Summary: Header files required to develop with UCX
30+
Group: Development/Libraries
31+
32+
%package static
33+
Requires: %{name}-devel = %{version}-%{release}
34+
Summary: Static libraries required to develop with UCX
3035
Group: Development/Libraries
3136

3237
%description devel
33-
Provides header files, static libraries and examples for developing with UCX.
38+
Provides header files and examples for developing with UCX.
39+
40+
%description static
41+
Provides static libraries required for development with UCX.
3442

3543
%prep
3644
%setup -q
@@ -50,22 +58,26 @@ make DESTDIR=%{buildroot} install
5058
rm -f %{buildroot}%{_libdir}/*.la
5159

5260
%files
53-
%{_libdir}/lib*.so*
61+
%{_libdir}/lib*.so.*
5462
%{_bindir}/uc*
55-
%{_datadir}/ucx/perftest/*
63+
%{_datadir}/ucx
64+
%exclude %{_datadir}/ucx/examples
5665
%doc README AUTHORS NEWS
5766
%{!?_licensedir:%global license %%doc}
5867
%license LICENSE
5968

6069
%files devel
6170
%{_includedir}/uc*
62-
%{_libdir}/lib*.a
71+
%{_libdir}/lib*.so
6372
%{_libdir}/pkgconfig/ucx.pc
6473
%{_datadir}/ucx/examples
6574

75+
%files static
76+
%{_libdir}/lib*.a
77+
6678
%post -p /sbin/ldconfig
6779
%postun -p /sbin/ldconfig
6880

6981
%changelog
70-
* Mon Jul 3 2017 Andrey Maslennikov <[email protected]> 1.3
82+
* Mon Jul 3 2017 Andrey Maslennikov <[email protected]> 1.2.0-1
7183
- Fedora package created

0 commit comments

Comments
 (0)