Fix systemd executions/requirements
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
e5840fb661
commit
76c7fadefb
19
stunnel.spec
19
stunnel.spec
@ -10,7 +10,7 @@
|
|||||||
Summary: A TLS-encrypting socket wrapper
|
Summary: A TLS-encrypting socket wrapper
|
||||||
Name: stunnel
|
Name: stunnel
|
||||||
Version: 5.44
|
Version: 5.44
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
URL: http://www.stunnel.org/
|
URL: http://www.stunnel.org/
|
||||||
@ -33,12 +33,8 @@ Buildrequires: tcp_wrappers-devel
|
|||||||
%endif
|
%endif
|
||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
BuildRequires: /usr/bin/pod2html
|
BuildRequires: /usr/bin/pod2html
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
BuildRequires: systemd
|
||||||
BuildRequires: systemd-units
|
%{?systemd_requires}
|
||||||
Requires(post): systemd-units
|
|
||||||
Requires(preun): systemd-units
|
|
||||||
Requires(postun): systemd-units
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Stunnel is a socket wrapper which can provide TLS/SSL
|
Stunnel is a socket wrapper which can provide TLS/SSL
|
||||||
@ -113,22 +109,19 @@ cp %{SOURCE7} %{buildroot}%{_unitdir}/%{name}@.service
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_post %{name}.service
|
%systemd_post %{name}.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
|
|
||||||
%systemd_postun_with_restart %{name}.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 25 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 5.44-3
|
||||||
|
- Fix systemd executions/requirements
|
||||||
|
|
||||||
* Mon Jan 15 2018 Tomáš Mráz <tmraz@redhat.com> - 5.44-2
|
* Mon Jan 15 2018 Tomáš Mráz <tmraz@redhat.com> - 5.44-2
|
||||||
- Make the disablement of libwrap conditional
|
- Make the disablement of libwrap conditional
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user