Commits (2)
......@@ -198,6 +198,27 @@ Obsoletes: %{name}-docs
%description doc
Man and info pages for %{name}.
%package systemd-fstrim
Summary: Systemd unit files for %{name}
Group: System
#Requires: %%{name} = %%{version}-%%{release}
Requires: /sbin/fstrim
Requires(post): systemd
BuildRequires: systemd-devel
%description systemd-fstrim
Systemd unit files for fstrim
%package systemd-uuidd
Summary: Systemd unit files for %{name}
Group: System
#Requires: %%{name} = %%{version}-%%{release}
Requires: uuidd
Requires(post): systemd
BuildRequires: systemd-devel
%description systemd-uuidd
Systemd unit files for uuidd
%prep
%setup -q -n %{name}-%{version}/%{name}
......@@ -214,7 +235,8 @@ export SUID_CFLAGS="-fpie"
export SUID_LDFLAGS="-pie"
./autogen.sh
%configure \
--with-systemdsystemunitdir=no \
--with-systemdsystemunitdir=%{_unitdir} \
--with-systemd \
--bindir=/bin \
--sbindir=/sbin \
--disable-wall \
......@@ -367,6 +389,7 @@ for I in /etc/blkid.tab /etc/blkid.tab.old \
fi
done
%postun -n libblkid -p /sbin/ldconfig
%post -n libfdisk -p /sbin/ldconfig
......@@ -381,6 +404,18 @@ done
%post -n libsmartcols -p /sbin/ldconfig
%postun -n libsmartcols -p /sbin/ldconfig
%post systemd-fstrim
%systemd_post fstrim.timer
%preun systemd-fstrim
%systemd_preun fstrim.timer
%post systemd-uuidd
%systemd_post uuidd.service
%preun systemd-uuidd
%systemd_preun uuidd.service
%pre -n uuidd
getent group uuidd >/dev/null || groupadd -r uuidd
getent passwd uuidd >/dev/null || \
......@@ -587,3 +622,13 @@ exit 0
%files doc -f documentation.list
%defattr(-,root,root)
%{_docdir}/%{name}-%{version}
%files systemd-fstrim
%defattr(-,root,root)
%{_unitdir}/fstrim.service
%{_unitdir}/fstrim.timer
%files systemd-uuidd
%defattr(-,root,root)
%{_unitdir}/uuidd.service
%{_unitdir}/uuidd.socket