[be] Initial Fedora package

Michel Alexandre Salim salimma at fedoraproject.org
Fri Mar 25 20:28:19 UTC 2011


commit 2506123b510117152b2e4586384be692bd69dba9
Author: Michel Alexandre Salim <michel at sylvestre.me>
Date:   Fri Mar 25 21:28:00 2011 +0100

    Initial Fedora package

 .gitignore             |    1 +
 be-1.0.0-manpage.patch |  355 ++++++++++++++++++++++++++++++++++++++++++++++++
 be.spec                |   69 ++++++++++
 sources                |    1 +
 4 files changed, 426 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3aed5fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/be-1.0.0.tar.gz
diff --git a/be-1.0.0-manpage.patch b/be-1.0.0-manpage.patch
new file mode 100644
index 0000000..b8b3423
--- /dev/null
+++ b/be-1.0.0-manpage.patch
@@ -0,0 +1,355 @@
+From 2aeaa4e265deb093a5e37c5973deb8d932974491 Mon Sep 17 00:00:00 2001
+From: W. Trevor King <wking at drexel.edu>
+Date: Mon, 10 Jan 2011 22:30:11 -0500
+Subject: [PATCH] Use Docutils' rst2doc instead of DocBook XML to generate man page.
+
+---
+ Makefile         |   17 +++----
+ doc/doc.txt      |   20 +++------
+ doc/install.txt  |   31 +++---------
+ doc/man/be.1.txt |   72 +++++++++++++++++++++++++++++
+ doc/man/be.1.xml |  133 ------------------------------------------------------
+ 5 files changed, 94 insertions(+), 179 deletions(-)
+ create mode 100644 doc/man/be.1.txt
+ delete mode 100644 doc/man/be.1.xml
+
+diff --git a/Makefile b/Makefile
+index f7937f8..fce6060 100644
+--- a/Makefile
++++ b/Makefile
+@@ -27,10 +27,8 @@
+ 
+ SHELL = /bin/bash
+ RM = /bin/rm
+-DB2MAN = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl
+-DB2HTML = http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl
+-XP = /usr/bin/xsltproc --nonet --param man.charmap.use.subset "0" \
+-	--param make.year.ranges "1" --param make.single.year.ranges "1"
++RST2MAN = /usr/bin/rst2man
++RST2HTML = /usr/bin/rst2html
+ 
+ #PATH = /usr/bin:/bin  # must include sphinx-build for 'sphinx' target.
+ 
+@@ -50,7 +48,8 @@ LIBBE_VERSION := libbe/_version.py
+ GENERATED_FILES := build $(LIBBE_VERSION)
+ 
+ MANPAGE_FILES = $(patsubst %,${MAN_DIR}/%,${MANPAGES})
+-GENERATED_FILES += ${MANPAGE_FILES}
++MANPAGE_HTML =  $(patsubst %,${MAN_DIR}/%.html,${MANPAGES})
++GENERATED_FILES += ${MANPAGE_FILES} ${MANPAGE_HTML}
+ 
+ 
+ .PHONY: all
+@@ -84,10 +83,10 @@ libbe/_version.py:
+ .PHONY: man
+ man: ${MANPAGE_FILES}
+ 
+-%.1: %.1.xml
+-	$(XP) -o $@ $(DB2MAN) $<
+-%.1.html: %.1.xml
+-	$(XP) -o $@ $(DB2HTML) $<
++%.1: %.1.txt
++	$(RST2MAN) $< > $@
++%.1.html: %.1.txt
++	$(RST2HTML) $< > $@
+ 
+ .PHONY: sphinx
+ sphinx:
+diff --git a/doc/doc.txt b/doc/doc.txt
+index 1b2b5aa..e57b1f7 100644
+--- a/doc/doc.txt
++++ b/doc/doc.txt
+@@ -25,20 +25,12 @@ syntax.
+ Man page
+ ========
+ 
+-The man-page source :file:`be.1.xml` is writen in DocBook 5 [#DB5]_
+-format.  The :file:`Makefile` converts it to :manpage:`roff(7)` format
+-using an XSLT stylesheet.  See DocBook XSL [#DBXSL]_ for details.
+-See :doc:`install` for suggestions on setting up a DocBook 5 toolchain
+-in several distributions.
++The man-page source :file:`be.1.txt` is writen in reStructuredText.
++The :file:`Makefile` converts it to :manpage:`roff(7)` format using
++Docutils_ ``rst2man``.
+ 
+ The man page should conform to `Debian policy`_.
+ 
+-.. [#DB5]
+-   See Norman Walsh's `DocBook 5: The Definitive Guide
+-   <http://www.docbook.org/>`_
+-
+-.. [#DBXSL]
+-   See Bob Stayton's `DocBook XSL: The Complete Guide
+-   <http://www.sagehill.net/book-description.html>`_
+-
+-.. _Debian policy: http://www.debian.org/doc/debian-policy/ch-docs.html#s12.1
++.. _Docutils: http://docutils.sourceforge.net/
++.. _Debian policy:
++  http://www.debian.org/doc/debian-policy/ch-docs.html
+diff --git a/doc/install.txt b/doc/install.txt
+index 5752566..c7b9171 100644
+--- a/doc/install.txt
++++ b/doc/install.txt
+@@ -5,34 +5,19 @@ Installing BE
+ Dependencies
+ ============
+ 
+-==============  =======================  =============  ===========================
+-Package         Role                     Debian         Gentoo
+-==============  =======================  =============  ===========================
+-PyYAML_         serialized data storage  python-yaml    dev-python/pyyaml
+-Sphinx_         see :doc:`doc`           python-sphinx  dev-python/sphinx
++==============  =======================  ===============  ===========================
++Package         Role                     Debian           Gentoo
++==============  =======================  ===============  ===========================
++PyYAML_         serialized data storage  python-yaml      dev-python/pyyaml
++Sphinx_         see :doc:`doc`           python-sphinx    dev-python/sphinx
+ numpydoc_       see :doc:`doc`           
+-xsltproc_       see :doc:`doc`           xsltproc       dev-libs/libxslt
+-==============  =======================  =============  ===========================
+-
+-The XSLT stylesheets reqired to generate the manpage are packaged in
+-``docbook-xsl-ns`` on Debian [#debian] and
+-``app-text/docbook-xsl-ns-stylesheets`` on Gentoo [#gentoo].  For
+-futher details on DocBook publishing, see the DocBook wiki pages on
+-tools_ and stylesheets_.
++Docutils_       manpage generation       python-docutils  dev-python/docutils
++==============  =======================  ===============  ===========================
+ 
+ .. _PyYAML: http://pyyaml.org/
+ .. _Sphinx: http://sphinx.pocoo.org/
+ .. _numpydoc: http://pypi.python.org/pypi/numpydoc
+-.. _xsltproc: http://www.xmlsoft.org/XSLT/
+-.. [#debian] See bugs `490716
+-  <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490716>`_
+-  and `447959
+-  <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447959>`_.
+-.. [#gentoo] See Diego Elio Pettenò's `blog entry
+-  <http://blog.flameeyes.eu/2008/09/22/docbook-5-and-gentoo>`_.
+-.. _tools: http://wiki.docbook.org/topic/DocBookPublishingTools
+-.. _stylesheets: http://wiki.docbook.org/topic/DocBookXslStylesheets
+-
++.. _Docutils: http://docutils.sourceforge.net/
+ 
+ Git repository
+ ==============
+diff --git a/doc/man/be.1.txt b/doc/man/be.1.txt
+new file mode 100644
+index 0000000..a636a18
+--- /dev/null
++++ b/doc/man/be.1.txt
+@@ -0,0 +1,72 @@
++==
++be
++==
++
++----------------------------------------------
++distributed bug tracking from the command line
++----------------------------------------------
++
++:Author: wking at drexel.edu
++:Date:   2011-01-10
++:Copyright: Permission is granted to copy, distribute and/or modify
++  this document under the terms of the GNU General Public License,
++  Version 2 or (at your option) any later version published by the
++  Free Software Foundation.
++:Version: 0.2
++:Manual section: 1
++:Manual group: distributed bug tracker
++
++SYNOPSIS
++========
++
++be [options] [command] [command_options] [commands_args...]
++
++DESCRIPTION
++===========
++
++``be`` allows commandline interaction with the Bugs Everywhere
++database in a project tree.
++
++To avoid bit-rotted documentation, we do not describe all available
++commands and options in this manpage.  Run ``be help`` for accurate
++documentation.  See the `Bugs Everywhere Manual`_ for more detailed
++documentation and tutorials.
++
++.. _Bugs Everywhere Manual: http://docs.bugseverywhere.org/
++
++COMMANDS
++========
++
++help
++    Print help for ``be`` and a list of all available commands.
++
++Run ``be help`` for a complete list.
++
++EXAMPLES
++========
++
++be help
++    Show general help and a list of all commands.
++
++be help init
++    Show help for the ``init`` command.
++
++be init
++    Initialize a new Bugs Everywhere database.
++
++BUGS
++====
++
++The Bugs Everywhere uses Bugs Everywhere to track its bugs.  You can
++submit bugs directly using ``be``::
++
++  % be --repo http://bugs.bugseverywhere.org/ new "The demuxulizer is broken"           
++  Created bug with ID bea/abc
++  % be --repo http://bugs.bugseverywhere.org/ comment bea/abc
++  <Describe bug>
++  % be --repo http://bugs.bugseverywhere.org/ commit "Reported bug in demuxulizer" 
++
++Or send an email to the mailing list at `be-devel at bugseverywhere.org`_.
++
++.. _be-devel at bugseverywhere.org:
++  http://void.printf.net/cgi-bin/mailman/listinfo/be-devel
+diff --git a/doc/man/be.1.xml b/doc/man/be.1.xml
+deleted file mode 100644
+index 3b5c8d0..0000000
+--- a/doc/man/be.1.xml
++++ /dev/null
+@@ -1,133 +0,0 @@
+-<?xml version="1.0" encoding="utf-8"?>
+-<!DOCTYPE article [
+-  <!ENTITY dhfirstname "Ben">
+-  <!ENTITY dhsurname   "Finney">
+-  <!ENTITY dhusername  "&dhfirstname; &dhsurname;">
+-  <!ENTITY dhemail     "ben+debian at benfinney.id.au">
+-  <!ENTITY dhdate      "2010-09-28">
+-  <!ENTITY dhsection   "1">
+-  <!ENTITY pkgfullname "Bugs Everywhere">
+-  <!ENTITY uccmdname   "BE">
+-  <!ENTITY cmdname     "be">
+-]>
+-
+-<article xmlns="http://docbook.org/ns/docbook" version="5.0"
+-	 xmlns:xlink="http://www.w3.org/TR/xlink/">
+-<title>&pkgfullname; Refentries</title>
+-<refentry>
+-  <info>
+-    <productname>Debian</productname>
+-    <date>&dhdate;</date>
+-    <address>
+-      <email>&dhemail;</email>
+-    </address>
+-    <authorgroup>
+-      <author>
+-	<firstname>&dhfirstname;</firstname>
+-	<surname>&dhsurname;</surname>
+-	<contrib>Created the initial SGML version of this manpage for
+-	  the Debian system.</contrib>
+-	<address>
+-          <email>&dhemail;</email>
+-	</address>
+-      </author>
+-      <author>
+-	<firstname>W. Trevor</firstname>
+-	<surname>King</surname>
+-	<contrib>Converted this manpage to DocBook 5 XML and extended
+-	  following
+-	  <citerefentry>
+-            <refentrytitle>dh_make</refentrytitle>
+-            <manvolnum>8</manvolnum>
+-	  </citerefentry>'s
+-	  <filename>manpage.xml.ex</filename>.</contrib>
+-	<address>
+-          <email>&dhemail;</email>
+-	</address>
+-      </author>
+-    </authorgroup>
+-    <copyright>
+-      <year>2009</year>
+-      <year>2010</year>
+-      <holder>&dhusername;</holder>
+-    </copyright>
+-    <legalnotice>
+-      <para>This manual page was written for the Debian system
+-        (and may be used by others).</para>
+-      <para>Permission is granted to copy, distribute and/or modify this
+-        document under the terms of the GNU General Public License,
+-        Version 2 or (at your option) any later version published by
+-        the Free Software Foundation.</para>
+-      <para>On Debian systems, the complete text of the GNU General Public
+-        License can be found in
+-        <filename>/usr/share/common-licenses/GPL</filename>.</para>
+-    </legalnotice>
+-  </info>
+-  <refmeta>
+-    <refentrytitle>&uccmdname;</refentrytitle>
+-    <manvolnum>&dhsection;</manvolnum>
+-  </refmeta>
+-  <refnamediv>
+-    <refname>&cmdname;</refname>
+-    <refpurpose>distributed bug tracker</refpurpose>
+-  </refnamediv>
+-  <refsynopsisdiv>
+-    <cmdsynopsis>
+-      <command>&cmdname;</command>
+-      <arg><replaceable>options</replaceable></arg>
+-      <arg><replaceable>command</replaceable></arg>
+-      <arg><replaceable>command_options</replaceable></arg>
+-      <arg rep="repeat"><replaceable>command_args</replaceable></arg>
+-    </cmdsynopsis>
+-  </refsynopsisdiv>
+-  <refsect1 id="description">
+-    <title>DESCRIPTION</title>
+-
+-    <para>This manual page documents briefly the
+-      <command>&cmdname;</command> command, part of the &pkgfullname;
+-      package.</para>
+-
+-    <para><command>&cmdname;</command> allows commandline interaction
+-      with the &pkgfullname; database in a project tree.</para>
+-
+-    <para>To avoid bit-rotted documentation, we do not describe all
+-      available commands and options in this manpage.
+-      Run <command>&cmdname; help</command> for accurate
+-      documentation.  See
+-      the <link xlink:href="http://docs.bugseverywhere.org/">&pkgfullname;
+-      Manual</link> for more detailed documentation and
+-      tutorials.</para>
+-
+-  </refsect1>
+-  <refsect1 id="commands">
+-    <title>COMMANDS</title>
+-    <variablelist>
+-      <varlistentry>
+-        <term><command>help</command>
+-        </term>
+-        <listitem>
+-          <para>Print help for <command>be</command> and a list of all
+-            available commands.</para>
+-        </listitem>
+-      </varlistentry>
+-    </variablelist>
+-  </refsect1>
+-  <refsect1 id="examples">
+-    <title>EXAMPLES</title>
+-    <glosslist>
+-      <glossentry>
+-        <glossterm><command>&cmdname; help</command></glossterm>
+-        <glossdef>
+-	  <para>Show general help and a list of all commands.</para>
+-	</glossdef>
+-      </glossentry>
+-      <glossentry>
+-        <glossterm><command>&cmdname; help init</command></glossterm>
+-        <glossdef>
+-	  <para>Show help for the <command>init</command> command.</para>
+-	</glossdef>
+-      </glossentry>
+-    </glosslist>
+-  </refsect1>
+-</refentry>
+-</article>
+-- 
+1.7.4.1
+
diff --git a/be.spec b/be.spec
new file mode 100644
index 0000000..7079252
--- /dev/null
+++ b/be.spec
@@ -0,0 +1,69 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name:           be
+Version:        1.0.0
+Release:        2%{?dist}
+Summary:        Bugs Everywhere, a distributed bug tracker
+
+# for older rpmlint versions
+Group:          Development/Tools
+License:        GPLv2+
+URL:            http://bugseverywhere.org/
+Source0:        http://download.bugseverywhere.org/releases/be-%{version}.tar.gz
+# from commit 2aeaa4e265deb093a5e37c5973deb8d932974491
+Patch0:         be-1.0.0-manpage.patch
+
+BuildArch:      noarch
+BuildRequires:  python-docutils
+Requires:       PyYAML
+
+%description
+This is Bugs Everywhere (BE), a bug tracker built on distributed
+version control.  It works with Arch, Bazaar, Darcs, Git, Mercurial,
+and Monotone at the moment, but is easily extensible.  It can also
+function with no VCS at all.
+
+The idea is to package the bug information with the source code, so
+that bugs can be marked "fixed" in the branches that fix them.  So,
+instead of numbers, bugs have globally unique ids.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .manpage
+sed -i '1d' libbe/version.py
+sed -i '1d' misc/completion/be.bash
+
+
+%build
+%{__python} setup.py build
+make man
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+COMPDIR=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+mkdir -p $COMPDIR
+cp -p misc/completion/be.bash $COMPDIR/
+
+ 
+%files
+### not needed anymore by RPM, but keep rpmlint happy
+%defattr(-,root,root,-)
+###
+%doc COPYING AUTHORS ChangeLog NEWS README
+%{_bindir}/be
+%{python_sitelib}/*
+%dir %{_sysconfdir}/bash_completion.d
+%config(noreplace) %{_sysconfdir}/bash_completion.d/be.bash
+%{_mandir}/man1/be.1*
+
+
+%changelog
+* Thu Mar 24 2011 Michel Salim <salimma at fedoraproject.org> - 1.0.0-2
+- add Group: field, for compliance with older rpmlint versions
+
+* Wed Mar 23 2011 Michel Salim <salimma at fedoraproject.org> - 1.0.0-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..7fbfff9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fd2786d564cbbe305f9c6b3b154ed617  be-1.0.0.tar.gz


More information about the scm-commits mailing list