## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 pypi_name autopep8 %global py3_name python3-%{pypi_name} Name: python-%{pypi_name} Version: 2.2.0 Release: %autorelease Summary: Automatically formats Python code to conform to the PEP 8 style License: MIT URL: http://pypi.python.org/pypi/autopep8 Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: pyproject-rpm-macros %py_provides python3-%{pypi_name} %description The package autopep8 automatically formats Python code to conform to the PEP 8 style guide. It uses the pycodestyle utility to determine what parts of the code needs to be formatted. autopep8 is capable of fixing most of the formatting issues that can be reported by pycodestyle. %package -n %{py3_name} Summary: The package autopep8 formats Python code based on the output of the pep8 utility %description -n %{py3_name} autopep8 formats Python code based on the output of the pep8 utility. %prep %autosetup -p1 -n autopep8-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} pushd %{buildroot}%{_bindir} ln -s %{pypi_name} %{pypi_name}-3 ln -s %{pypi_name} %{pypi_name}-%{python3_version} popd %check %pytest -v -k "not (SystemTests or CommandLineTests or ExperimentalSystemTests)" %files -n %{py3_name} -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/%{pypi_name} %{_bindir}/%{pypi_name}-3 %{_bindir}/%{pypi_name}-%{python3_version} %changelog ## START: Generated by rpmautospec * Sun Aug 18 2024 Christiano Anderson - 2.2.0-1 - Version 2.2.0 * Fri May 03 2024 Christiano Anderson - 2.1.0-1 - Update to 2.1.0 RHBZ#2269936 * Mon Jan 29 2024 Fedora Release Engineering - 2.0.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.0.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Sep 20 2023 Sandro - 2.0.4-5 - Rebuild for Spyder dependencies side tag * Mon Sep 11 2023 Christiano Anderson - 2.0.4-4 - Fixing lint warnings * Thu Sep 07 2023 Christiano Anderson - 2.0.4-3 - Converted to rpmautospec and improved the spec file. * Sat Sep 02 2023 Sandro - 2.0.4-1 - Update to 2.0.4 (RHBZ#2226154) * Fri Jul 21 2023 Fedora Release Engineering - 1.6.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Python Maint - 1.6.0-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.6.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jul 01 2022 Ali Erdinc Koroglu - 1.6.0-4 - Rebuilt for RHBZ #2026248 * Mon Jun 13 2022 Python Maint - 1.6.0-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Jan 15 2022 Mukundan Ragavan - 1.6.0-1 - Update to 1.6.0 * Fri Jul 23 2021 Fedora Release Engineering - 1.5.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.5.4-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.5.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 07 2020 Matthias Runge - 1.5.4-1 - update to 1.5.4, FTBFS (rhbz#1899951) * Sat Aug 01 2020 Fedora Release Engineering - 1.4.3-9 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.4.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.4.3-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.4.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.4.3-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.4.3-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.4.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 29 2019 Matthias Runge - 1.4.3-1 - update to 1.4.3, drop python2 subpackage * Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.2.4-10 - Drop explicit locale setting for python3, use C.UTF-8 for python2 See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot * Fri Jul 13 2018 Fedora Release Engineering - 1.2.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.4-8 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.2.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Iryna Shcherbina - 1.2.4-6 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 1.2.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.2.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.2.4-3 - Rebuild for Python 3.6 * Fri Nov 25 2016 Matthias Runge - 1.2.4-2 - fix __pycache__ ownership * Tue Nov 01 2016 Matthias Runge - 1.2.4-1 - update to 1.2.4 - update python3 executable name in new style (rhbz#1341315) * Tue Jul 19 2016 Fedora Release Engineering - 1.2.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 27 2016 Robert Kuska - 1.2.1-1 - Update to 1.2.1 * Tue Nov 10 2015 Fedora Release Engineering - 1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Aug 28 2015 Nikola Dipanov - 1.2-1 - Update to upstream version 1.2 * Sat Jul 11 2015 Haïkel Guémar - 1.1.1-1 - Upstream 1.1.1 - Use python versioned macros - Add missing dist in release tag - Add python3 subpackage * Thu Jun 18 2015 Fedora Release Engineering - 0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.9.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Aug 13 2013 Nikola Dipanov - 0.9.2-1 - Update to upstream version 0.9.2 * Sun Aug 04 2013 Fedora Release Engineering - 0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Sep 06 2012 Nikola Dipanov - 0.8-1 - initial build ## END: Generated by rpmautospec