Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 15eab351f77e8e028aba7f0d06bbb73916c95f79
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Tue Sep 10 09:44:24 2013 +0200
create -doc subpackage with python documentation
---------------------------------------------------------------
copr.spec | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/copr.spec b/copr.spec
index dbf3f5a..f3faae2 100644
--- a/copr.spec
+++ b/copr.spec
@@ -21,6 +21,10 @@ BuildRequires: python-requests
%if 0%{?rhel} < 7 && 0%{?rhel} > 0
BuildRequires: python-argparse
%endif
+#for doc package
+BuildRequires: epydoc
+BuildRequires: graphviz
+BuildRequires: make
%description
COPR is lightweight buildsystem. It allows you to create new project in WebUI, and
@@ -84,6 +88,15 @@ submit new builds and COPR will create yum repository from latests
builds.
This package contains command line interface.
+%package doc
+Summary: Code documentation for COPR
+
+%description doc
+COPR is lightweight buildsystem. It allows you to create new project in WebUI, and
+submit new builds and COPR will create yum repository from latests builds.
+
+This package include documentation for COPR code. Mostly useful for developers only.
+
%prep
%setup -q
@@ -94,6 +107,11 @@ mv copr_cli/README.rst ./
# convert manages
a2x -d manpage -f manpage man/copr-cli.1.asciidoc
+# build documentation
+pushd documentation
+make python
+popd
+
%install
#backend
@@ -133,6 +151,9 @@ touch %{buildroot}%{_datadir}/copr/data/copr.db
install -d %{buildroot}%{_mandir}/man1
install -m 644 man/copr-cli.1 %{buildroot}/%{_mandir}/man1/
+#doc
+cp -a documentation/python-doc %{buildroot}%{_pkgdocdir}/
+
%pre backend
getent group copr >/dev/null || groupadd -r copr
getent passwd copr >/dev/null || \
@@ -182,6 +203,9 @@ service httpd condrestart
%{python_sitelib}/*
%doc %{_mandir}/man1/copr-cli.1*
+%files doc
+%doc %{_pkgdocdir}/python-doc
+
%changelog
* Mon Jun 17 2013 Miroslav Suchý <msuchy(a)redhat.com> 1.1-1
- new package built with tito