forked from pool/python-bugzillatools
Accepting request 612263 from devel:languages:python:singlespec-staging
Add upstream patch for porting to Python 3 (and fix some remaining bugs) Adjust SPEC file for adding testing OBS-URL: https://build.opensuse.org/request/show/612263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bugzillatools?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bugzillatools
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -16,24 +16,28 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-bugzillatools
|
||||
Version: 0.5.5
|
||||
Release: 0
|
||||
Summary: Bugzilla CLI client, XML-RPC binding and VCS plugins
|
||||
License: GPL-3.0+
|
||||
License: GPL-3.0-or-later
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/frasertweedale/bugzillatools
|
||||
Source: https://pypi.python.org/packages/source/b/bugzillatools/bugzillatools-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
URL: https://github.com/frasertweedale/bugzillatools
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bugzillatools/bugzillatools-%{version}.tar.gz
|
||||
# Port to Python3 from yet unreleased commits in the upstream repo
|
||||
Patch0: 0001-Working-on-both-2.7-and-3.4.patch
|
||||
# Some more py3k fixes
|
||||
# https://github.com/rawrgulmuffins/bugzillatools/pull/26
|
||||
Patch1: no-bzrlib-py3k.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
#Recommends: bzr
|
||||
# File conflict for /usr/bin/bugzilla:
|
||||
Conflicts: python-bugzilla
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%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
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Provides a CLI program and Python library for interacting with the
|
||||
@@ -41,21 +45,24 @@ Bugzilla_ bug tracking system, and plugins for version control
|
||||
systems that enable interaction with Bugzilla installations.
|
||||
|
||||
%prep
|
||||
%setup -q -n bugzillatools-%{version}
|
||||
%autosetup -p1 -n bugzillatools-%{version}
|
||||
sed -i "/.bugzillarc.sample/d" setup.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{_docdir}/%{name}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%check
|
||||
%python_exec -munittest discover -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES README.rst gpl-3.0.txt
|
||||
%{_bindir}/bugzilla
|
||||
%python3_only %{_bindir}/bugzilla
|
||||
%{python_sitelib}/bzlib
|
||||
%{python_sitelib}/bzrlib
|
||||
%{python_sitelib}/bugzillatools-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitelib}/bugzillatools-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user