diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-18 14:08:43 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-04-18 14:18:16 +0300 |
commit | 1888cfca86c871b7e48c9867ded4617d81a8bb52 (patch) | |
tree | 97aa9e98e2bebd27adf94887150f87df46616a60 | |
parent | e666de0f653b5f8c34a415ae4feb37ed01def9c4 (diff) | |
download | git-buildpackage-1888cfca86c871b7e48c9867ded4617d81a8bb52.tar.gz git-buildpackage-1888cfca86c871b7e48c9867ded4617d81a8bb52.tar.bz2 git-buildpackage-1888cfca86c871b7e48c9867ded4617d81a8bb52.zip |
rpm-packaging: make docs a conditional feature
That can be enabled on rpmbuild cmdline switch (--with docs).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | packaging/git-buildpackage.spec | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec index 5606dfc8..900d4c41 100644 --- a/packaging/git-buildpackage.spec +++ b/packaging/git-buildpackage.spec @@ -1,5 +1,5 @@ -%define do_unittests 0 -%define with_docs 0 +# Add --with docs rpmbuild option, disabled by default +%bcond_with docs Name: git-buildpackage Summary: Build packages from git @@ -19,7 +19,7 @@ Requires: dpkg BuildRequires: python BuildRequires: python-setuptools -%if 0%{?with_docs} +%if %{with docs} BuildRequires: docbook-utils BuildRequires: gtk-doc BuildRequires: epydoc @@ -82,7 +82,7 @@ This package contains the tools for building RPM packages. %build WITHOUT_NOSETESTS=1 python ./setup.py build -%if 0%{?with_docs} +%if %{with docs} # Prepare apidocs epydoc -n git-buildpackage --no-sourcecode -o docs/apidocs/ \ gbp*.py git*.py gbp/ |