Blame SPECS/python-stevedore.spec

679dbc
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
679dbc
%global sources_gpg_sign 0x5d2d1e4fb8d38e6af76c50d53d4fec30cf5ce3da
679dbc
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
679dbc
679dbc
%global common_desc Manage dynamic plugins for Python applications
679dbc
679dbc
Name:           python-stevedore
679dbc
Version:        3.3.0
679dbc
Release:        2%{?dist}
679dbc
Summary:        Manage dynamic plugins for Python applications
679dbc
679dbc
Group:          Development/Languages
679dbc
License:        ASL 2.0
679dbc
URL:            https://github.com/openstack/stevedore
679dbc
Source0:        https://tarballs.openstack.org/stevedore/stevedore-%{upstream_version}.tar.gz
679dbc
# Required for tarball sources verification
679dbc
%if 0%{?sources_gpg} == 1
679dbc
Source1:        https://tarballs.openstack.org/stevedore/stevedore-%{upstream_version}.tar.gz.asc
679dbc
Source2:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
679dbc
%endif
679dbc
BuildArch:      noarch
679dbc
679dbc
# Required for tarball sources verification
679dbc
%if 0%{?sources_gpg} == 1
679dbc
BuildRequires:  /usr/bin/gpgv2
679dbc
%endif
679dbc
BuildRequires:  python3-devel
679dbc
BuildRequires:  python3-setuptools
679dbc
BuildRequires:  python3-pbr
679dbc
BuildRequires:  python3-mock
679dbc
BuildRequires:  python3-testrepository
679dbc
#BuildRequires:  python3-discover
679dbc
#BuildRequires:  python3-oslotest
679dbc
679dbc
%description
679dbc
%{common_desc}
679dbc
679dbc
%package -n python3-stevedore
679dbc
Summary:        Manage dynamic plugins for Python applications
679dbc
Group:          Development/Libraries
679dbc
%{?python_provide:%python_provide python3-stevedore}
679dbc
679dbc
Requires:       python3-pbr >= 2.0.0
679dbc
%if (0%{?fedora} && 0%{?fedora} < 32) || (0%{?rhel} && 0%{?rhel} < 9)
679dbc
Requires:       python3-importlib-metadata >= 1.7.0
679dbc
%endif
679dbc
679dbc
679dbc
%description -n python3-stevedore
679dbc
%{common_desc}
679dbc
679dbc
%prep
679dbc
# Required for tarball sources verification
679dbc
%if 0%{?sources_gpg} == 1
679dbc
%{gpgverify}  --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
679dbc
%endif
679dbc
%setup -q -n stevedore-%{upstream_version}
679dbc
679dbc
# let RPM handle deps
679dbc
rm -f requirements.txt
679dbc
679dbc
%build
679dbc
%{py3_build}
679dbc
679dbc
%install
679dbc
%{py3_install}
679dbc
679dbc
%check
679dbc
#TODO: reenable when commented test requirements above are available
679dbc
#
679dbc
#PYTHONPATH=. nosetests
679dbc
#
679dbc
#%if 0%{?with_python3}
679dbc
#pushd %{py3dir}
679dbc
#PYTHONPATH=. nosetests-%{python3_version}
679dbc
#popd
679dbc
#%endif
679dbc
679dbc
%files -n python3-stevedore
679dbc
%license LICENSE
679dbc
%doc README.rst
679dbc
%{python3_sitelib}/stevedore
679dbc
%{python3_sitelib}/stevedore-*.egg-info
679dbc
679dbc
%changelog
679dbc
* Wed Mar 17 2021 Joel Capitao <jcapitao@redhat.com> 3.3.0-2
679dbc
- Drop importlib_metadata as requirement
679dbc
679dbc
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 3.3.0-1
679dbc
- Update to upstream version 3.3.0
679dbc
679dbc
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.2-4
679dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
679dbc
679dbc
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 3.2.2-3
679dbc
- Remove importlib_metadata as requirement
679dbc
679dbc
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 3.2.2-2
679dbc
- Update to upstream version 3.2.2
679dbc
679dbc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.32.0-2
679dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
679dbc
679dbc
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 1.32.0-1
679dbc
- Update to upstream version 1.32.0
679dbc
679dbc
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.31.0-4
679dbc
- Rebuilt for Python 3.9
679dbc
679dbc
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.31.0-3
679dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
679dbc
679dbc
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.31.0-2
679dbc
- Update to upstream version 1.31.0
679dbc
679dbc
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.30.1-4
679dbc
- Rebuilt for Python 3.8.0rc1 (#1748018)
679dbc
679dbc
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.30.1-3
679dbc
- Rebuilt for Python 3.8
679dbc
679dbc
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.30.1-2
679dbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
679dbc
679dbc
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 1.30.1-1
679dbc
- Update to 1.30.1
679dbc