Dirk Mueller 2020-08-18 17:42:12 +00:00 committed by Git OBS Bridge
parent 9f5756dc58
commit b67a877777

View File

@ -30,6 +30,7 @@ BuildRequires: automake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libnuma-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: perl
@ -46,7 +47,6 @@ Requires: perl-base >= 5.18.2
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%{?systemd_ordering}
BuildRequires: libnuma-devel
%description
The Portable Hardware Locality (hwloc) software package provides
@ -133,18 +133,28 @@ rm %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%pre
%ifarch %{ix86} x86_64
%service_add_pre hwloc-dump-hwdata.service
%endif
%post
%ifarch %{ix86} x86_64
%service_add_post hwloc-dump-hwdata.service
%endif
%desktop_database_post
%preun
%ifarch %{ix86} x86_64
%service_del_preun hwloc-dump-hwdata.service
%endif
%postun
%ifarch %{ix86} x86_64
%service_del_postun hwloc-dump-hwdata.service
%endif
%desktop_database_postun
%files