From 6faec636758a57939ea43f1f01f550f76fa67cffa5b8ab1c982c5165a94f0591 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Tue, 27 Feb 2018 13:30:18 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/network:vpn/ocserv?expand=0&rev=16 --- ocserv.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ocserv.spec b/ocserv.spec index cfb948b..45cf16f 100644 --- a/ocserv.spec +++ b/ocserv.spec @@ -43,7 +43,7 @@ Patch2: %{name}.config.patch Patch3: %{name}-LZ4_compress_default.patch BuildRequires: autogen BuildRequires: dbus-1-devel -%if 0%{suse_version} > 120300 +%if 0%{suse_version} >= 1500 BuildRequires: firewall-macros %endif BuildRequires: freeradius-client-devel @@ -109,7 +109,7 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv install -Dm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysctl.d/60-ocserv.conf -%if 0%{suse_version} > 120300 +%if 0%{suse_version} >= 1500 install -D -m 644 %{SOURCE6} %{buildroot}%{_libexecdir}/firewalld/services/ocserv.xml %endif @@ -132,7 +132,7 @@ install -m 0644 doc/systemd/socket-activated/ocserv.service %{buildroot}%{_unitd %post %service_add_post ocserv.service ocserv.socket -%if 0%{suse_version} > 120300 +%if 0%{suse_version} >= 1500 %firewalld_reload %endif @@ -148,7 +148,7 @@ install -m 0644 doc/systemd/socket-activated/ocserv.service %{buildroot}%{_unitd %config %{_sysconfdir}/ocserv %config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ocserv %config(noreplace) %{_sysconfdir}/sysctl.d/60-ocserv.conf -%if 0%{suse_version} > 120300 +%if 0%{suse_version} >= 1500 %dir %{_libexecdir}/firewalld %dir %{_libexecdir}/firewalld/services %{_libexecdir}/firewalld/services/ocserv.xml