diff --git a/.gitignore b/.gitignore index e69de29..4a8ca37 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/oslo.log-1.0.0.tar.gz diff --git a/python-oslo-log.spec b/python-oslo-log.spec new file mode 100644 index 0000000..10d975d --- /dev/null +++ b/python-oslo-log.spec @@ -0,0 +1,79 @@ +%{!?_licensedir:%global license %%doc} +%global pypi_name oslo.log + +Name: python-oslo-log +Version: 1.0.0 +Release: 1%{?dist} +Summary: OpenStack Oslo Log 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-babel +Requires: python-six >= 1.9.0 +Requires: python-iso8601 +Requires: python-oslo-config +Requires: python-oslo-context +Requires: python-oslo-i18n +Requires: python-oslo-utils +Requires: python-oslo-serialization + +%description +OpenStack logging configuration library provides standardized configuration +for all openstack projects. It also provides custom formatters, handlers and +support for context specific logging (like resource id’s etc). + +%package doc +Summary: Documentation for the Oslo Log handling library + +BuildRequires: python-sphinx +BuildRequires: python-oslo-sphinx +BuildRequires: python-oslo-config +BuildRequires: python-oslo-utils +BuildRequires: python-oslo-context + +%description doc +Documentation for the Oslo Log 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 + + +%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 LICENSE ChangeLog AUTHORS +%{python2_sitelib}/oslo_log +%{python2_sitelib}/*.egg-info + +%files doc +%doc html +%license LICENSE + +%changelog +* Thu Mar 26 2015 Haïkel Guémar - 1.0.0-1 +- Upstream 1.0.0 +- Based on Derek Higgins spec from Delorean + diff --git a/sources b/sources index e69de29..f8ab281 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +37f5dc8642e9bee93ec2897333f0152d oslo.log-1.0.0.tar.gz