From a8e1444b854d7b4a86ebcb31877aca8356d28454 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Feb 02 2015 09:52:51 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore index e69de29..b2207fb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/oslo.concurrency-1.4.1.tar.gz diff --git a/python-oslo-concurrency.spec b/python-oslo-concurrency.spec new file mode 100644 index 0000000..6853b57 --- /dev/null +++ b/python-oslo-concurrency.spec @@ -0,0 +1,60 @@ +# Created by pyp2rpm-1.1.2 +%global pypi_name oslo.concurrency + +Name: python-oslo-concurrency +Version: 1.4.1 +Release: 1%{?dist} +Summary: oslo.concurrency library + +License: ASL 2.0 +URL: http://launchpad.net/oslo +Source0: https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python-pbr +BuildRequires: python-sphinx +BuildRequires: python-oslo-sphinx + +%description +Oslo concurrency library has utilities for safely running multi-thread, +multi-process applications using locking mechanisms and for running +external processes. + + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +# make doc build compatible with python-oslo-sphinx RPM +sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py + + +# generate html docs +sphinx-build doc/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + +%build +%{__python2} setup.py build + + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} + + + +%files +%doc html README.rst doc/source/readme.rst +%license LICENSE +%{python2_sitelib}/oslo_concurrency +%{python2_sitelib}/oslo +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?-*.pth +%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%{_bindir}/lockutils-wrapper + +%changelog +* Wed Jan 28 2015 Matthias Runge - 1.4.1-1 +- Initial package (rhbz#1186826) diff --git a/sources b/sources index e69de29..61f32a5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ec6ff1c8c7f0d287f326407041c9cf2a oslo.concurrency-1.4.1.tar.gz