## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec Name: tldr Version: 3.1.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 BuildRequires: make BuildRequires: python3dist(colorama) BuildRequires: python3dist(shtab) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-argparse) BuildRequires: python3dist(termcolor) # dependencies for %%check BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-runner) %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}%{_datadir}/bash-completion/completions/%{name} install -Dp --mode=0644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{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* %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/%{name} %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_%{name} %changelog * 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.