diff --git a/hwloc.spec b/hwloc.spec index 6a2474d..3a88f7b 100644 --- a/hwloc.spec +++ b/hwloc.spec @@ -134,8 +134,8 @@ 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 +%pre %service_add_pre hwloc-dump-hwdata.service %endif @@ -145,8 +145,8 @@ rm %{buildroot}%{_datadir}/hwloc/hwloc-dump-hwdata.service %endif %desktop_database_post -%preun %ifarch %{ix86} x86_64 +%preun %service_del_preun hwloc-dump-hwdata.service %endif