File python-bugzilla.spec of Package python-bugzilla

# spec file for package python-bugzilla (Version 0.5)
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# norootforbuild

Name:           python-bugzilla
Version:        0.5
Release:        3
Summary:        Python library for bugzilla
Group:          Development/Libraries/Python
License:        GPLv2+
#git clone git:// python-bugzilla-0.5
#tar --exclude-vcs -cjf python-bugzilla-0.5.tar.bz2 python-bugzilla-0.5/
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

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.

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?

This package contains a set of patches enabling an access for Novell bugzilla.

Will Woods <>, Oct 16 2008

%setup -q
%patch0 -p1 -b .use-lwpcookiejar-by-default
%patch1 -p1 -b .novellbugzilla-implementation
%patch2 -p1 -b .obfuscated-password
%patch3 -p1

export CFLAGS="%{optflags}"
%{__python} build

%{__python} install \
    --root=%{buildroot} \
    --prefix=%{_prefix} \
sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES

rm -rf %{buildroot}