install hwloc-dump-hwdata.service
This commit is contained in:
parent
7d44792711
commit
69ea06ff5d
24
hwloc.spec
24
hwloc.spec
@ -26,6 +26,10 @@ BuildRequires: numactl-devel
|
|||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
BuildRequires: rdma-core-devel
|
BuildRequires: rdma-core-devel
|
||||||
%endif
|
%endif
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
%{?systemd_requires}
|
||||||
|
BuildRequires: systemd
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Portable Hardware Locality (hwloc) software package provides
|
The Portable Hardware Locality (hwloc) software package provides
|
||||||
@ -107,11 +111,27 @@ ln %{buildroot}%{_mandir}/man1/lstopo-no-graphics.1 %{buildroot}%{_mandir}/man1/
|
|||||||
|
|
||||||
# Deal with service file
|
# Deal with service file
|
||||||
# https://github.com/open-mpi/hwloc/issues/221
|
# https://github.com/open-mpi/hwloc/issues/221
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
|
mv %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service %{buildroot}%{_unitdir}/
|
||||||
|
%else
|
||||||
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
|
rm %{buildroot}%{_datadir}/%{name}/hwloc-dump-hwdata.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
LD_LIBRARY_PATH=$PWD/src/.libs make check
|
LD_LIBRARY_PATH=$PWD/src/.libs make check
|
||||||
|
|
||||||
|
%ifarch %{ix86} x86_64
|
||||||
|
%post
|
||||||
|
%systemd_post hwloc-dump-hwdata.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun hwloc-dump-hwdata.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%systemd_postun_with_restart hwloc-dump-hwdata.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
@ -123,6 +143,7 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|||||||
%{_mandir}/man1/lstopo-no-graphics*
|
%{_mandir}/man1/lstopo-no-graphics*
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%{_sbindir}/hwloc-dump-hwdata
|
%{_sbindir}/hwloc-dump-hwdata
|
||||||
|
%{_unitdir}/hwloc-dump-hwdata.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -149,7 +170,8 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check
|
|||||||
%{_datadir}/applications/lstopo.desktop
|
%{_datadir}/applications/lstopo.desktop
|
||||||
|
|
||||||
%files plugins
|
%files plugins
|
||||||
%{_libdir}/hwloc*
|
%dir %{_libdir}/%{name}
|
||||||
|
%{_libdir}/%{name}/hwloc*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Nov 02 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-2
|
* Thu Nov 02 2017 Michal Schmidt <mschmidt@redhat.com> - 1.11.8-2
|
||||||
|
Loading…
Reference in New Issue
Block a user