forked from pool/python-bugzilla
- Fix conflict for python-bugzillatools: we have to take extra care for the single-spec rewritter not to conflict with python2-bugzillatools in the end (which does not exist). OBS-URL: https://build.opensuse.org/request/show/605145 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzilla?expand=0&rev=42
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define oldpython python
|
|
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://github.com/python-bugzilla/python-bugzilla
|
|
Source: https://files.pythonhosted.org/packages/source/p/python-bugzilla/python-bugzilla-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-requests
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
Suggests: osc
|
|
Conflicts: %{oldpython}-bugzillatools
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
This is a Python module that provides a Python-ish interface to
|
|
Bugzilla over XMLRPC. It supports the Web Services provided by
|
|
upstream Bugzilla 3.0 and 3.2.
|
|
|
|
It also includes a 'bugzilla' commandline client which can be used for quick,
|
|
ad-hoc bugzilla jiggery-pokery.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/bugzilla
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/bugzilla.1
|
|
|
|
%post
|
|
%{python_install_alternative bugzilla bugzilla.1}
|
|
|
|
%postun
|
|
%python_uninstall_alternative bugzilla
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%python_alternative %{_bindir}/bugzilla
|
|
%python_alternative %{_mandir}/man1/bugzilla.1%{ext_man}
|
|
%{python_sitelib}/bugzilla
|
|
%{python_sitelib}/python_bugzilla-%{version}-py%{py_ver}.egg-info
|
|
|
|
%changelog
|