## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname parse_type Name: python-%{srcname} Version: 0.6.2 Release: %autorelease Summary: Simplifies to build parse types based on the parse module License: MIT URL: http://github.com/jenisys/parse_type Source0: %{url}/archive/%{srcname}-%{version}.tar.gz BuildArch: noarch %{?python_enable_dependency_generator} %global _description \ "parse_type" extends the "parse" module (opposite of\ "string.format()") with the following features:\ * build type converters for common use cases (enum/mapping, choice)\ * build a type converter with a cardinality constraint (0..1,\ 0..*, 1..*) from the type converter with cardinality=1.\ * compose a type converter from other type converters\ * an extended parser that supports the CardinalityField naming\ schema and creates missing type variants (0..1, 0..*, 1..*) from\ the primary type converter %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-devel %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -n %{srcname}-%{version} # remove deps on pytest-html sed -i -e '/^\s*"pytest-html >= /d' setup.py sed -i -e '/^\s*"pytest-html >= /d' pyproject.toml sed -i -e '/^pytest-html >= /d' py.requirements/testing.txt %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check # we don't care about html output from pytest, plus pytest-html isn't in fedora sed -i \ -e '/^addopts = --metadata PACKAGE_UNDER_TEST parse_type/d' \ -e '/^ --metadata PACKAGE_VERSION [0-9].[0-9].[0-9]/d' \ -e '\% --html=build/testing/report.html --self-contained-html%d' \ -e '\% --junit-xml=build/testing/report.xml%d' \ pytest.ini %tox %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.rst %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 0.6.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.6.2-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.6.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 04 2023 Python Maint - 0.6.2-2 - Rebuilt for Python 3.12 * Tue Jul 04 2023 jonathanspw - 0.6.2-1 - Update to 0.6.2 rhbz#2219184 * Wed Jun 14 2023 Python Maint - 0.6.0-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 28 2022 Jonathan - 0.6.0-3 - dont output html from pytest * Mon Nov 28 2022 Jonathan - 0.6.0-2 - remove unnecessary "sed" from spec * Mon Nov 28 2022 Jonathan - 0.6.0-1 - update to 0.6.0 * Fri Jul 22 2022 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.5.2-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Dec 29 2021 Igor Raits - 0.5.2-1 - Update to 0.5.2 * Fri Jul 23 2021 Fedora Release Engineering - 0.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.4.2-11 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.4.2-8 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.4.2-6 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.4.2-5 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Aug 30 2018 Miro Hrončok - 0.4.2-2 - Remove python2 subpackage * Wed Aug 22 2018 Miro Hrončok - 0.4.2-1 - Update to 0.4.2 * Sat Jul 14 2018 Fedora Release Engineering - 0.3.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.3.4-17 - Rebuilt for Python 3.7 * Mon Feb 12 2018 Iryna Shcherbina - 0.3.4-16 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.3.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.3.4-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.3.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.3.4-12 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.3.4-11 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon May 09 2016 Igor Gnatenko - 0.3.4-10 - Correctly do Provides/Obsoletes * Sun May 8 2016 Peter Robinson 0.3.4-9 - Provide/Obsolete python-parse_type for upgrade paths * Tue Apr 19 2016 Igor Gnatenko - 0.3.4-8 - Use %%license - Use %%python_provide - Don't use splitted dirs - Correctly split python2- subpkg - Other cleanups/fixes * Thu Feb 04 2016 Fedora Release Engineering - 0.3.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Dec 16 2015 Matěj Cepl - 0.3.4-6 - Whoops! Duplicated BuildRequires and Requires removed. * Tue Dec 15 2015 Matěj Cepl - 0.3.4-5 - Remove unnecessary dependency on python-enum34 for python3 (#1286457) * Tue Nov 10 2015 Fedora Release Engineering - 0.3.4-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.3.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Jun 19 2014 Matěj Cepl - 0.3.4-1 - initial package for Fedora ## END: Generated by rpmautospec