## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 14; 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 Name: thefuck Version: 3.32 Release: %autorelease Summary: App that corrects your previous console command License: MIT URL: https://github.com/nvbn/thefuck Source0: https://github.com/nvbn/%{name}/archive/%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel # https://github.com/nvbn/thefuck/issues/1381 %if v"0%{?python3_version}" >= v"3.12" BuildRequires: python3-zombie-imp Requires: python3-zombie-imp %endif %description This application corrects your previous console command. If you use BASH, you should add these lines to your .bashrc: alias fuck='eval $(thefuck $(fc -ln -1)); history -r' alias FUCK='fuck' For other shells please check /usr/share/doc/thefuck/README.md %prep %autosetup %py3_shebang_fix *.py # Fix deprecated python3-mock https://github.com/nvbn/thefuck/issues/1262 find tests -type f -name '*.py' -exec sed -i -E 's/^(\s*)import mock/\1from unittest import mock/' {} \; find tests -type f -name '*.py' -exec sed -i -E 's/^(\s*)from mock import /\1from unittest.mock import /' {} \; # Cleanup requirements for release and functional tests grep -Ev '^(flake8|mock|pexpect|pypandoc|pytest-benchmark|pytest-docker-pexpect|twine)\s*$' requirements.txt | tee requirements-filtered.txt # Don't generate (unfiltered) dependencies for tox: sed -Ei 's/[-]rrequirements\.txt//' tox.ini # The package does not work with pytest 8 # upstream issue: https://github.com/nvbn/thefuck/issues/1438 sed -i "s/pytest$/pytest<8/" requirements-filtered.txt %generate_buildrequires %pyproject_buildrequires -t requirements-filtered.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files thefuck %check %tox %files -n thefuck -f %{pyproject_files} %license LICENSE.md %doc README.md %{_bindir}/fuck %{_bindir}/thefuck %changelog ## START: Generated by rpmautospec * Tue Jul 30 2024 Tomáš Hrnčiar - 3.32-14 - BuildRequire pytest < 8 * Sat Jul 20 2024 Fedora Release Engineering - 3.32-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.32-12 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Arthur Bols - 3.32-11 - Require python3-zombie-imp (fedora#2246042) * Fri Jul 21 2023 Arthur Bols - 3.32-10 - Fix python3-zombie-imp for Fedora >= 39 not 38 * Fri Jul 21 2023 Arthur Bols - 3.32-9 - Fix FTBFS: add BuildRequires python3-zombie-imp * Fri Jul 21 2023 Arthur Bols - 3.32-8 - Reformat spec file * Wed Jun 14 2023 Python Maint - 3.32-7 - Rebuilt for Python 3.12 * Sat Jan 21 2023 Fedora Release Engineering - 3.32-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 3.32-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.32-3 - Rebuilt for Python 3.11 * Sat Jan 22 2022 Fedora Release Engineering - 3.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Jan 10 2022 Arthur Bols - 3.32-1 - Upstream release 3.32 - Updated spec to comply with updated guidelines * Fri Jul 23 2021 Fedora Release Engineering - 3.15-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.15-14 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.15-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.15-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 3.15-11 - Rebuilt for Python 3.9 * Fri Jan 31 2020 Fedora Release Engineering - 3.15-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 3.15-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 3.15-8 - Rebuilt for Python 3.8 * Sat Jul 27 2019 Fedora Release Engineering - 3.15-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Feb 03 2019 Fedora Release Engineering - 3.15-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 3.15-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 3.15-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 3.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 3.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Mar 27 2017 Matias Kreder 3.15-1 - Updated to thefuck 3.15 * Sat Feb 11 2017 Fedora Release Engineering - 3.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 3.2-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 3.2-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Feb 05 2016 Fedora Release Engineering - 3.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Nov 18 2015 Matias Kreder 3.2-3 - Added buildrequires * Wed Nov 18 2015 Matias Kreder 3.2-1 - Updated to thefuck 3.2 * Tue Nov 10 2015 Fedora Release Engineering - 1.48-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jul 2 2015 Matias Kreder 1.46-1 - Initial spec ## END: Generated by rpmautospec