forked from pool/python-SPARQLWrapper
Accepting request 561454 from devel:languages:python
- Make sure to not bail out when building with py3 only - Do not recommend already required package OBS-URL: https://build.opensuse.org/request/show/561454 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-SPARQLWrapper?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 3 18:11:19 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Make sure to not bail out when building with py3 only
|
||||
- Do not recommend already required package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 8 19:48:46 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-SPARQLWrapper
|
||||
#
|
||||
# Copyright (c) 2017 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,9 +16,13 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests are not compatible with python3
|
||||
%if 0%{?have_python2}
|
||||
%bcond_without tests
|
||||
%else
|
||||
%bcond_with tests
|
||||
%endif
|
||||
Name: python-SPARQLWrapper
|
||||
Version: 1.8.0
|
||||
Release: 0
|
||||
@@ -27,16 +31,13 @@ License: W3C
|
||||
Group: Development/Languages/Python
|
||||
Url: http://sparql-wrapper.sourceforge.net/
|
||||
Source: https://files.pythonhosted.org/packages/source/S/SPARQLWrapper/SPARQLWrapper-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-2to3
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# Only used during installation
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-2to3
|
||||
Requires: python-rdflib >= 4.0
|
||||
Recommends: python-rdflib >= 4.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -57,15 +58,11 @@ format.
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# Tests are not compatible with python3
|
||||
%if %have_python2
|
||||
python test/wrapper_test.py
|
||||
%endif
|
||||
python2 test/wrapper_test.py
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md AUTHORS.md LICENSE.txt
|
||||
%doc README.md AUTHORS.md LICENSE.txt
|
||||
%{python_sitelib}/SPARQLWrapper/
|
||||
%{python_sitelib}/SPARQLWrapper-%{version}-py*.egg-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user