# Created by pyp2rpm-3.3.0 %global pypi_name gitlab Name: python-%{pypi_name} Version: 3.3.0 Release: 1%{?dist} Summary: Interact with GitLab API License: LGPLv3 URL: https://github.com/python-gitlab/python-gitlab Source0: https://files.pythonhosted.org/packages/source/p/python-gitlab/python-gitlab-%{version}.tar.gz # furo theme not available # https://bugzilla.redhat.com/show_bug.cgi?id=1910798 Patch0: drop-furo-theme.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(requests) >= 1 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(six) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(httmock) BuildRequires: python3dist(mock) BuildRequires: python3dist(pytest) BuildRequires: python3dist(responses) BuildRequires: python3dist(tox) BuildRequires: python3dist(tox-current-env) BuildRequires: python3dist(myst-parser) BuildRequires: python3dist(requests-toolbelt) BuildRequires: python3dist(sphinxcontrib-autoprogram) %description Interact with GitLab API %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} Interact with GitLab API %package -n python-%{pypi_name}-doc Summary: Python gitlab documentation %description -n python-%{pypi_name}-doc Documentation for gitlab %prep %autosetup -p1 -n python-%{pypi_name}-%{version} for Files in gitlab/v4/cli.py gitlab/cli.py ; do \ %{__sed} -i.orig -e 1d ${Files} touch -r ${Files}.orig ${Files} %{__rm} ${Files}.orig done %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install # Why are these even created ? We certainly do not want them rm -rf %{buildroot}%{python3_sitelib}/docs rm -rf %{buildroot}%{python3_sitelib}/tests %check %tox %files -n python3-%{pypi_name} %doc README.rst %license COPYING %{_bindir}/gitlab %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/python_gitlab-%{version}-py%{python3_version}.egg-info %files -n python-%{pypi_name}-doc %license COPYING %doc html %changelog * Thu Apr 14 2022 Steve Traylen - 3.3.0-1 - New 3.3.0 version * Mon Jan 31 2022 Steve Traylen - 3.1.1-1 - New 3.1.1 version, Use default sphinx theme rather than furo. * Fri Jan 21 2022 Fedora Release Engineering - 2.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Dec 9 2021 Steve Traylen - 2.10.1-1 - New 2.10.1 version * Fri Jul 23 2021 Fedora Release Engineering - 2.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.7.1-2 - Rebuilt for Python 3.10 * Mon May 24 2021 Stephen Gallagher - 2.7.1-1 - New 2.7.1 version - Adds support for setting merge request approval rules * Mon Mar 8 2021 Steve Traylen - 2.6.0-1 - New 2.6.0 version * Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Aug 21 2020 Steve Traylen - 2.4.0-1 - New 2.4.0 version * Wed Jul 29 2020 Fedora Release Engineering - 1.15.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.15.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.15.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Dec 17 2019 Steve Traylen - 1.15.0-1 - New 1.15.0 version * Mon Dec 16 2019 Steve Traylen - 1.14.0-1 - New 1.14.0 version * Wed Nov 13 2019 Steve Traylen - 1.13.0-1 - New 1.13.0 version * Thu Oct 03 2019 Miro Hrončok - 1.7.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.7.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 09 2019 Neal Gompa - 1.7.0-1 - Update to 1.7.0 - Drop redundant runtime dependencies specified for auto-generated ones * Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Oct 31 2018 Miro Hrončok - 1.3.0-6 - Subpackage python2-gitlab has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Tue Jun 19 2018 Miro Hrončok - 1.3.0-5 - Rebuilt for Python 3.7 * Tue Jun 19 2018 Miro Hrončok - 1.3.0-4 - Rebuilt for Python 3.7 * Wed May 16 2018 Steve Traylen - 1.3.0-3 - Correct copy paste error. * Wed May 16 2018 Steve Traylen - 1.3.0-2 - Specify COPYING file. Add BR on python-mock. * Fri May 11 2018 Steve Traylen - 1.3.0-1 - Initial package.