diff options
-rw-r--r-- | cgit.spec | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -13,7 +13,8 @@ make V=1 %{?_smp_mflags} \\\ CACHE_ROOT=%{cachedir} \\\ CGIT_SCRIPT_PATH=%{scriptdir} \\\ CGIT_SCRIPT_NAME=cgit \\\ - CGIT_DATA_PATH=%{cgitdata} + CGIT_DATA_PATH=%{cgitdata} \\\ + docdir=%{docdir} Name: cgit Version: 0.9 @@ -30,6 +31,11 @@ Source3: cgit.httpd Source4: README.SELinux BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildRequires: asciidoc +%if 0%{?rhel} && 0%{?rhel} <= 5 +# These are missing asciidoc requirements +BuildRequires: docbook-style-xsl libxslt +%endif %if 0%{?fedora} BuildRequires: libcurl-devel %else @@ -56,10 +62,13 @@ cp -p %{SOURCE4} . %build %{make_cgit} +# Something in the a2x chain doesn't like running in parallel. :/ +%{make_cgit} -j1 doc-man doc-html + %install rm -rf %{buildroot} -%{make_cgit} install +%{make_cgit} install install-man install -d -m0755 %{buildroot}%{_sysconfdir}/httpd/conf.d install -p -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/cgitrc install -p -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/cgit.conf @@ -72,12 +81,13 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc COPYING README* cgitrc.5.txt +%doc COPYING README* *.html %config(noreplace) %{_sysconfdir}/cgitrc %config(noreplace) %{_sysconfdir}/httpd/conf.d/cgit.conf %dir %attr(-,apache,root) %{cachedir} %{cgitdata} %{scriptdir}/* +%{_mandir}/man*/* %changelog @@ -85,6 +95,7 @@ rm -rf %{buildroot} - Update to 0.9 - Fixes: CVE-2011-1027 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-1027 +- Generate and install man page and html docs * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |