Hello community, here is the log from the commit of package python-bugzilla for openSUSE:Factory checked in at 2018-05-08 13:39:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-bugzilla (Old) and /work/SRC/openSUSE:Factory/.python-bugzilla.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-bugzilla" Tue May 8 13:39:05 2018 rev:25 rq:605151 version:2.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-bugzilla/python-bugzilla.changes 2016-07-20 09:20:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-bugzilla.new/python-bugzilla.changes 2018-05-08 13:39:15.561396427 +0200 @@ -1,0 +2,40 @@ +Mon May 7 15:13:13 UTC 2018 - [email protected] + +- Fix conflict for python-bugzillatools: we have to take extra care + for the single-spec rewritter not to conflict with + python2-bugzillatools in the end (which does not exist). + +------------------------------------------------------------------- +Wed May 2 07:10:38 UTC 2018 - [email protected] + +- Add Conflicts for python-bugzillatools + +------------------------------------------------------------------- +Mon Apr 30 15:00:32 UTC 2018 - [email protected] + +- Trim history lesson and rhetoric wording from %description. + +------------------------------------------------------------------- +Wed Apr 25 10:36:02 UTC 2018 - [email protected] + +- convert to singlespec +- use pypi as source +- update url + +------------------------------------------------------------------- +Wed Apr 25 10:21:27 UTC 2018 - [email protected] + +- update to 2.1.0: + - Support for bugzilla 5 API Keys (Dustin J. Mitchell) + - bugzillarc can be used to set default URL for the cli tool + - Revive update_flags wrapper + - Bug fixes and minor improvements + - Several fixes for use with bugzilla 5 + - Bugzilla.bug_autorefresh now defaults to False + - Credentials are now cached in ~/.cache/python-bugzilla/ + - bin/bugzilla was converted to argparse + - bugzilla query --boolean_chart option is removed + - Unify command line flags across sub commands +- drop NovellBugzilla.patch (no longer needed) + +------------------------------------------------------------------- Old: ---- NovellBugzilla.patch python-bugzilla-1.2.2.tar.bz2 New: ---- python-bugzilla-2.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-bugzilla.spec ++++++ --- /var/tmp/diff_new_pack.mqasq6/_old 2018-05-08 13:39:16.373367118 +0200 +++ /var/tmp/diff_new_pack.mqasq6/_new 2018-05-08 13:39:16.377366973 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-bugzilla # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,54 +16,58 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-bugzilla -Version: 1.2.2 +Version: 2.1.0 Release: 0 -Summary: Python library for bugzilla -License: GPL-2.0+ +Summary: Python library for Bugzilla +License: GPL-2.0-or-later Group: Development/Libraries/Python -Url: https://fedorahosted.org/python-bugzilla/ -Source: %{name}-%{version}.tar.bz2 -Patch0: NovellBugzilla.patch -# https://gitorious.org/opensuse/python-bugzilla -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch -%endif -Requires: python-pycurl +URL: https://github.com/python-bugzilla/python-bugzilla +Source: https://files.pythonhosted.org/packages/source/p/python-bugzilla/python-bugzilla-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros Requires: python-requests +Requires(post): update-alternatives +Requires(postun): update-alternatives Suggests: osc +Conflicts: %{oldpython}-bugzillatools +BuildArch: noarch +%python_subpackages %description -This is a python module that provides a nice, python-ish interface to Bugzilla -over XMLRPC. - -It was originally written specifically for Red Hat's Bugzilla instance, but now -supports the Web Services provided by upstream Bugzilla 3.0 and 3.2 also. +This is a Python module that provides a Python-ish interface to +Bugzilla over XMLRPC. It supports the Web Services provided by +upstream Bugzilla 3.0 and 3.2. It also includes a 'bugzilla' commandline client which can be used for quick, -ad-hoc bugzilla jiggery-pokery. I guess you could use it in shell scripts too, -but gosh - why not just write something in Python instead? +ad-hoc bugzilla jiggery-pokery. %prep %setup -q -%patch0 -p1 %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --root=%{buildroot} --prefix=%{_prefix} +%python_install +%python_clone -a %{buildroot}%{_bindir}/bugzilla +%python_clone -a %{buildroot}%{_mandir}/man1/bugzilla.1 + +%post +%{python_install_alternative bugzilla bugzilla.1} + +%postun +%python_uninstall_alternative bugzilla -%files +%files %{python_files} %defattr(-,root,root,-) -%{_bindir}/bugzilla +%python_alternative %{_bindir}/bugzilla +%python_alternative %{_mandir}/man1/bugzilla.1%{ext_man} %{python_sitelib}/bugzilla %{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info -%{_mandir}/man1/bugzilla.1.gz %changelog
