[python-pbr] initial import

Matthias Runge mrunge at fedoraproject.org
Mon Apr 29 07:39:44 UTC 2013


commit 775b64432aa2a8171c9f7ad249cf8b494ba269b0
Author: Matthias Runge <mrunge at redhat.com>
Date:   Mon Apr 29 09:39:34 2013 +0200

    initial import

 .gitignore      |    1 +
 python-pbr.spec |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9c44f94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pbr-0.5.8.tar.gz
diff --git a/python-pbr.spec b/python-pbr.spec
new file mode 100644
index 0000000..bfcb879
--- /dev/null
+++ b/python-pbr.spec
@@ -0,0 +1,53 @@
+%global pypi_name pbr
+
+Name:           python-%{pypi_name}
+Version:        0.5.8
+Release:        1%{?dist}
+Summary:        Python Build Reasonableness
+
+License:        ASL 2.0
+URL:            http://pypi.python.org/pypi/pbr
+Source0:        http://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-d2to1
+BuildRequires:  python-sphinx
+Requires:       python-setuptools_git
+BuildRequires:  python-setuptools_git
+
+%description
+PBR is a library that injects some useful and sensible default behaviors into 
+your setuptools run. It started off life as the chunks of code that were copied
+between all of the OpenStack projects. Around the time that OpenStack hit 18 
+different projects each with at least 3 active branches, it seems like a good 
+time to make that code into a proper re-usable library.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+
+%build
+%{__python} setup.py build
+
+# generate html docs 
+sphinx-build doc/source html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+%check
+%{__python} setup.py test
+
+%files
+%doc html README.rst LICENSE
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+%{python_sitelib}/%{pypi_name}
+%changelog
+* Thu Apr 25 2013 Matthias Runge <mrunge at redhat.com> - 0.5.8-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..1b04121 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fa6a9330dc608ea53ae3ac1997fc9648  pbr-0.5.8.tar.gz


More information about the scm-commits mailing list