forked from pool/python-bugzilla
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=0dc12c72f2749975b38084f3fc26f2fe
79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-bugzilla
|
|
#
|
|
# Copyright (c) 2011 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 http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: python-bugzilla
|
|
Version: 0.6.1
|
|
Release: 1
|
|
Summary: Python library for bugzilla
|
|
Group: Development/Libraries/Python
|
|
License: GPLv2+
|
|
Url: https://fedorahosted.org/python-bugzilla/
|
|
Source: https://fedorahosted.org/releases/p/y/python-bugzilla/%{name}-%{version}.tar.bz2
|
|
# generated from python-bugzilla/suse
|
|
# https://gitorious.org/opensuse/python-bugzilla/commits/suse
|
|
# cherry-picked patches from git format-patch suse...0.6.1
|
|
Patch0: 0012-Fix-for-httplib-xmlrpclib-changes-in-py2.7.patch
|
|
Patch1: 0016-obfuscated-password-support-in-oscrc.patch
|
|
Patch2: 0017-fix-typo-in-url-argument.patch
|
|
Patch3: 0018-novell-bugzilla-support-in-getBugzillaClassForURL.patch
|
|
Patch4: 0019-novell-bugzilla-run-on-3.4.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: python-devel
|
|
BuildArch: noarch
|
|
%{py_requires}
|
|
|
|
%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.
|
|
|
|
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?
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%{__python} setup.py build
|
|
|
|
%install
|
|
%{__python} setup.py install \
|
|
--root=%{buildroot} \
|
|
--prefix=%{_prefix} \
|
|
--record-rpm=INSTALLED_FILES
|
|
sed -i 's#%{_mandir}/man1/bugzilla.1#%{_mandir}/man1/bugzilla.1.gz#' INSTALLED_FILES
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root,0755)
|
|
|
|
%changelog
|