%global pypi_name gerritlib %global desc A Python library for interacting with Gerrit %global commit dc754757abd466cbf2cc74bcf5ab7094f53a2426 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitrelease 20240620git%{shortcommit} %global pre ~pre %global __python3 PBR_VERSION=%{version} %{__python3} Name: python-%{pypi_name} Version: 0.11.0 Release: 1%{?pre:}%{gitrelease}%{?dist} Summary: Client library for accessing Gerrit # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: https://opendev.org/opendev/gerritlib/ Source: https://opendev.org/opendev/gerritlib/archive/%{commit}.tar.gz#/%{pypi_name}-%{commit}.tar.gz # building from gitea tarball doesn't have the information required to create these # to refresh, checkout the upstream git commit and run python setup.py sdist # and extract AUTHORS and ChangeLog files Source: AUTHORS Source: ChangeLog BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-hacking BuildRequires: python3-paramiko %description %{desc} %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-pbr Requires: python3-paramiko %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{desc} %prep %autosetup -n %{pypi_name} sed -i 's/\r//' LICENSE # Remove bundled egg-info rm -rf %{pypi_name}.egg-info # We handle requirements ourselves, remove requirements.txt rm -rf requirements.txt test-requirements.txt # building from gitea tarball doesn't have the information required to create these cp %{SOURCE1} AUTHORS cp %{SOURCE2} ChangeLog %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{pypi_name} %doc README.rst AUTHORS ChangeLog %license LICENSE %{python3_sitelib}/*.egg-info %{python3_sitelib}/%{pypi_name} %changelog * Mon Aug 26 2024 Neil Hanlon - 0.11.0-1~pre20240620gitc754757a - bump to latest git commit on opendev - resolve #2291720 #2261563 fti/ftbfs * Wed Jul 24 2024 Miroslav Suchý - 0.6.0-29 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.6.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 10 2024 Python Maint - 0.6.0-27 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.6.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.6.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.6.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 14 2023 Python Maint - 0.6.0-23 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.6.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.6.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 0.6.0-20 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.6.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.6.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.6.0-17 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.6.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.6.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.6.0-14 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.6.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.6.0-12 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.6.0-11 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.6.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Jun 28 2019 Miro Hrončok - 0.6.0-9 - Subpackage python2-gerritlib has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 0.6.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.6.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.6.0-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.6.0-2 - Rebuild for Python 3.6 * Fri Aug 26 2016 Lumir Balhar - 0.6.0-1 - New upstream release - Modernized specfile - New subpackages for each Python version * Tue Jul 19 2016 Fedora Release Engineering - 0.3.0-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Feb 25 2014 Kashyap Chamarthy - 0.3.0-3 - Add Python2 macros for EPEL * Tue Feb 25 2014 Kashyap Chamarthy - 0.3.0-2 - Use %%{__python2} macros instead of %%{__python} (this is deprecated) * Mon Feb 24 2014 Kashyap Chamarthy - 0.3.0-1 - Initial package