diff --git a/hwloc.spec b/hwloc.spec index 848541c..6a2474d 100644 --- a/hwloc.spec +++ b/hwloc.spec @@ -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