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