Enable gbs man page
authorZhang Qiang <qiang.z.zhang@intel.com>
Mon, 23 Dec 2013 05:49:51 +0000 (13:49 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Mon, 23 Dec 2013 06:09:27 +0000 (14:09 +0800)
In current version, `man gbs` is disabled by annotating code that creates
manual page in spec file because the creation of manual page will fail
without question due to syntax error in GBS.rst.

In this change, the syntax error in GBS.rst is fixed, and the annotation
is cancelled accordingly.

Change-Id: Id69b8f704a1aa041a83f908ed65798157ca9c5fe
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
debian/control
debian/gbs.install
debian/rules
packaging/gbs.dsc
packaging/gbs.spec

index 03cf2b71ebc2f3b05567d79e14b8766c9241cc1f..e44874dfb851ea7baff41b74fbb0b83d1408b11e 100644 (file)
@@ -2,7 +2,7 @@ Source: gbs
 Section: devel
 Priority: extra
 Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
-Build-Depends: debhelper, python (>= 2.6), python-support
+Build-Depends: debhelper, python (>= 2.6), python-support, python-docutils
 Standards-Version: 3.8.0
 X-Python-Version: >= 2.6
 Homepage: http://www.tizen.org
index a7e74d914625343bbc02bc3aad69328edf819269..eb17cee9f3ca8765e36b6f4307f9d1a5616d72c2 100644 (file)
@@ -9,3 +9,4 @@ usr/lib/python*/*packages/gitbuildsys/cmd_submit.py
 usr/lib/python*/*packages/gitbuildsys/parsing.py
 usr/bin/*
 etc/bash_completion.d/*
+usr/share/man/man1/gbs.1
index 37dbe9d5c4fa677133b41c7dab7338a4b9d3e597..fcec0a2cda7f8e379ecd78902d98ffefaef7c0e8 100644 (file)
@@ -5,6 +5,9 @@
 
 override_dh_auto_install:
        python setup.py install --root=debian/tmp --prefix=/usr
+       make man
+       mkdir -p debian/tmp/usr/share/man/man1
+       install -m644 docs/gbs.1 debian/tmp/usr/share/man/man1
 
 override_dh_auto_test:
        @echo 'Skipping autotests'
index 443684a8a14937de1ccd68347348ebe2c875f2b8..d54c27fd2685f172f58f984e04a247a0055466e3 100644 (file)
@@ -5,6 +5,6 @@ Binary: gbs, gbs-api, gbs-export, gbs-remotebuild
 Maintainer: Jian-feng Ding <jian-feng.ding@intel.com>
 Architecture: all
 Standards-Version: 3.7.1
-Build-Depends: debhelper, python-support
+Build-Depends: debhelper, python-support, python-docutils
 Files:
  574996dfeeb001e70f20239a0e621daf 2457861 gbs_0.20.tar.gz
index 715133cd7a0f2eaecc4edc73344565efb23bb211..9651c5cc448970971ec05b8e918c080254326e07 100644 (file)
@@ -27,6 +27,7 @@ Requires:   %{name}-export = %{version}-%{release}
 Requires:   %{name}-remotebuild = %{version}-%{release}
 
 BuildRequires:  python-devel
+BuildRequires:  python-docutils
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -76,12 +77,13 @@ external software.
 
 %build
 %{__python} setup.py build
+make man
 
 %install
 %{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-#mkdir -p %{buildroot}/%{_prefix}/share/man/man1
-#install -m644 doc/gbs.1 %{buildroot}/%{_prefix}/share/man/man1
+mkdir -p %{buildroot}/%{_prefix}/share/man/man1
+install -m644 docs/gbs.1 %{buildroot}/%{_prefix}/share/man/man1
 
 %clean
 rm -rf %{buildroot}
@@ -89,7 +91,7 @@ rm -rf %{buildroot}
 %files
 %defattr(-,root,root,-)
 %doc README.rst docs/RELEASE_NOTES
-#%{_mandir}/man1/*
+%{_mandir}/man1/*
 %{python_sitelib}/gitbuildsys/cmd_build.py*
 %{python_sitelib}/gitbuildsys/cmd_changelog.py*
 %{python_sitelib}/gitbuildsys/cmd_chroot.py*