From 2ca2ba7e01c5ed5a64fa7fff66747d273bb162d5f6be535e7dfd0d6ea64607d7 Mon Sep 17 00:00:00 2001 From: Marius Tomaschewski Date: Thu, 29 Mar 2012 09:48:53 +0000 Subject: [PATCH] - Fixed SLES build readding Group tags to sub-packages in spec, not require libselinux-devel on SLE-10 and datadir/doc cleanup. OBS-URL: https://build.opensuse.org/package/show/network:vpn/openvpn?expand=0&rev=39 --- openvpn.changes | 5 +++-- openvpn.spec | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/openvpn.changes b/openvpn.changes index b958c29..0726360 100644 --- a/openvpn.changes +++ b/openvpn.changes @@ -1,7 +1,8 @@ ------------------------------------------------------------------- -Thu Mar 29 09:15:20 UTC 2012 - mt@suse.com +Thu Mar 29 09:45:56 UTC 2012 - mt@suse.com -- Added Group tags to plugin sub-packages +- Fixed SLES build readding Group tags to sub-packages in spec, + not require libselinux-devel on SLE-10 and datadir/doc cleanup. ------------------------------------------------------------------- Wed Feb 15 15:21:32 UTC 2012 - mt@suse.com diff --git a/openvpn.spec b/openvpn.spec index d79385e..7c6a623 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -41,10 +41,12 @@ Patch5: openvpn-2.2.1-man-dot.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: automake BuildRequires: iproute2 -BuildRequires: libselinux-devel BuildRequires: lzo-devel BuildRequires: openssl-devel BuildRequires: pam-devel +%if 0%{?suse_version} > 1010 +BuildRequires: libselinux-devel +%endif %if 0%{?suse_version} > 1030 BuildRequires: pkcs11-helper-devel Requires: pkcs11-helper @@ -191,8 +193,7 @@ for pi in auth-pam down-root; do $RPM_BUILD_ROOT%{plugin_libdir}/ done # we install docs via spec into _defaultdocdir/name/management-notes.txt -rm $RPM_BUILD_ROOT%{_datadir}/doc/%name/management-notes.txt -rmdir $RPM_BUILD_ROOT%{_datadir}/doc/%name +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/{OpenVPN,%name} %clean if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi