Rework package doc handling (RHBZ #1165004).

epel8
Ralf Corsépius 10 years ago
parent ef86d1da98
commit 035df29522

@ -5,7 +5,7 @@
Name: openvpn Name: openvpn
Version: 2.3.5 Version: 2.3.5
Release: 1%{?prerelease:.%{prerelease}}%{?dist} Release: 2%{?prerelease:.%{prerelease}}%{?dist}
Summary: A full-featured SSL VPN solution Summary: A full-featured SSL VPN solution
URL: http://openvpn.net/ URL: http://openvpn.net/
#Source0: http://openvpn.net/beta/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz #Source0: http://openvpn.net/beta/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz
@ -88,7 +88,8 @@ find contrib sample -type f -perm /100 \
--enable-plugin-auth-pam \ --enable-plugin-auth-pam \
--enable-pkcs11 \ --enable-pkcs11 \
--enable-x509-alt-username \ --enable-x509-alt-username \
--enable-systemd --enable-systemd \
--docdir=%{_pkgdocdir}
%{__make} %{__make}
## Build plugins ## Build plugins
@ -149,6 +150,10 @@ cp %{SOURCE2} %{SOURCE3} sample/sample-config-files/
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f 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 # tmpfiles.d
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
install -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf install -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
@ -190,9 +195,11 @@ fi
%files %files
%doc AUTHORS COPYING COPYRIGHT.GPL INSTALL PORTS README %{_pkgdocdir}
# Add NEWS when it isn't zero-length. %exclude %{_pkgdocdir}/README.IPv6
%doc src/plugins/*/README.* %exclude %{_pkgdocdir}/README.polarssl
%exclude %{_pkgdocdir}/management-notes.txt
%doc contrib sample %doc contrib sample
%{_mandir}/man8/%{name}.8* %{_mandir}/man8/%{name}.8*
%{_sbindir}/%{name} %{_sbindir}/%{name}
@ -203,9 +210,11 @@ fi
%attr(0710,root,openvpn) %dir %{_localstatedir}/run/%{name}/ %attr(0710,root,openvpn) %dir %{_localstatedir}/run/%{name}/
%{_prefix}/lib/tmpfiles.d/%{name}.conf %{_prefix}/lib/tmpfiles.d/%{name}.conf
%config %dir %{_sysconfdir}/%{name}/ %config %dir %{_sysconfdir}/%{name}/
%exclude %{_datadir}/doc/%{name}/
%changelog %changelog
* Fri Nov 21 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 2.3.5-2
- Rework package doc handling (RHBZ #1165004).
* Tue Oct 28 2014 Jon Ciesla <limburgher@gmail.com> 2.3.5-1 * Tue Oct 28 2014 Jon Ciesla <limburgher@gmail.com> 2.3.5-1
- 2.3.5. - 2.3.5.

Loading…
Cancel
Save