Accepting request 408509 from home:jsegitz:branches:devel:languages:python
- Update to version 1.2.2 - Added NovellBugzilla.patch to ensure it works with SUSE internal bugzilla. OBS-URL: https://build.opensuse.org/request/show/408509 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=36
This commit is contained in:
13
NovellBugzilla.patch
Normal file
13
NovellBugzilla.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: python-bugzilla-1.2.2/build/lib/bugzilla/base.py
|
||||
===================================================================
|
||||
--- python-bugzilla-1.2.2.orig/build/lib/bugzilla/base.py 2016-07-12 10:17:49.836875522 +0200
|
||||
+++ python-bugzilla-1.2.2/build/lib/bugzilla/base.py 2016-07-14 15:09:36.151992677 +0200
|
||||
@@ -994,7 +994,7 @@ class BugzillaBase(object):
|
||||
log.debug("Calling Bug.get with: %s", getbugdata)
|
||||
r = self._proxy.Bug.get(getbugdata)
|
||||
|
||||
- if self.bz_ver_major >= 4:
|
||||
+ if self.bz_ver_major >= 4 or self.__class__.__name__=='NovellBugzilla':
|
||||
bugdict = dict([(b['id'], b) for b in r['bugs']])
|
||||
else:
|
||||
bugdict = dict([(b['id'], b['internals']) for b in r['bugs']])
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:898282966a8a1b013a461434a9c91b8a9703a5bdbbbe5e1f12572ebfec747f5e
|
||||
size 53240
|
||||
3
python-bugzilla-1.2.2.tar.bz2
Normal file
3
python-bugzilla-1.2.2.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:78fc57bd8ca78511c7221656690c6479ce81500ff5e812fdc631d46018580608
|
||||
size 1200113
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 14 13:09:51 UTC 2016 - jsegitz@novell.com
|
||||
|
||||
- Update to version 1.2.2
|
||||
- Added NovellBugzilla.patch to ensure it works with SUSE internal
|
||||
bugzilla.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 23 12:32:08 UTC 2014 - bwiedemann@suse.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bugzilla
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2016 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
|
||||
@@ -17,22 +17,25 @@
|
||||
|
||||
|
||||
Name: python-bugzilla
|
||||
Version: 0.9.0suse3
|
||||
Version: 1.2.2
|
||||
Release: 0
|
||||
Summary: Python library for bugzilla
|
||||
License: GPL-2.0+
|
||||
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
|
||||
Requires: python-requests
|
||||
Suggests: osc
|
||||
|
||||
%description
|
||||
@@ -48,6 +51,7 @@ but gosh - why not just write something in Python instead?
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
@@ -57,7 +61,6 @@ python setup.py install --root=%{buildroot} --prefix=%{_prefix}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{_bindir}/bugzilla
|
||||
%{python_sitelib}/bugzilla
|
||||
%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info
|
||||
|
||||
Reference in New Issue
Block a user