]> git.pld-linux.org Git - packages/firehol.git/commitdiff
doc subpackage master
authorElan Ruusamäe <glen@delfi.ee>
Thu, 21 Apr 2016 18:56:21 +0000 (21:56 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 21 Apr 2016 19:06:10 +0000 (22:06 +0300)
firehol.spec

index 9f2fb2c5986673a519d79172858876cbb0f61eaa..9f21fad3b6d189fd3d4b45e4cb56e56a950fc843 100644 (file)
@@ -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}
This page took 0.140493 seconds and 4 git commands to generate.