From 8ff2bad1fcff64db1c4a55b42bae406a014730a1 Mon Sep 17 00:00:00 2001 From: Alan Pevec Date: Aug 13 2014 11:41:26 +0000 Subject: initial commit --- diff --git a/.gitignore b/.gitignore index e69de29..ecfe1bc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/oslo.utils-0.1.1.tar.gz diff --git a/python-oslo-utils.spec b/python-oslo-utils.spec new file mode 100644 index 0000000..4fa891c --- /dev/null +++ b/python-oslo-utils.spec @@ -0,0 +1,75 @@ +# Created by pyp2rpm-1.1.0b +%global pypi_name oslo.utils + +Name: python-oslo-utils +Version: 0.1.1 +Release: 1%{?dist} +Summary: OpenStack Oslo Utility 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 + +Requires: python-oslo-config +Requires: python-oslo-i18n +Requires: python-babel +Requires: python-iso8601 +Requires: python-six + +%description +The OpenStack Oslo Utility library. +* Documentation: http://docs.openstack.org/developer/oslo.utils +* Source: http://git.openstack.org/cgit/openstack/oslo.utils +* Bugs: http://bugs.launchpad.net/oslo + + +%package doc +Summary: Documentation for the Oslo database handling library +Group: Documentation + +BuildRequires: python-sphinx +BuildRequires: python-oslo-sphinx + +%description doc +Documentation for the Oslo database handling library. + + +%prep +%setup -q -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info +# Let RPM handle the dependencies +rm -f requirements.txt +# make doc build compatible with python-oslo-sphinx RPM +sed -i 's/oslosphinx/oslo.sphinx/' doc/source/conf.py + + +%build +%{__python2} setup.py build + +# generate html docs +sphinx-build doc/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} + + +%files +%doc README.rst LICENSE +%{python2_sitelib}/oslo +%{python2_sitelib}/*.egg-info +%{python2_sitelib}/*-nspkg.pth + +%files doc +%doc html LICENSE + +%changelog +* Thu Jul 31 2014 Alan - 0.1.1-1 +- Initial package. diff --git a/sources b/sources index e69de29..88cf0fb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6daf07d005c19449a654bf4d0757390d oslo.utils-0.1.1.tar.gz