15
0

Accepting request 492712 from home:TheBlackCat:branches:devel:languages:python

- Update to version 1.8.0
- Implement single-spec version.
- Fix source URL.

OBS-URL: https://build.opensuse.org/request/show/492712
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SPARQLWrapper?expand=0&rev=9
This commit is contained in:
Todd R
2017-05-08 14:21:33 +00:00
committed by Git OBS Bridge
parent 02895c05bb
commit b06a24c094
4 changed files with 42 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-SPARQLWrapper
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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,28 +16,29 @@
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-SPARQLWrapper
Version: 1.7.6
Version: 1.8.0
Release: 0
Summary: SPARQL Endpoint interface to Python
License: W3C
Group: Development/Languages/Python
Url: http://sparql-wrapper.sourceforge.net/
Source: https://pypi.io/packages/source/S/SPARQLWrapper/SPARQLWrapper-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
Source: http://files.pythonhosted.org.io/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}
Requires: python-rdflib >= 4.0
# TODO(aplanas) python-keepalive is in the requirements.txt file, but
# the tests pass without this package.
# Requires: python-keepalive >= 0.5
Recommends: python-rdflib >= 4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-simplejson
Requires: python-simplejson
%{!?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
This is a wrapper around a SPARQL service. It helps in creating the
@@ -48,17 +49,23 @@ format.
%setup -q -n SPARQLWrapper-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
# Tests are not compatible with python3
%if %have_python2
python test/wrapper_test.py
%endif
%endif
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md AUTHORS.md
%doc README.md AUTHORS.md LICENSE.txt
%{python_sitelib}/SPARQLWrapper/
%{python_sitelib}/SPARQLWrapper-%{version}-py*.egg-info