## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 Name: tldr Version: 3.3.0 Release: %autorelease Summary: Simplified and community-driven man pages License: MIT URL: https://github.com/tldr-pages/tldr-python-client Source0: https://github.com/tldr-pages/tldr-python-client/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # dependencies for make man BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-argparse) # dependencies for %%check BuildRequires: python3dist(pytest) %description A Python command line client for tldr - Simplified and community-driven man pages http://tldr-pages.github.io/. %prep %autosetup -n %{name}-python-client-%{version} %generate_buildrequires %pyproject_buildrequires %build pushd docs make man popd %pyproject_wheel %{python3} tldr.py --print-completion bash > tldr.bash %{python3} tldr.py --print-completion zsh > tldr.zsh %install %pyproject_install %pyproject_save_files tldr install -Dp --mode=0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dp --mode=0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} %check %pytest -k "not test_error_message" %files -f %{pyproject_files} %license LICENSE.md %doc CHANGELOG.md README.md %{_bindir}/%{name} %{_mandir}/man1/tldr.1* %{bash_completions_dir}/%{name} %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Sat Jul 20 2024 Fedora Release Engineering - 3.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jul 01 2024 Mikel Olasagasti Uranga - 3.3.0-2 - Add packit support * Mon Jul 01 2024 Mikel Olasagasti Uranga - 3.3.0-1 - Update to 3.3.0 - Closes rhbz#2267422 * Fri Jun 07 2024 Python Maint - 3.2.0-5 - Rebuilt for Python 3.13 * Sat Jan 27 2024 Fedora Release Engineering - 3.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 3.2.0-2 - Rebuilt for Python 3.12 * Fri May 12 2023 Mikel Olasagasti Uranga - 3.2.0-1 - Update to 3.2.0 * Sun May 07 2023 Maxwell G - 3.1.0-5 - cleanup redundant BuildRequires * Sat Jan 21 2023 Fedora Release Engineering - 3.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 3.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 3.1.0-2 - Rebuilt for Python 3.11 * Mon Feb 21 2022 Mikel Olasagasti Uranga - 3.1.0-1 - Update to 3.1.0 * Sat Jan 22 2022 Fedora Release Engineering - 3.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 19 2021 Mikel Olasagasti Uranga - 3.0.0-2 - Add missing BR on shtab * Tue Jul 27 2021 David Auer - 2.0.0-1 - Update to 2.0.0 * Fri Jul 23 2021 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.1-2 - Rebuilt for Python 3.10 * Fri Apr 02 2021 Mikel Olasagasti Uranga - 1.2.1-1 - Update to 1.2.1 * Mon Feb 01 2021 Mikel Olasagasti Uranga - 1.2.0-1 - Update to 1.2.0 * Wed Jan 27 2021 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Oct 22 2020 Mikel Olasagasti Uranga - 1.1.0-1 - Update to 1.1.0 * Wed Jul 29 2020 Fedora Release Engineering - 0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.5-2 - Rebuilt for Python 3.9 * Mon Feb 10 2020 Lumír Balhar - 0.5-1 - Update to 0.5 (#1800511) * Fri Jan 31 2020 Fedora Release Engineering - 0.4.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.4.4-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.4.4-3 - Rebuilt for Python 3.8 * Sat Jul 27 2019 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 18 2019 Lumír Balhar - 0.4.4-1 - New upstream version * Sun Feb 03 2019 Fedora Release Engineering - 0.4.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.4.2-2 - Rebuilt for Python 3.7 * Thu Apr 05 2018 Lumir Balhar - 0.4.2-1 - New upstream version * Fri Feb 09 2018 Fedora Release Engineering - 0.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Dec 05 2017 Lumir Balhar - 0.4.1-1 - Initial package. ## END: Generated by rpmautospec