15
0

Compare commits

12 Commits

Author SHA256 Message Date
26d54e5f0c Accepting request 1302910 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1302910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=11
2025-09-05 19:44:18 +00:00
222b61d042 try to hotfix libalternatives hysteria
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzillatools?expand=0&rev=25
2025-09-05 10:48:44 +00:00
1dee863f0a - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzillatools?expand=0&rev=24
2025-06-17 09:16:28 +00:00
755a1a3421 Accepting request 1283510 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1283510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=10
2025-06-06 20:43:39 +00:00
88e21cae54 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzillatools?expand=0&rev=22
2025-06-06 05:40:38 +00:00
33e4b24ef3 Accepting request 1148327 from devel:languages:python
- Add python312.patch to fix tests with python3.12

OBS-URL: https://build.opensuse.org/request/show/1148327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=9
2024-02-20 20:16:42 +00:00
62e79445b2 Accepting request 827696 from devel:languages:python
- We can finally use %pyunittest macro

OBS-URL: https://build.opensuse.org/request/show/827696
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=8
2020-08-19 16:55:27 +00:00
c443d66065 Accepting request 809829 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809829
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=7
2020-06-09 22:44:51 +00:00
e1da5e990a Accepting request 655723 from devel:languages:python
- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/655723
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=6
2018-12-13 18:48:01 +00:00
0c1350cd60 Accepting request 623638 from devel:languages:python
- Whitespace in prep phase to ensure we build on Leap 42

OBS-URL: https://build.opensuse.org/request/show/623638
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=5
2018-07-18 20:57:25 +00:00
13b936b4b3 Accepting request 613251 from devel:languages:python
- We want to conflict even package called literally python-bugzillatools
  (without any expansions)
- Add upstream patch for porting to Python 3 (and fix some remaining
  bugs)
  * 0001-Working-on-both-2.7-and-3.4.patch patch combining all upstream
    changes to port module to py3k
  * no-bzrlib-py3k.patch my fixes for making test suite working with
    as little fuss as possible
- Adjust SPEC file for adding testing
- Fix SPEC file with spec-cleaner
- singlespec auto-conversion
- update to version 0.5.5:
  * comment command learned the --private option
  * fix comment enumeration order
  * fix string encoding error when invoking editor which could lead
    to invalid XML being sent to server
- additional changes from version 0.5.4:
  * better error messages on missing server/account configuration
    (#3)
  * remove fields without name data from bug records (#5)
  * make user and password configuration optional (#12)
- additional changes from version 0.5.3.1:
  * fix installation error
- additional changes from version 0.5.3:
  * editor: fix incorrect path to vi(1) when EDITOR is not defined
  * create command: treat "defaulted" fields as mandatory in case
    no default is set
  * ui: fix some unicode encoding errors
  * fields command: handle minor changes in result format in 4.4
  * correct the name of the platform field
    (platform -> rep_platform)
  * expand bzr plugin documentation
- replace README with README.rst: changed upstream
- Fix license to GPL-3.0+ (see sr#203363 for reference)
- Set license to MIT (according to code).
- Initial version

OBS-URL: https://build.opensuse.org/request/show/613251
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=4
2018-06-02 10:12:20 +00:00
b115b8f5e1 Accepting request 304460 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/304460
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzillatools?expand=0&rev=3
2015-04-30 09:50:56 +00:00
2 changed files with 23 additions and 13 deletions

View File

@@ -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>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
%define oldpython python
%bcond_without libalternatives
Name: python-bugzillatools
Version: 0.5.5
Release: 0
@@ -32,17 +33,19 @@ Patch0: 0001-Working-on-both-2.7-and-3.4.patch
Patch1: no-bzrlib-py3k.patch
# PATCH-FIX-OPENSUSE python312.patch
Patch2: python312.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: alts
# We want to conflict even package literally called python-bugzilla
# without the python version number
Conflicts: %{oldpython}-bugzilla
#Recommends: bzr
# File conflict for /usr/bin/bugzilla:
Conflicts: python-bugzilla
# File conflict for /usr/bin/bugzilla with all lang flavours:
Conflicts: %{python_module bugzilla}
BuildArch: noarch
%python_subpackages
@@ -57,27 +60,24 @@ systems that enable interaction with Bugzilla installations.
sed -i "/.bugzillarc.sample/d" setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/bugzilla
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pyunittest
%post
%python_install_alternative bugzilla
%postun
%python_uninstall_alternative bugzilla
%pre
%python_libalternatives_reset_alternative bugzilla
%files %{python_files}
%doc CHANGES README.rst gpl-3.0.txt
%python_alternative %{_bindir}/bugzilla
%{python_sitelib}/bzlib
%{python_sitelib}/bzrlib
%{python_sitelib}/bugzillatools-%{version}-py%{python_version}.egg-info
%{python_sitelib}/bugzillatools-%{version}.dist-info
%changelog