update smartmontools.spec.
This commit is contained in:
parent
50499bc9e1
commit
2397c95fb8
@ -6,11 +6,11 @@ Summary: S.M.A.R.T. utility toolset
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://smartmontools.sourceforge.net/
|
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
|
Source1: smartmontools.sysconf
|
||||||
|
|
||||||
BuildRequires: groff gcc-c++ automake
|
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(preun): systemd-units
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
@ -41,7 +41,7 @@ This contains man files for the using of smartmontools.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -i
|
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"
|
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
|
sed -i 's|/etc/smartmontools/sysconfig|/etc/sysconfig|g' smartd.service
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user