diff --git a/smartmontools.spec b/smartmontools.spec index a16b539..1add2d1 100644 --- a/smartmontools.spec +++ b/smartmontools.spec @@ -6,11 +6,11 @@ Summary: S.M.A.R.T. utility toolset License: GPLv2+ URL: http://smartmontools.sourceforge.net/ -Source0: https://sourceforge.net/projects/smartmontools/files/smartmontools/7.1/smartmontools-7.1.tar.gz/download +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: smartmontools.sysconf BuildRequires: groff gcc-c++ automake -BuildRequires: libselinux-devel libcap-ng-devel systemd-units +BuildRequires: libselinux-devel libcap-ng-devel systemd systemd-units systemd-devel Requires(preun): systemd-units Requires(post): systemd-units @@ -41,7 +41,7 @@ This contains man files for the using of smartmontools. %build autoreconf -i -%configure --with-selinux --with-libcap-ng=yes --with-systemdsystemunitdir=%{_unitdir} --sysconfdir=%{_sysconfdir}/%{name}/ +%configure --with-selinux --with-libcap-ng=yes --with-libsystemd --with-systemdsystemunitdir=%{_unitdir} --sysconfdir=%{_sysconfdir}/%{name}/ --with-systemdenvfile=%{_sysconfdir}/sysconfig/%{name} make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS -fpie" LDFLAGS="-pie -Wl,-z,relro,-z,now" sed -i 's|/etc/smartmontools/sysconfig|/etc/sysconfig|g' smartd.service