commit 274a71f6c305332990518effc452e74798347971 Author: tigro Date: Sun Jan 5 14:03:55 2025 +0300 import python-yarl-1.9.4-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4f9cab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/yarl-1.9.4.tar.gz diff --git a/.python-yarl.metadata b/.python-yarl.metadata new file mode 100644 index 0000000..97a93e4 --- /dev/null +++ b/.python-yarl.metadata @@ -0,0 +1 @@ +29d312819bdb96b44070d9027ccf3a85bb3bb870 SOURCES/yarl-1.9.4.tar.gz diff --git a/SOURCES/allow_tmp_dir_in_src_dir.patch b/SOURCES/allow_tmp_dir_in_src_dir.patch new file mode 100644 index 0000000..e872353 --- /dev/null +++ b/SOURCES/allow_tmp_dir_in_src_dir.patch @@ -0,0 +1,22 @@ +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 9a28ace..20f3326 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -199,7 +199,16 @@ def _in_temporary_directory(src_dir: Path) -> t.Iterator[None]: + with TemporaryDirectory(prefix='.tmp-yarl-pep517-') as tmp_dir: + with chdir_cm(tmp_dir): + tmp_src_dir = Path(tmp_dir) / 'src' +- copytree(src_dir, tmp_src_dir, symlinks=True) ++ def _ignore(d, _): ++ """ ++ Prevent temporary directory to be copied into self ++ recursively forever. ++ Fixes https://github.com/aio-libs/yarl/issues/992 ++ """ ++ if Path(d) == tmp_src_dir.parent: ++ return [tmp_src_dir.name] ++ return [] ++ copytree(src_dir, tmp_src_dir, symlinks=True, ignore=_ignore) + os.chdir(tmp_src_dir) + yield + diff --git a/SPECS/python-yarl.spec b/SPECS/python-yarl.spec new file mode 100644 index 0000000..bbaa3d1 --- /dev/null +++ b/SPECS/python-yarl.spec @@ -0,0 +1,293 @@ +%global debug_package %{nil} +%global pypi_name yarl + +Name: python-%{pypi_name} +Version: 1.9.4 +Release: 2%{?dist} +Summary: Python module to handle URLs + +License: ASL 2.0 +URL: https://yarl.readthedocs.io +Source0: https://github.com/aio-libs/yarl/archive/v%{version}/%{pypi_name}-%{version}.tar.gz +# https://github.com/aio-libs/yarl/issues/992 +Patch: allow_tmp_dir_in_src_dir.patch + +BuildRequires: gcc +BuildRequires: python3-devel +BuildRequires: python3dist(cython) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-xdist) + +%description +The module provides handy URL class for URL parsing and changing. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +The module provides handy URL class for URL parsing and changing. + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 +# Disable coverage +sed -r -e 's/(-.*cov.*$)/#\1/g' -i pytest.ini + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files -l %{pypi_name} + +%check +%pytest -v --ignore tests/test_quoting.py -k 'not test_no_host' tests + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc CHANGES.rst README.rst + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.9.4-2 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.9.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Sandro - 1.9.4-1 +- Update to 1.9.4 (RHBZ#2251098) + +* Fri Jun 07 2024 Python Maint - 1.9.2-6 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.9.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.9.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 1.9.2-2 +- Rebuilt for Python 3.12 + +* Mon May 15 2023 Tomáš Hrnčiar - 1.9.2-1 +- Update to 1.9.2 +- Fixes: rhbz#2161299 +- Fixes: rhbz#2188511 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.8.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Dec 04 2022 Fabian Affolter - 1.8.2-1 +- Update to latest upstream release 1.8.2 (closes rhbz#2150499) + +* Fri Aug 19 2022 Fabian Affolter - 1.8.1-1 +- Update to latest upstream release 1.8.1 (closes rhbz#2112722) + +* Fri Jul 22 2022 Fedora Release Engineering - 1.8.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.8.0-2 +- Rebuilt for Python 3.11 + +* Wed Feb 23 2022 Fabian Affolter - 1.8.0-1 +- Update to latest upstream release 1.8.0 (closes rhbz#2054415) + +* Thu Jan 27 2022 Carl George - 1.7.2-3 +- Remove unnecessary buildrequirements + +* Fri Jan 21 2022 Fedora Release Engineering - 1.7.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Nov 25 2021 Fabian Affolter - 1.7.2-1 +- Update to latest upstream release 1.7.2 (closes rhbz#2019303) + +* Wed Oct 13 2021 Fabian Affolter - 1.7.0-1 +- Update to latest upstream release 1.7.0 (closes rhbz#2010811) + +* Fri Jul 23 2021 Fedora Release Engineering - 1.6.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.6.3-4 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.6.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jan 25 2021 Miro Hrončok - 1.6.3-2 +- Build the extension module and install it +- Run the tests +- Fixes: rhbz#1919977 + +* Tue Nov 17 2020 Fabian Affolter - 1.6.3-1 +- Tests are disaabled for now (approx. 10 % failures) +- Update to latest upstream release 1.6.3 (#1887712) + +* Tue Oct 13 2020 Fabian Affolter - 1.6.2-1 +- Update to latest upstream release 1.6.2 (#1887712) + +* Thu Sep 24 2020 Fabian Affolter - 1.6.0-1 +- Update to latest upstream release 1.6.0 (#1882235) + +* Sun Aug 09 2020 Fabian Affolter - 1.5.1-1 +- Update to latest upstream release 1.5.1 (#1860699) + +* Thu Aug 06 2020 Fabian Affolter - 1.5.0-1 +- Update to latest upstream release 1.5.0 (#1860699) + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 1.4.2-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Dec 08 2019 Fabian Affolter - 1.4.2-1 +- Update to latest upstream release 1.4.2 (#1758088) + +* Thu Dec 05 2019 Fabian Affolter - 1.4.1-1 +- Update to latest upstream release 1.4.1 (#1758088) + +* Mon Dec 02 2019 Fabian Affolter - 1.4.0-1 +- Update to latest upstream release 1.4.0 + +* Thu Oct 03 2019 Miro Hrončok - 1.3.0-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 1.3.0-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 01 2019 Fabian Affolter - 1.3.0-3 +- Remove dep generator + +* Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 10 2019 Fabian Affolter - 1.3.0-1 +- Update to latest upstream release 1.3.0 + +* Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 +- Rebuilt for Python 3.7 + +* Thu Jun 14 2018 Fabian Affolter - 1.2.6-1 +- Update to latest upstream release 1.2.6 (#1588495) + +* Thu May 24 2018 Fabian Affolter - 1.2.5-1 +- Update to latest upstream release 1.2.5 (#1582015) + +* Tue May 08 2018 Fabian Affolter - 1.2.4-1 +- Update to latest upstream release 1.2.4 (#1575970) + +* Mon May 07 2018 Fabian Affolter - 1.2.3-1 +- Update to latest upstream release 1.2.3 (#1574065) + +* Sat May 05 2018 Fabian Affolter - 1.2.2-1 +- Update to latest upstream release 1.2.2 (#1574065) + +* Fri May 04 2018 Fabian Affolter - 1.2.1-1 +- Update to latest upstream release 1.2.1 (#1574065) + +* Mon Feb 19 2018 Fabian Affolter - 1.1.1-1 +- Update to latest upstream release 1.1.1 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Jan 21 2018 Igor Gnatenko - 1.1.0-1 +- Update to 1.1.0 + +* Fri Jan 19 2018 Igor Gnatenko - 1.0.0-2 +- Enable usage of dependency generator + +* Mon Jan 15 2018 Fabian Affolter - 1.0.0-1 +- Update to latest upstream release 1.0.0 + +* Thu Jan 11 2018 Fabian Affolter - 0.18.0-1 +- Update to latest upstream release 0.18.0 + +* Sun Dec 31 2017 Fabian Affolter - 0.17.0-1 +- Update to latest upstream release 0.17.0 (#1523436) + +* Fri Dec 08 2017 Fabian Affolter - 0.16.0-1 +- Update to latest upstream release 0.16.0 (#1523436) + +* Fri Nov 24 2017 Fabian Affolter - 0.15.0-1 +- Update to latest upstream release 0.15.0 + +* Tue Nov 14 2017 Fabian Affolter - 0.14.2-1 +- Update to latest upstream release 0.14.2 + +* Tue Nov 14 2017 Fabian Affolter - 0.14.1-1 +- Update to latest upstream release 0.14.1 + +* Sat Nov 11 2017 Fabian Affolter - 0.14.0-1 +- Update to latest upstream release 0.14.0 (#1512195) + +* Sun Oct 01 2017 Igor Gnatenko - 0.13.0-2 +- Fixes and cleanups in spec file + +* Sun Oct 01 2017 Fabian Affolter - 0.13.0-1 +- Update to latest upstream release 0.13.0 (#1497531) + +* Thu Aug 03 2017 Fedora Release Engineering - 0.12.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Jul 15 2017 Fabian Affolter - 0.12.0-1 +- Update to latest upstream release 0.12.0 (#1471102) + +* Wed Jun 28 2017 Fabian Affolter - 0.11.0-1 +- Update to latest upstream release 0.11.0 (#1465202) + +* Wed Jun 14 2017 Igor Gnatenko - 0.10.3-1 +- Update to 0.10.3 (#1461225) + +* Tue May 09 2017 Igor Gnatenko - 0.10.2-1 +- Update to 0.10.2 + +* Wed Mar 15 2017 Fabian Affolter - 0.10.0-1 +- Update to latest upstream release 0.10.0 (#1432279) + +* Mon Feb 20 2017 Fabian Affolter - 0.9.8-1 +- Update to latest upstream release 0.9.8 (#1423061) + +* Thu Feb 16 2017 Igor Gnatenko - 0.9.6-1 +- Update to 0.9.6 + +* Thu Feb 09 2017 Igor Gnatenko - 0.9.2-1 +- Update to 0.9.2 + +* Wed Feb 08 2017 Igor Gnatenko - 0.9.1-1 +- Update to 0.9.1 + +* Tue Feb 07 2017 Igor Gnatenko - 0.8.1-4 +- Fix BRs + +* Tue Feb 07 2017 Fabian Affolter - 0.8.1-3 +- Update BR + +* Fri Jan 27 2017 Fabian Affolter - 0.8.1-2 +- Don't remove _quoting.c + +* Sat Jan 21 2017 Fabian Affolter - 0.8.1-1 +- Update to latest upstream release 0.8.1 +- Remove _quoting.c + +* Mon Nov 21 2016 Fabian Affolter - 0.7.1-2 +- Update Source0, summary + +* Fri Nov 18 2016 Fabian Affolter - 0.7.1-1 +- Initial package