## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 10; 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 howdoi Name: python-%{srcname} Version: 2.0.20 Release: %autorelease Summary: Instant coding answers via the command line License: MIT URL: https://github.com/gleitz/howdoi # pypi archive does not contain test data # Source0: {pypi_source} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: Sherlock, your neighborhood command-line sloth sleuth. Are you a hack programmer? Do you find yourself constantly Googling for how to do basic programming tasks? Suppose you want to know how to format a date in bash. Why open your browser and read through blogs (risking major distraction) when you can simply stay in the console and ask howdoi: $ howdoi format date bash > DATE=`date +%%Y-%%m-%%d`} %description %_description %package -n %{srcname} Summary: %{summary} Provides: python3-%{srcname} = %{version}-%{release} Obsoletes: python3-%{srcname} < 2.0.20-2 %description -n %{srcname} %_description %prep %autosetup -n %{srcname}-%{version} -p1 # remove shebang sed -i.shebang '1d' howdoi/howdoi.py touch -r howdoi/howdoi.py.shebang howdoi/howdoi.py %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %srcname %check TEST_CLASS=test_howdoi.py::HowdoiTestCase skipped_tests=(colorize) DESELECT= for testcase in "${skipped_tests[@]}"; do DESELECT+=" --deselect ${TEST_CLASS}::test_${testcase}" done %pytest -v ${DESELECT} %files -n %{srcname} -f %{pyproject_files} %license LICENSE.txt %doc CHANGES.txt README.md %{_bindir}/%{srcname} %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.0.20-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 03 2024 Python Maint - 2.0.20-9 - Rebuilt for Python 3.13 * Mon Jan 29 2024 Fedora Release Engineering - 2.0.20-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.0.20-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.0.20-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.0.20-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 2.0.20-4 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.0.20-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Nov 28 2022 Michel Alexandre Salim - 2.0.20-2 - Rename binary package to just howdoi, as it is an application * Mon Nov 28 2022 Michel Alexandre Salim - 2.0.20-1 - Update to 2.0.20; convert to new Python packaging guidelines * Fri Jul 22 2022 Fedora Release Engineering - 2.0.16-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 2.0.16-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.0.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.0.16-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 30 2021 Michel Alexandre Salim - 2.0.16-2 - Escape %%s in description - fix shebang in non-executable file - Use `--deselect` to temporarily skip expensive tests * Tue Jun 29 2021 Michel Alexandre Salim - 2.0.16-1 - Initial package ## END: Generated by rpmautospec