diff --git a/util-linux.spec b/util-linux.spec index 2d9f97a..95b6672 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -8,7 +8,7 @@ Name: util-linux Version: 2.25.2 -Release: 1mamba +Release: 2mamba Epoch: 1 Summary: Miscellaneous utilities for Linux Group: System/Tools @@ -75,6 +75,7 @@ Obsoletes: eject Requires: libuuid = %{?epoch:%epoch:}%{version}-%{release} Requires: libblkid = %{?epoch:%epoch:}%{version}-%{release} Requires: libmount = %{?epoch:%epoch:}%{version}-%{release} +%systemd_requires BuildRoot: %{_tmppath}/%{name}-%{version}-root %description @@ -250,6 +251,13 @@ install -d %{buildroot}%{_localstatedir}/uuid -d /var/lib/libuuid -s /bin/false -c "UUID generator helper daemon" uuidd 2>/dev/null exit 0 +%post +%systemd_post +if [ $1 -ge 1 ]; then + systemctl -q enable fstrim.timer +fi +: + %post -n libblkid -p /sbin/ldconfig %postun -n libblkid -p /sbin/ldconfig @@ -474,6 +482,9 @@ exit 0 %{_mandir}/man3/uuid*.* %changelog +* Wed Jan 14 2015 Silvan Calarco 2.25.2-2mamba +- enable fstrim.timer on install/upgrade + * Fri Oct 24 2014 Automatic Build System 2.25.2-1mamba - automatic version update by autodist