|
Mark McLoughlin |
a2d74aa |
%global sname oslo.config
|
|
Alan Pevec |
e7dba62 |
%global pypi_name oslo-config
|
|
Alan Pevec |
2e821d2 |
|
|
|
49e0694 |
%if 0%{?fedora}
|
|
|
49e0694 |
%global with_python3 1
|
|
|
49e0694 |
%endif
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
Alan Pevec |
e7dba62 |
|
|
Mark McLoughlin |
69c6541 |
Name: python-oslo-config
|
|
Alan Pevec |
7611173 |
Epoch: 2
|
|
|
4ca7d75 |
Version: 5.2.0
|
|
|
74aa861 |
Release: 4%{?dist}
|
|
Mark McLoughlin |
69c6541 |
Summary: OpenStack common configuration library
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
License: ASL 2.0
|
|
|
4ca7d75 |
URL: https://launchpad.net/%{sname}
|
|
|
4ca7d75 |
Source0: https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz
|
|
Alan Pevec |
2e821d2 |
|
|
|
af6f3ae |
Patch0001: 0001-add-usr-share-project-dist.conf-to-the-default-confi.patch
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
BuildArch: noarch
|
|
Alan Pevec |
e7dba62 |
|
|
Alan Pevec |
e7dba62 |
%description
|
|
Alan Pevec |
e7dba62 |
The Oslo project intends to produce a python library containing
|
|
Alan Pevec |
e7dba62 |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
Alan Pevec |
e7dba62 |
by the project should be high quality, stable, consistent and generally
|
|
Alan Pevec |
e7dba62 |
useful.
|
|
Alan Pevec |
e7dba62 |
|
|
Alan Pevec |
e7dba62 |
The oslo-config library is a command line and configuration file
|
|
Alan Pevec |
e7dba62 |
parsing library from the Oslo project.
|
|
Alan Pevec |
e7dba62 |
|
|
Alan Pevec |
e7dba62 |
%package -n python2-%{pypi_name}
|
|
Alan Pevec |
e7dba62 |
Summary: OpenStack common configuration library
|
|
Alan Pevec |
e7dba62 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
Alan Pevec |
e7dba62 |
|
|
|
4ca7d75 |
Requires: python2-oslo-i18n >= 3.15.3
|
|
|
23056c9 |
Requires: python2-rfc3986 >= 0.3.1
|
|
|
23056c9 |
Requires: python2-pbr
|
|
|
4ca7d75 |
Requires: python2-six >= 1.10.0
|
|
|
23056c9 |
Requires: python2-stevedore >= 1.20.0
|
|
|
23056c9 |
Requires: python2-debtcollector >= 1.2.0
|
|
|
4ca7d75 |
%if 0%{?fedora} > 0
|
|
|
4ca7d75 |
Requires: python2-netaddr >= 0.7.18
|
|
|
23056c9 |
Requires: python2-pyyaml >= 3.10
|
|
|
4ca7d75 |
%else
|
|
|
4ca7d75 |
Requires: python-netaddr >= 0.7.18
|
|
|
4ca7d75 |
Requires: PyYAML >= 3.10
|
|
|
4ca7d75 |
%endif
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
BuildRequires: python2-devel
|
|
|
23056c9 |
BuildRequires: python2-setuptools
|
|
|
23056c9 |
BuildRequires: python2-oslo-i18n
|
|
|
23056c9 |
BuildRequires: python2-rfc3986
|
|
|
23056c9 |
BuildRequires: python2-pbr
|
|
|
66d9fd1 |
BuildRequires: git
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%description -n python2-%{pypi_name}
|
|
Mark McLoughlin |
69c6541 |
The Oslo project intends to produce a python library containing
|
|
Mark McLoughlin |
69c6541 |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
Mark McLoughlin |
69c6541 |
by the project should be high quality, stable, consistent and generally
|
|
Mark McLoughlin |
69c6541 |
useful.
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
The oslo-config library is a command line and configuration file
|
|
Mark McLoughlin |
69c6541 |
parsing library from the Oslo project.
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%package -n python2-%{pypi_name}-doc
|
|
Mark McLoughlin |
69c6541 |
Summary: Documentation for OpenStack common configuration library
|
|
Alan Pevec |
e7dba62 |
%{?python_provide:%python_provide python2-%{pypi_name}-doc}
|
|
Mark McLoughlin |
69c6541 |
|
|
|
23056c9 |
BuildRequires: python2-fixtures
|
|
|
23056c9 |
BuildRequires: python2-openstackdocstheme
|
|
|
23056c9 |
BuildRequires: python2-oslotest >= 1.10.0
|
|
|
23056c9 |
BuildRequires: python2-sphinx
|
|
|
23056c9 |
BuildRequires: python2-stevedore
|
|
|
4ca7d75 |
%if 0%{?fedora} > 0
|
|
|
4ca7d75 |
BuildRequires: python2-netaddr
|
|
|
23056c9 |
BuildRequires: python2-pyyaml
|
|
|
4ca7d75 |
%else
|
|
|
4ca7d75 |
BuildRequires: python-netaddr
|
|
|
4ca7d75 |
BuildRequires: PyYAML
|
|
|
4ca7d75 |
%endif
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%description -n python2-%{pypi_name}-doc
|
|
Mark McLoughlin |
69c6541 |
Documentation for the oslo-config library.
|
|
Mark McLoughlin |
69c6541 |
|
|
|
49e0694 |
%if 0%{?with_python3}
|
|
Alan Pevec |
e7dba62 |
%package -n python3-%{pypi_name}
|
|
|
49e0694 |
Summary: OpenStack common configuration library
|
|
Alan Pevec |
e7dba62 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
Alan Pevec |
e7dba62 |
|
|
|
4ca7d75 |
Requires: python3-netaddr >= 0.7.18
|
|
|
4ca7d75 |
Requires: python3-oslo-i18n >= 3.15.3
|
|
|
4a5423a |
Requires: python3-rfc3986 >= 0.3.1
|
|
|
66d9fd1 |
Requires: python3-pbr
|
|
|
4ca7d75 |
Requires: python3-six >= 1.10.0
|
|
|
4a5423a |
Requires: python3-stevedore >= 1.20.0
|
|
|
68291ac |
Requires: python3-debtcollector >= 1.2.0
|
|
|
4a5423a |
Requires: python3-PyYAML >= 3.10
|
|
|
49e0694 |
|
|
|
49e0694 |
BuildRequires: python3-devel
|
|
|
68291ac |
BuildRequires: python3-oslo-i18n
|
|
|
68291ac |
BuildRequires: python3-rfc3986
|
|
|
66d9fd1 |
BuildRequires: python3-pbr
|
|
|
49e0694 |
BuildRequires: python3-setuptools
|
|
|
66d9fd1 |
BuildRequires: git
|
|
|
66d9fd1 |
# Required for tests
|
|
|
66d9fd1 |
BuildRequires: python3-fixtures
|
|
Alan Pevec |
8cd2898 |
BuildRequires: python3-netaddr
|
|
|
4a5423a |
BuildRequires: python3-openstackdocstheme
|
|
|
66d9fd1 |
BuildRequires: python3-oslotest >= 1.10.0
|
|
|
4ca7d75 |
BuildRequires: python3-six >= 1.10.0
|
|
Alan Pevec |
8cd2898 |
BuildRequires: python3-stevedore
|
|
|
4a5423a |
BuildRequires: python3-PyYAML
|
|
|
49e0694 |
|
|
Alan Pevec |
e7dba62 |
%description -n python3-%{pypi_name}
|
|
|
49e0694 |
The Oslo project intends to produce a python library containing
|
|
|
49e0694 |
infrastructure code shared by OpenStack projects. The APIs provided
|
|
|
49e0694 |
by the project should be high quality, stable, consistent and generally
|
|
|
49e0694 |
useful.
|
|
|
49e0694 |
|
|
|
49e0694 |
The oslo-config library is a command line and configuration file
|
|
|
49e0694 |
parsing library from the Oslo project.
|
|
|
49e0694 |
%endif
|
|
|
49e0694 |
|
|
Mark McLoughlin |
69c6541 |
%prep
|
|
|
66d9fd1 |
%autosetup -n %{sname}-%{upstream_version} -S git
|
|
Alan Pevec |
2e821d2 |
|
|
Mark McLoughlin |
69c6541 |
# let RPM handle deps
|
|
Alan Pevec |
e7dba62 |
rm -rf {test-,}requirements.txt
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
%build
|
|
|
49e0694 |
%{__python2} setup.py build
|
|
|
49e0694 |
%if 0%{?with_python3}
|
|
|
49e0694 |
%{__python3} setup.py build
|
|
|
49e0694 |
%endif
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
%install
|
|
|
49e0694 |
%if 0%{?with_python3}
|
|
|
49e0694 |
# we build the python3 version first not to crush the python2
|
|
|
49e0694 |
# version of oslo-config-generator
|
|
|
49e0694 |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
49e0694 |
mv %{buildroot}%{_bindir}/oslo-config-generator \
|
|
|
49e0694 |
%{buildroot}%{_bindir}/python3-oslo-config-generator
|
|
|
49e0694 |
%endif
|
|
|
49e0694 |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
Mark McLoughlin |
69c6541 |
|
|
|
4ca7d75 |
%{__python2} setup.py build_sphinx -b html
|
|
|
4a5423a |
# remove the sphinx-build leftovers
|
|
|
4ca7d75 |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
Mark McLoughlin |
69c6541 |
|
|
Mark McLoughlin |
69c6541 |
%check
|
|
|
68291ac |
# Tests disabled because of https://review.openstack.org/#/c/334858
|
|
|
68291ac |
# Re-enable them when it's fixed.
|
|
|
68291ac |
%{__python2} setup.py test || :
|
|
Alan Pevec |
e7dba62 |
%if 0%{?with_python3}
|
|
|
66d9fd1 |
rm -rf .testrepository
|
|
|
68291ac |
%{__python3} setup.py test || :
|
|
Alan Pevec |
e7dba62 |
%endif
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%files -n python2-%{pypi_name}
|
|
Alan Pevec |
e7dba62 |
%doc README.rst
|
|
Alan Pevec |
e7dba62 |
%license LICENSE
|
|
Alan Pevec |
2e821d2 |
%{_bindir}/oslo-config-generator
|
|
Alan Pevec |
37b5ef1 |
%{python2_sitelib}/oslo_config
|
|
|
49e0694 |
%{python2_sitelib}/*.egg-info
|
|
Mark McLoughlin |
69c6541 |
|
|
Alan Pevec |
e7dba62 |
%files -n python2-%{pypi_name}-doc
|
|
|
4ca7d75 |
%doc doc/build/html
|
|
Alan Pevec |
e7dba62 |
%license LICENSE
|
|
Mark McLoughlin |
69c6541 |
|
|
|
49e0694 |
%if 0%{?with_python3}
|
|
Alan Pevec |
e7dba62 |
%files -n python3-%{pypi_name}
|
|
Alan Pevec |
e7dba62 |
%doc README.rst
|
|
Alan Pevec |
e7dba62 |
%license LICENSE
|
|
|
49e0694 |
%{_bindir}/python3-oslo-config-generator
|
|
Alan Pevec |
37b5ef1 |
%{python3_sitelib}/oslo_config
|
|
|
49e0694 |
%{python3_sitelib}/*.egg-info
|
|
|
49e0694 |
%endif
|
|
|
49e0694 |
|
|
Mark McLoughlin |
69c6541 |
%changelog
|
|
|
74aa861 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2.0-4
|
|
|
74aa861 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
74aa861 |
|
|
|
31155c8 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2:5.2.0-3
|
|
|
31155c8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
31155c8 |
|
|
|
df35c1f |
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 2:5.2.0-2
|
|
|
df35c1f |
- Rebuilt for Python 3.7
|
|
|
df35c1f |
|
|
|
4ca7d75 |
* Sat Feb 10 2018 RDO <dev@lists.rdoproject.org> 2:5.2.0-1
|
|
|
4ca7d75 |
- Update to 5.2.0
|
|
Mark McLoughlin |
d04d838 |
|