diff --git a/openvpn.spec b/openvpn.spec index 3ca3eb5..5e0fbb9 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -5,7 +5,7 @@ Name: openvpn Version: 2.3.2 -Release: 6%{?prerelease:.%{prerelease}}%{?dist} +Release: 7%{?prerelease:.%{prerelease}}%{?dist} Summary: A full-featured SSL VPN solution URL: http://openvpn.net/ #Source0: http://openvpn.net/beta/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz @@ -87,7 +87,8 @@ find contrib sample -type f -perm /100 \ --enable-plugin-auth-pam \ --enable-pkcs11 \ --enable-x509-alt-username \ - --enable-systemd + --enable-systemd \ + --docdir=%{_pkgdocdir} %{__make} ## Build plugins @@ -148,6 +149,10 @@ cp %{SOURCE2} %{SOURCE3} sample/sample-config-files/ %{__make} install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f +# Package installs into %%{_pkgdocdir} directly +# Add further files +cp -a AUTHORS PORTS INSTALL contrib sample $RPM_BUILD_ROOT%{_pkgdocdir} + # tmpfiles.d mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d install -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf @@ -189,9 +194,11 @@ fi %files -%doc AUTHORS COPYING COPYRIGHT.GPL INSTALL PORTS README -# Add NEWS when it isn't zero-length. -%doc src/plugins/*/README.* +%{_pkgdocdir} +%exclude %{_pkgdocdir}/README.IPv6 +%exclude %{_pkgdocdir}/README.polarssl +%exclude %{_pkgdocdir}/management-notes.txt + %doc contrib sample %{_mandir}/man8/%{name}.8* %{_sbindir}/%{name} @@ -202,9 +209,11 @@ fi %attr(0710,root,openvpn) %dir %{_localstatedir}/run/%{name}/ %{_prefix}/lib/tmpfiles.d/%{name}.conf %config %dir %{_sysconfdir}/%{name}/ -%exclude %{_datadir}/doc/%{name}/ %changelog +* Fri Nov 21 2014 Ralf Corsépius - 2.3.2-7 +- Rework package doc handling (RHBZ #1165004). + * Tue Aug 26 2014 Jan Vcelak 2.3.2-6 - Enable systemd support.