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