summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Haerry <mh+fedora@scrit.ch>2016-09-09 16:46:58 +0200
committerMarcel Haerry <mh+fedora@scrit.ch>2016-09-09 16:46:58 +0200
commitb49ea8e94c60c63ee5eec21d1a17e14e6e5b9807 (patch)
tree5a2975d674d6aacc02dc7dd64a16520f9190e216
initial release
-rw-r--r--SPECS/python-sphinxcontrib-autoprogram.spec93
1 files changed, 93 insertions, 0 deletions
diff --git a/SPECS/python-sphinxcontrib-autoprogram.spec b/SPECS/python-sphinxcontrib-autoprogram.spec
new file mode 100644
index 0000000..ab4387e
--- /dev/null
+++ b/SPECS/python-sphinxcontrib-autoprogram.spec
@@ -0,0 +1,93 @@
+# Created by pyp2rpm-3.1.3
+%global pypi_name sphinxcontrib-autoprogram
+
+Name: python-%{pypi_name}
+Version: 0.1.2
+Release: 1%{?dist}
+Summary: Documenting CLI programs
+
+License: BSD
+URL: https://bitbucket.org/birkenfeld/sphinx-contrib
+Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python-setuptools
+BuildRequires: python2-devel
+BuildRequires: python2-six
+BuildRequires: python2-sphinx
+
+BuildRequires: python3-setuptools
+BuildRequires: python3-devel
+BuildRequires: python3-six
+BuildRequires: python3-sphinx
+
+%description
+sphinxcontrib.autoprogram Documenting CLI programs This contrib extension,
+sphinxcontrib.autoprogram, provides an automated way to document CLI programs.
+It scans arparser.ArgumentParser object, and then expands it into a set of ..
+program:: and .. option:: directives.Install using pip:.. codeblock:: console $
+pip install sphinxcontribautoprogramYou can find the documentation from the ...
+
+%package -n python2-%{pypi_name}
+Summary: Documenting CLI programs
+%{?python_provide:%python_provide python2-%{pypi_name}}
+
+Requires: python-sphinx >= 1.2
+Requires: python-six
+%description -n python2-%{pypi_name}
+sphinxcontrib.autoprogram Documenting CLI programs This contrib extension,
+sphinxcontrib.autoprogram, provides an automated way to document CLI programs.
+It scans arparser.ArgumentParser object, and then expands it into a set of ..
+program:: and .. option:: directives.Install using pip:.. codeblock:: console $
+pip install sphinxcontribautoprogramYou can find the documentation from the ...
+
+%package -n python3-%{pypi_name}
+Summary: Documenting CLI programs
+%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
+
+Requires: python3-sphinx >= 1.2
+Requires: python3-six
+%description -n python3-%{pypi_name}
+sphinxcontrib.autoprogram Documenting CLI programs This contrib extension,
+sphinxcontrib.autoprogram, provides an automated way to document CLI programs.
+It scans arparser.ArgumentParser object, and then expands it into a set of ..
+program:: and .. option:: directives.Install using pip:.. codeblock:: console $
+pip install sphinxcontribautoprogramYou can find the documentation from the ...
+
+%prep
+%autosetup -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py2_build
+%py3_build
+
+%install
+# Must do the subpackages' install first because the scripts in /usr/bin are
+# overwritten with every setup.py install.
+%py3_install
+
+%py2_install
+
+
+%check
+%{__python2} setup.py test
+%{__python3} setup.py test
+
+%files -n python2-%{pypi_name}
+%doc README.rst
+%{python2_sitelib}/sphinxcontrib
+%{python2_sitelib}/sphinxcontrib_autoprogram-%{version}-py?.?-nspkg.pth
+%{python2_sitelib}/sphinxcontrib_autoprogram-%{version}-py?.?.egg-info
+
+%files -n python3-%{pypi_name}
+%doc README.rst
+%{python3_sitelib}/sphinxcontrib
+%{python3_sitelib}/sphinxcontrib_autoprogram-%{version}-py?.?-nspkg.pth
+%{python3_sitelib}/sphinxcontrib_autoprogram-%{version}-py?.?.egg-info
+
+%changelog
+* Fri Sep 09 2016 mh <mh+fedora@scrit.ch> - 0.1.2-1
+- Initial package.
+