Blame python-rsdclient.spec

390066e
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
390066e
390066e
%global with_doc 1
3f595f6
3f595f6
%global sname rsdclient
3f595f6
%global pyname python_rsdclient
3f595f6
3f595f6
Name:           python-%{sname}
e072065
Version:        1.0.2
165e3cf
Release:        7%{?dist}
3f595f6
Summary:        OpenStack client plugin for Rack Scale Design
3f595f6
3f595f6
License:        ASL 2.0
3f595f6
URL:            http://git.openstack.org/cgit/openstack/%{name}
3f595f6
Source0:        http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
3f595f6
BuildArch:      noarch
3f595f6
3f595f6
%description
3f595f6
This is a client for the RSD Pod Manager API, which is based on OpenStack
3f595f6
client framework. It provides a Python API (rsdclient/v1 module) and a RSD
3f595f6
specific plugin for OpenStack client (rsdclient/osc).
3f595f6
e072065
%package -n     python3-%{sname}
3f595f6
Summary:        %{summary}
e072065
%{?python_provide:%python_provide python3-%{sname}}
3f595f6
3f595f6
BuildRequires:  git
e072065
BuildRequires:  python3-devel
e072065
BuildRequires:  python3-oslotest >= 1.10.0
e072065
BuildRequires:  python3-setuptools
e072065
BuildRequires:  python3-testrepository >= 0.0.18
e072065
BuildRequires:  python3-testtools >= 1.4.0
e072065
e072065
Requires:       python3-six >= 1.10.0
e072065
Requires:       python3-osc-lib >= 1.7.0
e072065
Requires:       python3-pbr >= 2.0
e072065
Requires:       python3-rsd-lib >= 1.2.0
e072065
%description -n python3-%{sname}
3f595f6
This is a client for the RSD Pod Manager API, which is based on OpenStack
3f595f6
client framework. It provides a Python API (rsdclient/v1 module) and a RSD
3f595f6
specific plugin for OpenStack client (rsdclient/osc).
3f595f6
e072065
%package -n python3-%{sname}-tests
3f595f6
Summary: python-rsdclient tests
e072065
Requires: python3-%{sname} = %{version}-%{release}
3f595f6
e072065
%description -n python3-%{sname}-tests
3f595f6
Tests for python-rsdclient
3f595f6
390066e
%if 0%{?with_doc}
3f595f6
%package -n python-%{sname}-doc
3f595f6
Summary: python-rsdclient documentation
e072065
BuildRequires: python3-sphinx
e072065
BuildRequires: python3-openstackdocstheme >= 1.11.0
3f595f6
3f595f6
%description -n python-%{sname}-doc
3f595f6
Documentation for python-rsdclient
390066e
%endif
3f595f6
3f595f6
%prep
3f595f6
%autosetup -n %{name}-%{upstream_version} -S git
3f595f6
3f595f6
%build
e072065
%{py3_build}
3f595f6
390066e
%if 0%{?with_doc}
9d21a89
# generate html docs
e072065
%{__python3} setup.py build_sphinx
e072065
# remove the sphinx-build-3 leftovers
390066e
rm -rf doc/build/html/.{doctrees,buildinfo}
9d21a89
%endif
3f595f6
3f595f6
%install
e072065
%{py3_install}
3f595f6
3f595f6
# Setup directories
3f595f6
install -d -m 755 %{buildroot}%{_datadir}/%{pyname}
3f595f6
install -d -m 755 %{buildroot}%{_sharedstatedir}/%{pyname}
3f595f6
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{pyname}
3f595f6
e072065
%files -n python3-%{sname}
3f595f6
%license LICENSE
3f595f6
%doc README.rst doc/source/readme.rst
e072065
%{python3_sitelib}/%{sname}
e072065
%{python3_sitelib}/%{pyname}-*.egg-info
e072065
%exclude %{python3_sitelib}/%{sname}/tests
3f595f6
e072065
%files -n python3-%{sname}-tests
3f595f6
%license LICENSE
e072065
%{python3_sitelib}/%{sname}/tests
3f595f6
390066e
%if 0%{?with_doc}
3f595f6
%files -n python-%{sname}-doc
3f595f6
%license LICENSE
3f595f6
%doc doc/build/html README.rst
390066e
%endif
3f595f6
3f595f6
%changelog
165e3cf
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 1.0.2-7
165e3cf
- Rebuilt for Python 3.11
165e3cf
c4f96d0
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
c4f96d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c4f96d0
617f1fd
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-5
617f1fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
617f1fd
d12ffca
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.2-4
d12ffca
- Rebuilt for Python 3.10
d12ffca
667110f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
667110f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
667110f
be0c0fc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
be0c0fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
be0c0fc
e072065
* Thu Jun 04 2020 Joel Capitao <jcapitao@redhat.com> 1.0.2-1
e072065
- Update to upstream version 1.0.2
e072065
7523662
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-3
7523662
- Rebuilt for Python 3.9
7523662
05cf701
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
05cf701
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
05cf701
dc13922
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.0.0-1
dc13922
- Update to upstream version 1.0.0
dc13922
4d2bf37
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-4
4d2bf37
- Rebuilt for Python 3.8.0rc1 (#1748018)
4d2bf37
c69b20d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-3
c69b20d
- Rebuilt for Python 3.8
c69b20d
002ef02
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
002ef02
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
002ef02
390066e
* Fri Apr 05 2019 RDO <dev@lists.rdoproject.org> 0.2.0-1
390066e
- Update to 0.2.0