[packages/firehol] install examples to examplesdir; verbose man pages

glen glen at pld-linux.org
Thu Apr 21 21:06:16 CEST 2016


commit 6338fe6188616edff1da34687b79c3c199b999d8
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 21 21:48:55 2016 +0300

    install examples to examplesdir; verbose man pages

 firehol.spec | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/firehol.spec b/firehol.spec
index 79d9a8a..2d7d2a8 100644
--- a/firehol.spec
+++ b/firehol.spec
@@ -141,9 +141,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-# Hack for documentation without crufts.
-rm -frv $RPM_BUILD_ROOT%{_docdir}
-find examples/ -name "Makefile*" -delete -print
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name "Makefile*" -delete -print
 
 # Install systemd units.
 install -d $RPM_BUILD_ROOT%{systemdunitdir}
@@ -179,7 +179,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc README THANKS examples
+%doc README THANKS
 %doc doc/firehol/firehol-manual.{pdf,html}
 %doc doc/fireqos/fireqos-manual.{pdf,html}
 %dir %{_sysconfdir}/firehol
@@ -196,8 +196,11 @@ fi
 %dir %{_libdir}/firehol
 %{_libdir}/firehol/functions.common.sh
 %{_datadir}/update-ipsets
-%{_mandir}/man1/*.1*
-%{_mandir}/man5/*.5*
+%{_mandir}/man1/vnetbuild.1*
+%{_mandir}/man5/firehol*.5*
+%{_mandir}/man5/fireqos*.5*
+%{_mandir}/man5/vnetbuild*.5*
+%{_examplesdir}/%{name}-%{version}
 %{systemdunitdir}/firehol.service
 %{systemdunitdir}/fireqos.service
 %{_localstatedir}/spool/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/firehol.git/commitdiff/48d6c301736f4e747d973caf8364c9b2fd019290



More information about the pld-cvs-commit mailing list