|
Lukas Bezdicka |
d5f0b7a |
%global pypi_name oslo.reports
|
|
|
3a08fb2 |
%global pkg_name oslo-reports
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%if 0%{?fedora} >= 24
|
|
Lukas Bezdicka |
d5f0b7a |
%global with_python3 1
|
|
Lukas Bezdicka |
d5f0b7a |
%endif
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
Name: python-%{pkg_name}
|
|
|
e9e334b |
Version: 1.17.0
|
|
|
be03aa9 |
Release: 3%{?dist}
|
|
Lukas Bezdicka |
d5f0b7a |
Summary: Openstack common reports library
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
License: ASL 2.0
|
|
Lukas Bezdicka |
d5f0b7a |
URL: http://launchpad.net/oslo
|
|
|
e9e334b |
Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
|
|
|
3a08fb2 |
|
|
Lukas Bezdicka |
d5f0b7a |
BuildArch: noarch
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%description
|
|
Lukas Bezdicka |
d5f0b7a |
The Oslo project intends to produce a python library containing
|
|
Lukas Bezdicka |
d5f0b7a |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
Lukas Bezdicka |
d5f0b7a |
by the project should be high quality, stable, consistent and generally
|
|
Lukas Bezdicka |
d5f0b7a |
useful.
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
OpenStack library for creating Guru Meditation Reports and other reports.
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%package -n python2-%{pkg_name}
|
|
|
3a08fb2 |
Summary: OpenStack common reports library
|
|
|
3a08fb2 |
%{?python_provide:%python_provide python2-%{pkg_name}}
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
BuildRequires: python2-devel
|
|
Lukas Bezdicka |
d5f0b7a |
BuildRequires: python-pbr
|
|
|
3a08fb2 |
# test requirements
|
|
|
3a08fb2 |
BuildRequires: python-hacking
|
|
|
3a08fb2 |
BuildRequires: python-oslotest
|
|
|
87942b9 |
BuildRequires: python-oslo-config
|
|
|
3a08fb2 |
BuildRequires: python-eventlet
|
|
|
3a08fb2 |
BuildRequires: python-greenlet
|
|
|
3a08fb2 |
BuildRequires: python-coverage
|
|
|
3a08fb2 |
BuildRequires: python-oslo-utils
|
|
|
2a9baa0 |
BuildRequires: python-oslo-serialization
|
|
|
2a9baa0 |
BuildRequires: python-psutil
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-jinja2
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-babel
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-oslo-i18n >= 1.5.0
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-oslo-serialization >= 1.4.0
|
|
|
87942b9 |
Requires: python-oslo-utils >= 2.0.0
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-psutil
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python-six >= 1.9.0
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%description -n python2-%{pkg_name}
|
|
Lukas Bezdicka |
d5f0b7a |
The Oslo project intends to produce a python library containing
|
|
Lukas Bezdicka |
d5f0b7a |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
Lukas Bezdicka |
d5f0b7a |
by the project should be high quality, stable, consistent and generally
|
|
Lukas Bezdicka |
d5f0b7a |
useful.
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
OpenStack library for creating Guru Meditation Reports and other reports.
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%package -n python-%{pkg_name}-doc
|
|
|
3a08fb2 |
Summary: Documentation for OpenStack common reports library
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
BuildRequires: python-sphinx
|
|
|
3a08fb2 |
BuildRequires: python-oslo-sphinx >= 2.5.0
|
|
|
3a08fb2 |
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%description -n python-%{pkg_name}-doc
|
|
|
3a08fb2 |
Documentation for the oslo.reports library.
|
|
|
3a08fb2 |
|
|
|
3a08fb2 |
%package -n python-%{pkg_name}-tests
|
|
|
3a08fb2 |
Summary: Test module for OpenStack common reports library
|
|
|
3a08fb2 |
|
|
|
3a08fb2 |
Requires: python-%{pkg_name} = %{version}-%{release}
|
|
|
3a08fb2 |
Requires: python-hacking
|
|
|
3a08fb2 |
Requires: python-oslotest
|
|
|
3a08fb2 |
Requires: python-oslo-config
|
|
|
3a08fb2 |
Requires: python-eventlet
|
|
|
3a08fb2 |
Requires: python-greenlet
|
|
|
3a08fb2 |
Requires: python-coverage
|
|
|
3a08fb2 |
|
|
|
3a08fb2 |
%description -n python-%{pkg_name}-tests
|
|
|
3a08fb2 |
Test module for OpenStack common reports library
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%if 0%{?with_python3}
|
|
|
3a08fb2 |
%package -n python3-%{pkg_name}
|
|
|
3a08fb2 |
Summary: OpenStack oslo.reports library
|
|
|
3a08fb2 |
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
BuildRequires: python3-devel
|
|
Lukas Bezdicka |
d5f0b7a |
BuildRequires: python3-pbr
|
|
|
3a08fb2 |
# test requirements
|
|
|
3a08fb2 |
BuildRequires: python3-hacking
|
|
|
3a08fb2 |
BuildRequires: python3-oslotest
|
|
|
2c9ecfe |
BuildRequires: python3-oslo-config
|
|
|
3a08fb2 |
BuildRequires: python3-eventlet
|
|
|
3a08fb2 |
BuildRequires: python3-greenlet
|
|
|
3a08fb2 |
BuildRequires: python3-coverage
|
|
|
3a08fb2 |
BuildRequires: python3-oslo-utils
|
|
|
2a9baa0 |
BuildRequires: python3-oslo-serialization
|
|
|
2a9baa0 |
BuildRequires: python3-psutil
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-jinja2
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-babel
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-oslo-i18n >= 1.5.0
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-oslo-serialization >= 1.4.0
|
|
|
2c9ecfe |
Requires: python3-oslo-utils >= 2.0.0
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-psutil
|
|
Lukas Bezdicka |
d5f0b7a |
Requires: python3-six >= 1.9.0
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%description -n python3-%{pkg_name}
|
|
Lukas Bezdicka |
d5f0b7a |
The Oslo project intends to produce a python library containing
|
|
Lukas Bezdicka |
d5f0b7a |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
Lukas Bezdicka |
d5f0b7a |
by the project should be high quality, stable, consistent and generally
|
|
Lukas Bezdicka |
d5f0b7a |
useful.
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
OpenStack library for creating Guru Meditation Reports and other reports.
|
|
Lukas Bezdicka |
d5f0b7a |
%endif
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
2622a7a |
%if 0%{?with_python3}
|
|
|
2622a7a |
%package -n python3-%{pkg_name}-tests
|
|
|
2622a7a |
Summary: Test module for OpenStack common reports library
|
|
|
2622a7a |
|
|
|
2622a7a |
Requires: python3-%{pkg_name} = %{version}-%{release}
|
|
|
2622a7a |
Requires: python3-hacking
|
|
|
2622a7a |
Requires: python3-oslotest
|
|
|
2622a7a |
Requires: python3-oslo-config
|
|
|
2622a7a |
Requires: python3-eventlet
|
|
|
2622a7a |
Requires: python3-greenlet
|
|
|
2622a7a |
Requires: python3-coverage
|
|
|
2622a7a |
|
|
|
2622a7a |
%description -n python3-%{pkg_name}-tests
|
|
|
2622a7a |
Test module for OpenStack common reports library
|
|
|
2622a7a |
%endif
|
|
|
2622a7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%prep
|
|
Lukas Bezdicka |
d5f0b7a |
%setup -q -n %{pypi_name}-%{upstream_version}
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
# Let RPM handle the dependencies
|
|
|
3a08fb2 |
rm -f requirements.txt
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%build
|
|
|
3a08fb2 |
%py2_build
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
# generate html docs
|
|
Lukas Bezdicka |
d5f0b7a |
sphinx-build doc/source html
|
|
Lukas Bezdicka |
d5f0b7a |
# remove the sphinx-build leftovers
|
|
Lukas Bezdicka |
d5f0b7a |
rm -rf html/.{doctrees,buildinfo}
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%if 0%{?with_python3}
|
|
|
3a08fb2 |
%py3_build
|
|
|
3a08fb2 |
%endif
|
|
|
3a08fb2 |
|
|
Lukas Bezdicka |
d5f0b7a |
%install
|
|
|
3a08fb2 |
%py2_install
|
|
|
3a08fb2 |
|
|
Lukas Bezdicka |
d5f0b7a |
%if 0%{?with_python3}
|
|
|
3a08fb2 |
%py3_install
|
|
Lukas Bezdicka |
d5f0b7a |
%endif
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%check
|
|
Lukas Bezdicka |
d5f0b7a |
%{__python2} setup.py test
|
|
Lukas Bezdicka |
d5f0b7a |
%if 0%{?with_python3}
|
|
|
3a08fb2 |
rm -rf .testrepository
|
|
Lukas Bezdicka |
d5f0b7a |
%{__python3} setup.py test
|
|
Lukas Bezdicka |
d5f0b7a |
%endif
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%files -n python2-%{pkg_name}
|
|
Lukas Bezdicka |
d5f0b7a |
%license LICENSE
|
|
Lukas Bezdicka |
d5f0b7a |
%doc README.rst
|
|
Lukas Bezdicka |
d5f0b7a |
%{python2_sitelib}/oslo_reports
|
|
Lukas Bezdicka |
d5f0b7a |
%{python2_sitelib}/*.egg-info
|
|
|
3a08fb2 |
%exclude %{python2_sitelib}/oslo_reports/tests
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
Lukas Bezdicka |
d5f0b7a |
%if 0%{?with_python3}
|
|
|
3a08fb2 |
%files -n python3-%{pkg_name}
|
|
Lukas Bezdicka |
d5f0b7a |
%license LICENSE
|
|
Lukas Bezdicka |
d5f0b7a |
%doc README.rst
|
|
Lukas Bezdicka |
d5f0b7a |
%{python3_sitelib}/oslo_reports
|
|
Lukas Bezdicka |
d5f0b7a |
%{python3_sitelib}/*.egg-info
|
|
|
3a08fb2 |
%exclude %{python3_sitelib}/oslo_reports/tests
|
|
Lukas Bezdicka |
d5f0b7a |
%endif
|
|
|
1ce8b8f |
|
|
|
3a08fb2 |
%files -n python-%{pkg_name}-doc
|
|
Lukas Bezdicka |
d5f0b7a |
%license LICENSE
|
|
Lukas Bezdicka |
d5f0b7a |
%doc html
|
|
Lukas Bezdicka |
d5f0b7a |
|
|
|
3a08fb2 |
%files -n python-%{pkg_name}-tests
|
|
|
3a08fb2 |
%{python2_sitelib}/oslo_reports/tests
|
|
|
9b0daf5 |
|
|
|
2622a7a |
%if 0%{?with_python3}
|
|
|
2622a7a |
%files -n python3-%{pkg_name}-tests
|
|
|
2622a7a |
%{python3_sitelib}/oslo_reports/tests
|
|
|
2622a7a |
%endif
|
|
|
2622a7a |
|
|
|
3a08fb2 |
%changelog
|
|
|
be03aa9 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-3
|
|
|
be03aa9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
be03aa9 |
|
|
|
083010a |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.17.0-2
|
|
|
083010a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
083010a |
|
|
|
e9e334b |
* Wed Feb 08 2017 Alfredo Moralejo <amoralej@redhat.com> 1.17.0-1
|
|
|
e9e334b |
- Update to 1.17.0
|
|
Lukas Bezdicka |
515d19b |
|