diff --git a/.python-yaql.metadata b/.python-yaql.metadata new file mode 100644 index 0000000..801566c --- /dev/null +++ b/.python-yaql.metadata @@ -0,0 +1 @@ +82aad8745409b5f41e15c08b63dd58666b175f1a SOURCES/yaql-3.0.0.tar.gz diff --git a/SOURCES/0001-Uncap-hacking.patch b/SOURCES/0001-Uncap-hacking.patch new file mode 100644 index 0000000..f3a9b34 --- /dev/null +++ b/SOURCES/0001-Uncap-hacking.patch @@ -0,0 +1,22 @@ +From 021adb8534b6265da9809be96ad13460b5c64d49 Mon Sep 17 00:00:00 2001 +From: Joel Capitao +Date: Fri, 25 Oct 2024 09:02:43 +0200 +Subject: [PATCH] Uncap hacking + +--- + test-requirements.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test-requirements.txt b/test-requirements.txt +index fdc78c8..3bc3236 100644 +--- a/test-requirements.txt ++++ b/test-requirements.txt +@@ -1,4 +1,4 @@ +-hacking>=6.1.0,<6.2.0 # Apache-2.0 ++hacking>=6.1.0 # Apache-2.0 + + coverage>=3.6 + fixtures>=1.3.1 +-- +2.46.1 + diff --git a/SPECS/python-yaql.spec b/SPECS/python-yaql.spec new file mode 100644 index 0000000..ff977f4 --- /dev/null +++ b/SPECS/python-yaql.spec @@ -0,0 +1,236 @@ +%global pypi_name yaql + +# Disable docs building as it doesn't support recent sphinx +%global with_docs 0 + +Name: python-%{pypi_name} +Version: 3.0.0 +Release: 1%{?dist} +Summary: Yet Another Query Language + +# Automatically converted from old format: ASL 2.0 - review is highly recommended. +License: Apache-2.0 +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: %pypi_source +Patch0001: 0001-Uncap-hacking.patch + +BuildArch: noarch + +%description +YAQL library has a out of the box large set of commonly used functions. + +%package -n python3-%{pypi_name} +Summary: YAQL library has a out of the box large set of commonly used functions. + +%description -n python3-%{pypi_name} +YAQL library has a out of the box large set of commonly used functions. + +%if 0%{?with_docs} +# Documentation package +%package -n python-%{pypi_name}-doc +Summary: Documentation for YAQL library + +%description -n python-%{pypi_name}-doc +Documentation for YAQL library +%endif + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + +sed -i '/sphinx-build/ s/-W//' tox.ini + +%generate_buildrequires +%if 0%{?with_doc} + %pyproject_buildrequires -t -e %{default_toxenv},docs +%else + %pyproject_buildrequires -t -e %{default_toxenv} +%endif + +%build +%pyproject_wheel + +%if 0%{?with_docs} +# generate html docs +%tox -e docs +# remove the sphinx-build leftovers +rm -rf doc/build/html/.{doctrees,buildinfo} +%endif + +%install +%pyproject_install +%pyproject_save_files -l %{pypi_name} +mv %{buildroot}/%{_bindir}/%{pypi_name} %{buildroot}/%{_bindir}/python3-%{pypi_name} + +pushd %{buildroot}%{_bindir} +for i in %{pypi_name}-{3,%{?python3_version}}; do + ln -sf python3-%{pypi_name} $i + ln -sf python3-%{pypi_name} %{pypi_name} +done +popd + +%check +%tox + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc doc/source/readme.rst README.rst +%{_bindir}/python3-%{pypi_name} +%{_bindir}/%{pypi_name}-3* +%{_bindir}/%{pypi_name} + +%if 0%{?with_docs} +%files -n python-%{pypi_name}-doc +%doc doc/build/html +%license LICENSE +%endif + +%changelog +* Fri Oct 25 2024 Joel Capitao - 3.0.0-1 +- update to 3.0.0 +- convert to %pyproject macros +- convert to %autorelease and %autochangelog +- use %tox macro for test and doc generation +- download sources from PyPI + +* Wed Aug 02 2023 Alfredo Moralejo - 2.0.0-3 +- Remove 2to3 conversion. Not needed and it is changing code silently + +* Wed Jul 24 2024 Miroslav Suchý - 2.0.0-15 +- convert license to SPDX + +* Fri Jul 19 2024 Fedora Release Engineering - 2.0.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 2.0.0-13 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Nov 15 2023 Joel Capitao - 2.0.0-10 +- Remove oslo-sphinx BR + +* Mon Oct 23 2023 Alfredo Moralejo - 2.0.0-9 +- Remove 2to3 usage while building the package + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jun 14 2023 Python Maint - 2.0.0-7 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 15 2022 Python Maint - 2.0.0-4 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Oct 12 2021 Joel Capitao - 2.0.0-2 +- Replace remaining asserItemsEqual with asserCountEqual + +* Mon Jul 26 2021 Joel Capitao - 2.0.0-1 +- Update to latest release (#1981310) + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.3-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 16 2021 Joel Capitao - 1.1.3-18 +- Switch to collections.abc +- Replace asserItemsEqual with asserCountEqual +- Enable tests + +* Fri Jun 04 2021 Python Maint - 1.1.3-17 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.3-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Aug 28 2020 Alfredo Moralejo - 1.1.3-15 +- Remove references to python2 subpackage. + +* Sat Aug 01 2020 Fedora Release Engineering - 1.1.3-14 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.1.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.1.3-12 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 1.1.3-10 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.1.3-9 +- Rebuilt for Python 3.8 + +* Mon Jul 29 2019 Alfredo Moralejo - 1.1.3-8 +- Remove python2 subpackage from fedora and rhel < 8 +- Remove docs subpackage as it doesn't support recent versions of sphinx + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.1.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.1.3-5 +- Drop explicit locale setting + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sat Jul 14 2018 Fedora Release Engineering - 1.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.1.3-3 +- Rebuilt for Python 3.7 + +* Wed Feb 14 2018 Yatin Karel - 1.1.3-2 +- Fix python-ply Requires for rhel + +* Fri Feb 09 2018 Alfredo Moralejo - 1.1.3-1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 1.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.1.0-4 +- Rebuild for Python 3.6 + +* Mon Aug 22 2016 Haïkel Guémar - 1.1.0-3 +- Fix Requires in python2-yaql + +* Fri Apr 8 2016 Haïkel Guémar - 1.1.0-2 +- Fix RHBZ#1282081 + +* Fri Apr 8 2016 Haïkel Guémar - 1.1.0-1 +- Upstream 1.1.0 + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Nov 18 2015 Marcos Fermin Lobo 1.0.2-1.el7 +- Update to 1.0.2 + +* Thu Nov 12 2015 Kalev Lember - 0.2.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Wed Aug 26 2015 Marcos Fermin Lobo 0.2.7-1 +- First RPM for FC23 +