Blame SPECS/python-txaio.spec

rdobuilder aa9e2f
%global pypi_name txaio
rdobuilder aa9e2f
rdobuilder aa9e2f
Name:           python-%{pypi_name}
rdobuilder aa9e2f
Version:        23.1.1
rdobuilder aa9e2f
Release:        2%{?dist}
rdobuilder aa9e2f
Summary:        Compatibility API between asyncio/Twisted/Trollius
rdobuilder aa9e2f
rdobuilder aa9e2f
License:        MIT
rdobuilder aa9e2f
URL:            https://txaio.readthedocs.io/
rdobuilder aa9e2f
Source0:        https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz
rdobuilder aa9e2f
# The test_utils module can no longer be imported from asyncio
rdobuilder aa9e2f
# and is undocumented intentionaly because it's private.
rdobuilder aa9e2f
# This is a hack that calls stop on the loop soon after calling run_forever().
rdobuilder aa9e2f
Patch2:         run_once.patch
rdobuilder aa9e2f
BuildArch:      noarch
rdobuilder aa9e2f
rdobuilder aa9e2f
%description
rdobuilder aa9e2f
Helper library for writing code that runs unmodified on both Twisted and
rdobuilder aa9e2f
asyncio.
rdobuilder aa9e2f
rdobuilder aa9e2f
%package -n     python3-%{pypi_name}
rdobuilder aa9e2f
Summary:        %{summary}
rdobuilder aa9e2f
BuildArch:      noarch
rdobuilder aa9e2f
BuildRequires:  python3-devel
rdobuilder aa9e2f
BuildRequires:  python3-setuptools
rdobuilder aa9e2f
BuildRequires:  python3-pytest
rdobuilder aa9e2f
BuildRequires:  python3-pytest-cov
rdobuilder aa9e2f
BuildRequires:  python3-six
rdobuilder aa9e2f
BuildRequires:  python3-test
rdobuilder aa9e2f
BuildRequires:  python3-enchant >= 1.6.6
rdobuilder aa9e2f
Requires:       python3-six
rdobuilder aa9e2f
%{?python_provide:%python_provide python3-%{pypi_name}}
rdobuilder aa9e2f
rdobuilder aa9e2f
%description -n python3-%{pypi_name}
rdobuilder aa9e2f
Helper library for writing code that runs unmodified on both Twisted and
rdobuilder aa9e2f
asyncio.
rdobuilder aa9e2f
rdobuilder aa9e2f
%package doc
rdobuilder aa9e2f
Summary:        Documentation for txaio
rdobuilder aa9e2f
rdobuilder aa9e2f
BuildRequires:  make
rdobuilder aa9e2f
BuildRequires:  python3-sphinx
rdobuilder aa9e2f
BuildRequires:  python3-sphinx_rtd_theme
rdobuilder aa9e2f
Requires:       js-jquery
rdobuilder aa9e2f
rdobuilder aa9e2f
%description doc
rdobuilder aa9e2f
Helper library for writing code that runs unmodified on both Twisted and
rdobuilder aa9e2f
asyncio. Documentation in html format.
rdobuilder aa9e2f
rdobuilder aa9e2f
%prep
rdobuilder aa9e2f
%setup -qn %{pypi_name}-%{version}
rdobuilder aa9e2f
%patch2 -p1
rdobuilder aa9e2f
# Remove upstream's egg-info
rdobuilder aa9e2f
rm -rf %{pypi_name}.egg-info
rdobuilder aa9e2f
# README is just a symlink to index.rst. Using this file as README
rdobuilder aa9e2f
rm docs/index.rst
rdobuilder aa9e2f
cp -a README.rst docs/index.rst
rdobuilder aa9e2f
rdobuilder aa9e2f
%build
rdobuilder aa9e2f
%py3_build
rdobuilder aa9e2f
# Build documentation
rdobuilder aa9e2f
cd docs && make html
rdobuilder aa9e2f
# Remove buildinfo
rdobuilder aa9e2f
rm -rf _build/html/.buildinfo
rdobuilder aa9e2f
# Unbundle jquery
rdobuilder aa9e2f
rm -f  _build/html/_static/jquery.js
rdobuilder aa9e2f
ln -s /usr/share/javascript/jquery/latest/jquery.min.js _build/html/_static/jquery.js
rdobuilder aa9e2f
rdobuilder aa9e2f
%install
rdobuilder aa9e2f
%py3_install
rdobuilder aa9e2f
rdobuilder aa9e2f
%check
rdobuilder aa9e2f
%pytest -v test
rdobuilder aa9e2f
rdobuilder aa9e2f
%files -n python3-%{pypi_name}
rdobuilder aa9e2f
%license LICENSE
rdobuilder aa9e2f
%doc README.rst
rdobuilder aa9e2f
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
rdobuilder aa9e2f
%{python3_sitelib}/%{pypi_name}/
rdobuilder aa9e2f
rdobuilder aa9e2f
%files doc
rdobuilder aa9e2f
%license LICENSE
rdobuilder aa9e2f
%doc docs/_build/html
rdobuilder aa9e2f
rdobuilder aa9e2f
%changelog
rdobuilder aa9e2f
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 23.1.1-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Jan 17 2023 Julien Enselme <jujens@jujens.eu> - 23.1.1-1
rdobuilder aa9e2f
- Update to 23.1.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Jan 10 2023 Julien Enselme <jujens@jujens.eu> - 22.2.1-4
rdobuilder aa9e2f
- Remove build dep on python3-mock:
rdobuilder aa9e2f
  not needed causes issues when building for EPEL9.
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 22.2.1-3
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 22.2.1-2
rdobuilder aa9e2f
- Rebuilt for Python 3.11
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Mar 04 2022 Fabian Affolter <mail@fabian-affolter.ch> - 22.2.1-1
rdobuilder aa9e2f
- Update to latest upstream release 22.2.1 (closes rhbz#2057646)
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 21.2.1-4
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 21.2.1-3
rdobuilder aa9e2f
- Second attempt - Rebuilt for
rdobuilder aa9e2f
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 21.2.1-2
rdobuilder aa9e2f
- Rebuilt for Python 3.10
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Feb 01 2021 Fabian Affolter <mail@fabian-affolter.ch> - 21.2.1-1
rdobuilder aa9e2f
- Update to latest upstream release 21.2.1 (#1909406)
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.12.1-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Dec 22 2020 Fabian Affolter <mail@fabian-affolter.ch> - 20.12.1-1
rdobuilder aa9e2f
- Update to latest upstream release 20.12.1 (#1909406)
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20.4.1-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Jul 18 2020 Julien Enselme <jujens@jujens.eu> - 20.4.1-1
rdobuilder aa9e2f
- Update to 20.4.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-9
rdobuilder aa9e2f
- Rebuilt for Python 3.9
rdobuilder aa9e2f
rdobuilder aa9e2f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.1-8
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Oct 12 2019 Orion Poplawski <orion@nwra.com> - 18.8.1-7
rdobuilder aa9e2f
- Drop BR on python3-pep8
rdobuilder aa9e2f
- Use EL8 compatible coverage execution
rdobuilder aa9e2f
- Add BR python3-test for EL8 compatibility
rdobuilder aa9e2f
rdobuilder aa9e2f
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-6
rdobuilder aa9e2f
- Rebuilt for Python 3.8.0rc1 (#1748018)
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 18.8.1-5
rdobuilder aa9e2f
- Rebuilt for Python 3.8
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.8.1-4
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 18.8.1-3
rdobuilder aa9e2f
- Fix tests after pytest update.
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Mar 23 2019 Julien Enselme <jujens@jujens.eu> - 18.8.1-2
rdobuilder aa9e2f
- Remove Python 2 subpackage.
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Feb 20 2019 Yatin Karel <ykarel@redhat.com> - 18.8.1-1
rdobuilder aa9e2f
- Update to 18.8.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 18.7.1-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Aug 01 2018 Julien Enselme <jujens@jujens.eu> - 18.7.1-1
rdobuilder aa9e2f
- Update to 18.7.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Aug 01 2018 Marcel Plch <mplch@redhat.com> - 2.10.0-5
rdobuilder aa9e2f
- Patch for Python 3.7
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.0-4
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.0-3
rdobuilder aa9e2f
- Rebuilt for Python 3.7
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue May 08 2018 Miro Hrončok <mhroncok@redhat.com> - 2.10.0-2
rdobuilder aa9e2f
- Remove unused build dependency on tox
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sun Apr 15 2018 Julien Enselme <jujens@jujens.eu> - 2.10.0-1
rdobuilder aa9e2f
- Update to 2.10.0
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Mar 06 2018 Julien Enselme <jujens@jujens.eu> - 2.9.0-1
rdobuilder aa9e2f
- Update to 2.9.0
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-3
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.8.2-2
rdobuilder aa9e2f
- Update Python 2 dependency declarations to new packaging standards
rdobuilder aa9e2f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Sep 06 2017 Julien Enselme <jujens@jujens.eu> - 2.8.2-1
rdobuilder aa9e2f
- Update to 2.8.2
rdobuilder aa9e2f
rdobuilder aa9e2f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.1-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sun Jul 23 2017 Julien Enselme <jujens@jujens.eu> - 2.8.1-1
rdobuilder aa9e2f
- Update to 2.8.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Jun 10 2017 Julien Enselme <jujens@jujens.eu> - 2.8.0-1
rdobuilder aa9e2f
- Update to 2.8.0
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sun May 07 2017 Julien Enselme <jujens@jujens.eu> - 2.7.1-1
rdobuilder aa9e2f
- Update to 2.7.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Apr 18 2017 Julien Enselme <jujens@jujens.eu> - 2.7.0-1
rdobuilder aa9e2f
- Update to 2.7.0
rdobuilder aa9e2f
rdobuilder aa9e2f
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 2.6.2-1
rdobuilder aa9e2f
- Update to 2.6.2
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-2
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Dec 26 2016 Julien Enselme <jujens@jujens.eu> - 2.5.2-1
rdobuilder aa9e2f
- Update to 2.5.2
rdobuilder aa9e2f
- Skip failing tests on Python 3.6
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.5.1-3
rdobuilder aa9e2f
- Rebuild for Python 3.6
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Oct 01 2016 Julien Enselme <jujens@jujens.eu> - 2.5.1-2
rdobuilder aa9e2f
- Fix tests for pytest3
rdobuilder aa9e2f
- Correct build of documentation with sphinx 1.4.8
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1-2
rdobuilder aa9e2f
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon May 16 2016 Julien Enselme <jujens@jujens.eu> - 2.5.1-1
rdobuilder aa9e2f
- Update to 2.5.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Feb 27 2016 Julien Enselme <jujens@jujens.eu> - 2.2.1-1
rdobuilder aa9e2f
- Update to 2.2.1
rdobuilder aa9e2f
rdobuilder aa9e2f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
rdobuilder aa9e2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Nov 6 2015 Julien Enselme <jujens@jujens.eu> - 2.0.4-2
rdobuilder aa9e2f
- Rebuilt for python 3.5
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Oct 17 2015 Julien Enselme <jujens@jujens.eu> - 2.0.4-1
rdobuilder aa9e2f
- Update 2.0.4
rdobuilder aa9e2f
rdobuilder aa9e2f
* Mon Sep 28 2015 Julien Enselme <jujens@jujens.eu> - 2.0.2-1
rdobuilder aa9e2f
- Update to 2.0.2
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Aug 15 2015 Julien Enselme <jujens@jujens.eu> - 1.0.3-2
rdobuilder aa9e2f
- Move python2 package in its own subpackage
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Aug 15 2015 Julien Enselme <jujens@jujens.eu> - 1.0.3-1
rdobuilder aa9e2f
- Update to 1.0.3
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Aug 8 2015 Julien Enselme <jujens@jujens.eu> - 1.0.2-1
rdobuilder aa9e2f
- Update to 1.0.2
rdobuilder aa9e2f
- Use %%py2_build, %%py3_build, %%py2_install and %%py2_install
rdobuilder aa9e2f
rdobuilder aa9e2f
* Tue Aug 4 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-4
rdobuilder aa9e2f
- Correct sphinx theme name in BuildRequires
rdobuilder aa9e2f
rdobuilder aa9e2f
* Thu Jul 30 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-3
rdobuilder aa9e2f
- Add provides for python2-txaio
rdobuilder aa9e2f
- Remove usage of python2 and python3 dirs
rdobuilder aa9e2f
- Unbundle jquery
rdobuilder aa9e2f
- Don't remove _sources of documentation
rdobuilder aa9e2f
rdobuilder aa9e2f
* Fri Jul 24 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-2
rdobuilder aa9e2f
- Remove %%py3dir macro
rdobuilder aa9e2f
- Add CFLAGS in %%build
rdobuilder aa9e2f
rdobuilder aa9e2f
* Sat Jul 18 2015 Julien Enselme <jujens@jujens.eu> - 1.0.0-1
rdobuilder aa9e2f
- Initial packaging