Autobuild autoformatter for 72809
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/haveged?expand=0&rev=15
This commit is contained in:
parent
ce5ef90703
commit
601cce2c74
13
haveged.spec
13
haveged.spec
@ -19,7 +19,7 @@
|
||||
|
||||
Name: haveged
|
||||
Version: 1.1
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPLv3
|
||||
Summary: Feed entropy into random pool
|
||||
Url: http://www.issihosts.com/haveged/
|
||||
@ -37,7 +37,6 @@ Requires(post): grep util-linux
|
||||
Enhances: openssl gpg2 php5 apache2 openvpn smtp_daemon
|
||||
%{!?_initddir: %global _initddir /etc/init.d}
|
||||
|
||||
|
||||
%description
|
||||
The haveged daemon feeds the linux entropy pool with random
|
||||
numbers generated from hidden processor state.
|
||||
@ -48,18 +47,15 @@ For more informations see http://www.issihosts.com/haveged/
|
||||
%setup -q
|
||||
%patch1
|
||||
|
||||
|
||||
%build
|
||||
autoreconf -fiv
|
||||
export LDFLAGS="-Wl,-z,relro,-z,now"
|
||||
%configure --with-libcap-ng=yes --sbindir=/sbin --enable-nistest=yes
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
%{__install} -m0755 %{S:1} %{buildroot}%{_initddir}/haveged
|
||||
@ -68,25 +64,20 @@ make %{?_smp_mflags} check
|
||||
%{__mkdir_p} %{buildroot}/lib/systemd/system
|
||||
%{__install} -m0755 %{S:2} %{buildroot}/lib/systemd/system/haveged.service
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post
|
||||
# do not enable on condition here, let YAST, kiwi or the user do it.
|
||||
%{fillup_and_insserv -f %{name}}
|
||||
|
||||
|
||||
%postun
|
||||
%restart_on_update %{name}
|
||||
%{insserv_cleanup}
|
||||
|
||||
|
||||
%preun
|
||||
%stop_on_removal %{name}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sbindir}/rc%{name}
|
||||
@ -97,6 +88,4 @@ rm -rf %{buildroot}
|
||||
%dir /lib/systemd/system
|
||||
/lib/systemd/system/haveged.service
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user