14
0

Accepting request 43700 from devel:languages:python

Copy from devel:languages:python/python-bugzilla based on submit request 43700 from user coolo

OBS-URL: https://build.opensuse.org/request/show/43700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bugzilla?expand=0&rev=7
This commit is contained in:
OBS User autobuild
2010-07-23 20:31:27 +00:00
committed by Git OBS Bridge
parent 70bc6e9dcb
commit 68773d49bc
3 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
Index: python-bugzilla-0.5/bugzilla/__init__.py
===================================================================
--- python-bugzilla-0.5.orig/bugzilla/__init__.py
+++ python-bugzilla-0.5/bugzilla/__init__.py
@@ -22,6 +22,9 @@ classlist = ['Bugzilla3', 'Bugzilla32',
def getBugzillaClassForURL(url):
log.debug("Choosing subclass for %s" % url)
+ if url.startswith('https://bugzilla.novell.com'):
+ return NovellBugzilla
+
s = xmlrpclib.ServerProxy(url)
rhbz = False
bzversion = ''

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 17 15:55:51 CEST 2010 - matejcik@suse.cz
- recognize Novell bugzilla in default constructor
-------------------------------------------------------------------
Wed Aug 26 09:18:54 UTC 2009 - mvyskocil@suse.cz

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bugzilla (Version 0.5)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,10 +20,10 @@
Name: python-bugzilla
Version: 0.5
Release: 2
Release: 3
Summary: Python library for bugzilla
Group: Development/Libraries/Python
License: GPL v2 or later
License: GPLv2+
Url: https://fedorahosted.org/python-bugzilla/
#git clone git://git.fedorahosted.org/git/python-bugzilla python-bugzilla-0.5
#tar --exclude-vcs -cjf python-bugzilla-0.5.tar.bz2 python-bugzilla-0.5/
@@ -31,6 +31,7 @@ Source: https://fedorahosted.org/releases/p/y/python-bugzilla/%{name}-%{
Patch0: 0001-Use-LWPCookieJar-by-default.patch
Patch1: 0002-NovellBugzilla-implementation.patch
Patch2: 0003-obfuscated-password-support.patch
Patch3: python-bugzilla-0.5-recognize-novell.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%{py_requires}
@@ -56,6 +57,7 @@ Will Woods <wwoods@redhat.com>, Oct 16 2008
%patch0 -p1 -b .use-lwpcookiejar-by-default
%patch1 -p1 -b .novellbugzilla-implementation
%patch2 -p1 -b .obfuscated-password
%patch3 -p1
%build
export CFLAGS="%{optflags}"