forked from pool/python-bugzilla
Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| f03a847dc1 | |||
| 747681d1d4 | |||
| 85d3e3160a |
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jun 17 09:15:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
|
||||||
|
|
||||||
- Convert to libalternatives
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Jun 6 05:30:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
|
||||||
|
|
||||||
- Switch to pyproject macros.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 20 19:54:11 UTC 2024 - mcepl@cepl.eu
|
Fri Sep 20 19:54:11 UTC 2024 - mcepl@cepl.eu
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-bugzilla
|
# spec file for package python-bugzilla
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
%bcond_without libalternatives
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-bugzilla
|
Name: python-bugzilla
|
||||||
Version: 3.2.0+git.1726768917.5eedea3
|
Version: 3.2.0+git.1726768917.5eedea3
|
||||||
@@ -31,17 +30,15 @@ Source: python-bugzilla-%{version}.tar.gz
|
|||||||
# PATCH-FIX-UPSTREAM 106-basic-auth.diff bsc#1098219 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM 106-basic-auth.diff bsc#1098219 mcepl@suse.com
|
||||||
# Fix basic authentication on bugzilla.suse.com
|
# Fix basic authentication on bugzilla.suse.com
|
||||||
Patch0: 106-basic-auth.diff
|
Patch0: 106-basic-auth.diff
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module requests}
|
BuildRequires: %{python_module requests}
|
||||||
BuildRequires: %{python_module responses}
|
BuildRequires: %{python_module responses}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
|
||||||
BuildRequires: alts
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: alts
|
|
||||||
Requires: python-requests
|
Requires: python-requests
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Suggests: osc
|
Suggests: osc
|
||||||
Conflicts: %{oldpython}-bugzillatools
|
Conflicts: %{oldpython}-bugzillatools
|
||||||
Obsoletes: python2-bugzilla
|
Obsoletes: python2-bugzilla
|
||||||
@@ -63,16 +60,19 @@ sed -i -e '1{/^#!\/usr\/bin\/env python/d}' bugzilla/_cli.py
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bugzilla
|
%python_clone -a %{buildroot}%{_bindir}/bugzilla
|
||||||
%python_clone -a %{buildroot}%{_mandir}/man1/bugzilla.1
|
%python_clone -a %{buildroot}%{_mandir}/man1/bugzilla.1
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%pre
|
%post
|
||||||
%python_libalternatives_reset_alternative bugzilla
|
%{python_install_alternative bugzilla bugzilla.1}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative bugzilla
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user