summaryrefslogtreecommitdiffstats
path: root/cgit.spec
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2011-03-06 11:31:56 -0500
committerTodd Zullinger <tmz@pobox.com>2011-03-06 11:36:49 -0500
commit593cd4b711027e5c6cd2def697b00e0e1ceba33b (patch)
tree03ac83e91d1afd94db11963fb3097cf57fc5869b /cgit.spec
parenta94947b458229eef750191c79984f66d2388ebf9 (diff)
downloadcgit_EL6-593cd4b711027e5c6cd2def697b00e0e1ceba33b.tar.gz
Generate and install man page and html docs
Diffstat (limited to 'cgit.spec')
-rw-r--r--cgit.spec17
1 files changed, 14 insertions, 3 deletions
diff --git a/cgit.spec b/cgit.spec
index 4ccc176..458a7d1 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -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