forked from pool/python-bugzillatools
Compare commits
5 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 26d54e5f0c | |||
| 222b61d042 | |||
| 1dee863f0a | |||
| 755a1a3421 | |||
| 88e21cae54 |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 17 09:16:04 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.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 20 18:37:51 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
Tue Feb 20 18:37:51 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-bugzillatools
|
# spec file for package python-bugzillatools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 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,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-bugzillatools
|
Name: python-bugzillatools
|
||||||
Version: 0.5.5
|
Version: 0.5.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -32,17 +33,19 @@ Patch0: 0001-Working-on-both-2.7-and-3.4.patch
|
|||||||
Patch1: no-bzrlib-py3k.patch
|
Patch1: no-bzrlib-py3k.patch
|
||||||
# PATCH-FIX-OPENSUSE python312.patch
|
# PATCH-FIX-OPENSUSE python312.patch
|
||||||
Patch2: python312.patch
|
Patch2: python312.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
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(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun): update-alternatives
|
|
||||||
# We want to conflict even package literally called python-bugzilla
|
# We want to conflict even package literally called python-bugzilla
|
||||||
# without the python version number
|
# without the python version number
|
||||||
Conflicts: %{oldpython}-bugzilla
|
Conflicts: %{oldpython}-bugzilla
|
||||||
#Recommends: bzr
|
#Recommends: bzr
|
||||||
# File conflict for /usr/bin/bugzilla:
|
# File conflict for /usr/bin/bugzilla with all lang flavours:
|
||||||
Conflicts: python-bugzilla
|
Conflicts: %{python_module bugzilla}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -57,27 +60,24 @@ systems that enable interaction with Bugzilla installations.
|
|||||||
sed -i "/.bugzillarc.sample/d" setup.py
|
sed -i "/.bugzillarc.sample/d" setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/bugzilla
|
%python_clone -a %{buildroot}%{_bindir}/bugzilla
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyunittest
|
%pyunittest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative bugzilla
|
%python_libalternatives_reset_alternative bugzilla
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative bugzilla
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES README.rst gpl-3.0.txt
|
%doc CHANGES README.rst gpl-3.0.txt
|
||||||
%python_alternative %{_bindir}/bugzilla
|
%python_alternative %{_bindir}/bugzilla
|
||||||
%{python_sitelib}/bzlib
|
%{python_sitelib}/bzlib
|
||||||
%{python_sitelib}/bzrlib
|
%{python_sitelib}/bzrlib
|
||||||
%{python_sitelib}/bugzillatools-%{version}-py%{python_version}.egg-info
|
%{python_sitelib}/bugzillatools-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user