Blame SPECS/python-kazoo.spec

fbac1d
# Created by pyp2rpm-1.0.1
fbac1d
%global pypi_name kazoo
fbac1d
fbac1d
Name:           python-%{pypi_name}
fbac1d
Version:        2.8.0
fbac1d
Release:        2%{?dist}
fbac1d
Summary:        Higher level Python Zookeeper client
fbac1d
fbac1d
License:        ASL 2.0
fbac1d
URL:            https://kazoo.readthedocs.org
fbac1d
Source0:        https://pypi.python.org/packages/source/k/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
fbac1d
BuildArch:      noarch
fbac1d
fbac1d
%global _description\
fbac1d
Kazoo is a Python library designed to make working with Zookeeper a more\
fbac1d
hassle-free experience that is less prone to errors.
fbac1d
fbac1d
%description %_description
fbac1d
fbac1d
%package -n python3-%{pypi_name}
fbac1d
Summary:        Higher level Python Zookeeper client
fbac1d
BuildRequires:  python3-devel
fbac1d
BuildRequires:  python3-setuptools
fbac1d
# For building documentation
fbac1d
BuildRequires:  python3-sphinx
fbac1d
Requires:       python3-six
fbac1d
fbac1d
%description -n python3-%{pypi_name}
fbac1d
Kazoo is a Python library designed to make working with Zookeeper a more
fbac1d
hassle-free experience that is less prone to errors.
fbac1d
fbac1d
%package doc
fbac1d
Summary:    Documentation for %{name}
fbac1d
License:    ASL 2.0
fbac1d
fbac1d
%description doc
fbac1d
Kazoo is a Python library designed to make working with Zookeeper a more
fbac1d
hassle-free experience that is less prone to errors.
fbac1d
fbac1d
This package contains documentation in HTML format.
fbac1d
fbac1d
%prep
fbac1d
%setup -q -n %{pypi_name}-%{version}
fbac1d
# Remove bundled egg-info
fbac1d
rm -rf %{pypi_name}.egg-info
fbac1d
fbac1d
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
fbac1d
fbac1d
# generate html docs
fbac1d
sphinx-build docs html
fbac1d
# remove the sphinx-build leftovers
fbac1d
rm -rf html/.{doctrees,buildinfo}
fbac1d
fbac1d
fbac1d
%build
fbac1d
%py3_build
fbac1d
fbac1d
fbac1d
%install
fbac1d
%py3_install
fbac1d
fbac1d
#delete tests
fbac1d
rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/
fbac1d
fbac1d
%files -n python3-%{pypi_name}
fbac1d
%doc README.md LICENSE
fbac1d
%{python3_sitelib}/%{pypi_name}
fbac1d
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
fbac1d
fbac1d
%files doc
fbac1d
%doc html
fbac1d
fbac1d
fbac1d
%changelog
fbac1d
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-2
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
fbac1d
fbac1d
* Tue Aug 04 2020 Fabien Boucher <fboucher@redhat.com> - 2.8.0-1
fbac1d
- Update to 2.8.0 (#1856000)
fbac1d
fbac1d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-3
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
fbac1d
fbac1d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-2
fbac1d
- Rebuilt for Python 3.9
fbac1d
fbac1d
* Mon Apr 27 2020 Javier Peña <jpena@redhat.com> - 2.7.0-1
fbac1d
- Update to version 2.7.0
fbac1d
fbac1d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-8
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fbac1d
fbac1d
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-7
fbac1d
- Rebuilt for Python 3.8.0rc1 (#1748018)
fbac1d
fbac1d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-6
fbac1d
- Rebuilt for Python 3.8
fbac1d
fbac1d
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fbac1d
fbac1d
* Thu May 09 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-4
fbac1d
- Subpackage python2-kazoo has been removed
fbac1d
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
fbac1d
fbac1d
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fbac1d
fbac1d
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-2
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fbac1d
fbac1d
* Fri Jun 29 2018 Alan Pevec <alan.pevec@redhat.com> 2.5.0-1
fbac1d
- Update to 2.5.0
fbac1d
fbac1d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-9
fbac1d
- Rebuilt for Python 3.7
fbac1d
fbac1d
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.1-8
fbac1d
- Update Python 2 dependency declarations to new packaging standards
fbac1d
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
fbac1d
fbac1d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-7
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fbac1d
fbac1d
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.1-6
fbac1d
- Python 2 binary package renamed to python2-kazoo
fbac1d
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
fbac1d
fbac1d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-5
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fbac1d
fbac1d
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-4
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fbac1d
fbac1d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.2.1-3
fbac1d
- Rebuild for Python 3.6
fbac1d
fbac1d
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-2
fbac1d
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fbac1d
fbac1d
* Thu Feb 11 2016 Alan Pevec <alan.pevec@redhat.com> - 2.2.1-1
fbac1d
- Update to 2.2.1
fbac1d
fbac1d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-5
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fbac1d
fbac1d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
fbac1d
fbac1d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-3
fbac1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fbac1d
fbac1d
* Tue Aug 26 2014 Nejc Saje <nsaje@redhat.com> - 2.0-2
fbac1d
- Remove documentation's dependency on the base package.
fbac1d
fbac1d
* Thu Jul 31 2014 Nejc Saje <nsaje@redhat.com> - 2.0-1
fbac1d
- Initial package.
fbac1d