## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 keep # no tests currently defined %bcond tests 0 %if (%{defined fedora} && 0%{?fedora} <= 42) || (%{defined rhel} && 0%{?rhel} <= 10) # license not picked up automatically by old tooling %bcond license_found 0 %else %bcond license_found 1 %endif Name: python-%{srcname} Version: 2.11 Release: %autorelease Summary: A Meta CLI toolkit License: MIT URL: https://github.com/orkohunter/keep # pypi archive does not contain license text # Source0: {pypi_source} Source: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch %global _description %{expand: Personal shell command keeper and snippets manager ## Features - Save a new command with a brief description - Search the saved commands using powerful patterns - Save the commands as a secret GitHub gist - Use `keep push` and `keep pull` to sync the commands between GitHub gist and other computers. **ProTip : Save the commands you usually forget in ssh sessions and sync it with your local machine.**} %description %_description %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel %if %{with tests} BuildRequires: python3-pytest %endif %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %if %{with license_found} %pyproject_save_files -l %{srcname} %else %pyproject_save_files -L %{srcname} %endif %check %pyproject_check_import %if %{with tests} %pytest -v %endif %files -n python3-%{srcname} -f %{pyproject_files} %if %{without license_found} %license LICENSE.md %endif %doc README.md tutorial.md %{_bindir}/%{srcname} %changelog ## START: Generated by rpmautospec * Wed Nov 12 2025 Michel Lind - 2.11-3 - Also use license workaround for Fedora <= 42 * Wed Nov 12 2025 Michel Lind - 2.11-2 - Workaround to ship license file when building for EL <= 10 * Wed Nov 12 2025 Michel Lind - 2.11-1 - Update to version 2.11 - Stop using deprecated Python macros; Resolves: RHBZ#2377839 * Fri Sep 19 2025 Python Maint - 2.10.1-17 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 2.10.1-16 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 2.10.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jun 03 2025 Python Maint - 2.10.1-14 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 2.10.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 2.10.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 2.10.1-11 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 2.10.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 2.10.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 2.10.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 2.10.1-7 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 2.10.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 2.10.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 2.10.1-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 2.10.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jun 29 2021 Michel Alexandre Salim - 2.10.1-1 - Initial package ## END: Generated by rpmautospec