diff --git a/copr-matrix-synapse b/copr-matrix-synapse index 230b63a..41c3d76 160000 --- a/copr-matrix-synapse +++ b/copr-matrix-synapse @@ -1 +1 @@ -Subproject commit 230b63ad0a6d14ce2d99171069269bc21d7f73b3 +Subproject commit 41c3d76b55ef80e9a202db52c81c40bd7b7d88a7 diff --git a/python-treq/python-treq.spec b/python-treq/python-treq.spec new file mode 100644 index 0000000..381d4d3 --- /dev/null +++ b/python-treq/python-treq.spec @@ -0,0 +1,130 @@ +%global pypi_name treq + + +%global with_doc 1 + +Name: python-%{pypi_name} +Version: 21.1.0 +Release: 5%{?dist} +Summary: A requests-like API built on top of twisted.web's Agent + +License: MIT +URL: https://github.com/twisted/treq +Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%if 0%{?with_doc} +BuildRequires: python3-twisted +BuildRequires: python3-sphinx +%endif + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-incremental + +%description +treq is an HTTP library inspired by requests but written on top of +Twisted’s Agents. +It provides a simple, higher level API for making HTTP requests +when using Twisted. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-incremental +Requires: python3-requests >= 2.1.0 +Requires: python3-six +Requires: python3-twisted >= 16.3.0 +Requires: python3-attrs +%description -n python3-%{pypi_name} +treq is an HTTP library inspired by requests but written on top of +Twisted’s Agents. +It provides a simple, higher level API for making HTTP requests +when using Twisted. + +%if 0%{?with_doc} +%package -n python-%{pypi_name}-doc +Summary: treq documentation +%description -n python-%{pypi_name}-doc +Documentation for treq +%endif + +%prep +%autosetup -n %{pypi_name}-%{version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build +%if 0%{?with_doc} +# generate html docs +export PYTHONPATH=%{python2_sitelib}:%{python3_sitelib}:src +sphinx-build docs html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} +%endif + +%install +%py3_install + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + +%if 0%{?with_doc} +%files -n python-%{pypi_name}-doc +%license LICENSE +%doc html +%endif + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 18.6.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 18.6.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 18.6.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 18.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Nov 19 2019 Orion Poplawski - 18.6.0-1 +- Update to 18.6.0 + +* Thu Oct 03 2019 Miro Hrončok - 17.8.0-10 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 17.8.0-9 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 17.8.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 17.8.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek - 17.8.0-6 +- Python2 binary package has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 17.8.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 17.8.0-4 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 17.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 30 2017 Yatin Karel - 17.8.0-2 +- Enabled Doc build, Fix BR Issues and some nit picks + +* Fri Aug 11 2017 ykarel - 17.8.0-1 +- Initial package.