Use make macros
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
This commit is contained in:
parent
6add8cfc9c
commit
a53503419f
10
opensm.spec
10
opensm.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: opensm
|
Name: opensm
|
||||||
Version: 3.3.23
|
Version: 3.3.23
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: OpenIB InfiniBand Subnet Manager and management utilities
|
Summary: OpenIB InfiniBand Subnet Manager and management utilities
|
||||||
License: GPLv2 or BSD
|
License: GPLv2 or BSD
|
||||||
Url: https://github.com/linux-rdma/opensm
|
Url: https://github.com/linux-rdma/opensm
|
||||||
@ -63,12 +63,12 @@ Static version of opensm libraries
|
|||||||
./autogen.sh
|
./autogen.sh
|
||||||
%endif
|
%endif
|
||||||
%configure --with-opensm-conf-sub-dir=rdma
|
%configure --with-opensm-conf-sub-dir=rdma
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
cd opensm
|
cd opensm
|
||||||
./opensm -c ../opensm-%{version}.conf
|
./opensm -c ../opensm-%{version}.conf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
# remove unpackaged files from the buildroot
|
# remove unpackaged files from the buildroot
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la
|
||||||
rm -fr %{buildroot}%{_sysconfdir}/init.d
|
rm -fr %{buildroot}%{_sysconfdir}/init.d
|
||||||
@ -120,6 +120,10 @@ fi
|
|||||||
%{_libdir}/lib*.a
|
%{_libdir}/lib*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 10 2020 Timm Bäder <tbaeder@redhat.com> 3.3.23.5
|
||||||
|
- Use make macros
|
||||||
|
https://docs.fedoraproject.org/en-US/packaging-guidelines/#_parallel_make
|
||||||
|
|
||||||
* Thu Dec 10 2020 Honggang Li <honli@redhat.com> - 3.3.23-4
|
* Thu Dec 10 2020 Honggang Li <honli@redhat.com> - 3.3.23-4
|
||||||
- opensm service should after rdma-hw.target
|
- opensm service should after rdma-hw.target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user