From 5fd6cc84e4bcda51196b6926c813b5e63b03e674 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 25 Jan 2018 15:47:33 +0100 Subject: [PATCH] Fix systemd executions/requirements Signed-off-by: Igor Gnatenko --- openvpn.spec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/openvpn.spec b/openvpn.spec index fe205d8..3cdeb6e 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -7,7 +7,7 @@ Name: openvpn Version: 2.4.4 -Release: 1%{?prerelease:.%{prerelease}}%{?dist} +Release: 2%{?prerelease:.%{prerelease}}%{?dist} Summary: A full-featured SSL VPN solution URL: https://community.openvpn.net/ Source0: https://swupdate.openvpn.org/community/releases/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.xz @@ -28,19 +28,14 @@ BuildRequires: pkcs11-helper-devel >= 1.11 BuildRequires: pam-devel # For the perl_default_filter macro BuildRequires: perl-macros -%{?systemd_requires} BuildRequires: systemd -BuildRequires: systemd-units +%{?systemd_requires} BuildRequires: libselinux-devel # For /sbin/ip. BuildRequires: iproute # For /sbin/ip. Requires: iproute Requires(pre): /usr/sbin/useradd -Requires(post): systemd-sysv -Requires(post): systemd-units -Requires(preun): systemd-units -Requires(postun): systemd-units # Filter out the perl(Authen::PAM) dependency. # No perl dependency is really needed at all. @@ -160,7 +155,6 @@ getent passwd openvpn &>/dev/null || \ %systemd_postun_with_restart openvpn-server@\*.service %systemd_postun_with_restart openvpn@\*.service - %files %{_pkgdocdir} %exclude %{_pkgdocdir}/README.IPv6 @@ -186,6 +180,9 @@ getent passwd openvpn &>/dev/null || \ %changelog +* Thu Jan 25 2018 Igor Gnatenko - 2.4.4-2 +- Fix systemd executions/requirements + * Tue Sep 26 2017 David Sommerseth - 2.4.4-1 - Update to latest upstream release - Includes fix for possible stack overflow if --key-method 1 is used {CVE-2017-12166}