From: Elan Ruusamäe Date: Thu, 21 Apr 2016 18:56:21 +0000 (+0300) Subject: doc subpackage X-Git-Url: http://git.pld-linux.org/?p=packages%2Ffirehol.git;a=commitdiff_plain;h=48d6c301736f4e747d973caf8364c9b2fd019290 doc subpackage --- diff --git a/firehol.spec b/firehol.spec index 9f2fb2c..9f21fad 100644 --- a/firehol.spec +++ b/firehol.spec @@ -6,7 +6,7 @@ Summary: Simple and powerful firewall and traffic shaping languages Name: firehol Version: 3.0.1 -Release: 0.1 +Release: 0.2 License: GPL v2+ Group: Applications/Networking Source0: https://firehol.org/download/firehol/releases/v%{version}/%{name}-%{version}.tar.xz @@ -54,6 +54,13 @@ file for the system run, which you can modify according to your needs. The default configuration file will allow only client traffic on all interfaces. +%package doc +Summary: Documentation for firehol +Group: Documentation + +%description doc +Documentation for firehol. + %prep %setup -q @@ -139,10 +146,14 @@ interfaces. %install rm -rf $RPM_BUILD_ROOT %{__make} install \ + INSTALL="install -p" \ contribdir=%{_examplesdir}/%{name}-%{version}/contrib \ examplesdir=%{_examplesdir}/%{name}-%{version} \ + htmldir=%{_docdir}/%{name}-doc-%{version} \ + pdfdir=%{_docdir}/%{name}-doc-%{version} \ DESTDIR=$RPM_BUILD_ROOT + # Install systemd units. install -d $RPM_BUILD_ROOT%{systemdunitdir} cp -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{systemdunitdir} @@ -178,8 +189,6 @@ fi %files %defattr(644,root,root,755) %doc README THANKS -%doc doc/firehol/firehol-manual.{pdf,html} -%doc doc/fireqos/fireqos-manual.{pdf,html} %dir %{_sysconfdir}/firehol %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/firehol.conf %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/fireqos.conf @@ -200,7 +209,11 @@ fi %{_mandir}/man5/firehol*.5* %{_mandir}/man5/fireqos*.5* %{_mandir}/man5/vnetbuild*.5* -%{_examplesdir}/%{name}-%{version} %{systemdunitdir}/firehol.service %{systemdunitdir}/fireqos.service %{_localstatedir}/spool/%{name} + +%files doc +%defattr(644,root,root,755) +%doc %{_docdir}/%{name}-doc-%{version} +%{_examplesdir}/%{name}-%{version}