Blame SPECS/python-txaio.spec

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