From 128517b59ab8c8ea0dbbc9addb29cbad32d652ca Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 26 Mar 2025 15:31:27 +0000 Subject: automatic import of python-copr-common --- python-copr-common.spec | 94 +++++++++++++++++++------------------------------ 1 file changed, 36 insertions(+), 58 deletions(-) (limited to 'python-copr-common.spec') diff --git a/python-copr-common.spec b/python-copr-common.spec index 3d134bd..7891fad 100644 --- a/python-copr-common.spec +++ b/python-copr-common.spec @@ -1,22 +1,7 @@ %global srcname copr-common -%if 0%{?rhel} && 0%{?rhel} <= 6 -%{!?_licensedir:%global license %%doc} -%global _pkgdocdir %{_docdir}/%{name}-%{version} -%endif - -%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?openEuler} -%global with_python3 1 -%global __python %_bindir/python3 -%endif - -%if 0%{?fedora} && 0%{?fedora} < 28 || 0%{?rhel} && 0%{?rhel} <= 7 -%global with_python2 1 -%global __python %_bindir/python2 -%endif - Name: python-copr-common -Version: 0.19 +Version: 1.1 Release: 1%{?dist} Summary: Python code used by Copr @@ -30,20 +15,12 @@ Source0: %name-%version.tar.gz BuildArch: noarch -%if %{with python2} -BuildRequires: python2-devel -BuildRequires: python-setuptools -BuildRequires: python-pytest -BuildRequires: python-mock -BuildRequires: python-requests -%endif - -%if %{with python3} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-requests -%endif +BuildRequires: python3-filelock +BuildRequires: python3-setproctitle %global _description\ COPR is lightweight build system. It allows you to create new project in WebUI,\ @@ -56,65 +33,66 @@ useful for developers only.\ %description %_description -%if %{with python2} -%package -n python2-%{srcname} -Summary: %{summary} -%{?python_provide:%python_provide python2-%{srcname}} -%description -n python2-%{srcname} %_description -%endif - - -%if %{with python3} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %_description -%endif %prep %setup -q +# Check that setup.py version matches our version +grep '"%version"' setup.py %build -%if %{with python3} version="%version" %py3_build -%endif - -%if %{with python2} -version="%version" %py2_build -%endif %install -%if %{with python3} version=%version %py3_install -%endif - -%if %{with python2} -version=%version %py2_install -%endif - %check -%{__python} -m pytest -vv tests +%{_bindir}/python3 -m pytest -vv tests -%if %{with python3} %files -n python3-%{srcname} %license LICENSE %{python3_sitelib}/* -%endif -%if %{with python2} -%files -n python2-%{srcname} -%license LICENSE -%{python2_sitelib}/* -%endif - %changelog +* Tue Mar 25 2025 Pavel Raiskup 1.1-1 +- lock the pulp-redirect.txt file + +* Wed Oct 02 2024 Jiri Kyjovsky 1.0-1 +- Drop support for rhel7 and rhel6 + +* Thu Aug 01 2024 Miroslav Suchý 0.25-1 +- frontend, backend, common: don't limit the storage to pulp only + +* Tue May 21 2024 Jakub Kadlcik 0.24-1 +- Fix chroot_to_branch default + +* Fri Mar 15 2024 Pavel Raiskup 0.23-1 +- make get_redis_connection to accept dict-like 'opts' argument + +* Fri Mar 01 2024 Pavel Raiskup 0.22-1 +- fix misleading warning for non-copr library consumers +- add `contextlib.nullcontext` function as EL8 compat +- limit stdout/stderr of ssh.run_expensive() commands +- use 'copr-common/' as http user agent identifier +- changes needed to allow user SSH to builders + +* Thu Nov 23 2023 Pavel Raiskup 0.21-1 +- rename GroupWorkerLimit to HashWorkerLimit +- explicitly build-depend on python-six + +* Tue Aug 15 2023 Pavel Raiskup 0.20-1 +- move chroot_to_branch from frontend to copr-common +- redis authentication support added + * Tue May 23 2023 Jakub Kadlcik 0.19-1 - Specfile compatibility with OpenEuler -- cgit v1.2.3