14
0
Files
python-bugzilla/python-bugzilla.spec
Thomas Bechtold a30b8d0279 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=38
2018-04-25 10:28:53 +00:00

67 lines
2.2 KiB
RPMSpec

#
# spec file for package python-bugzilla
#
# 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
# 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/
#
Name: python-bugzilla
Version: 2.1.0
Release: 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.gz
# 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-requests
Suggests: osc
%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
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --root=%{buildroot} --prefix=%{_prefix}
%files
%defattr(-,root,root,-)
%{_bindir}/bugzilla
%{python_sitelib}/bugzilla
%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info
%{_mandir}/man1/bugzilla.1.gz
%changelog