forked from pool/python-SPARQLWrapper
Accepting request 306745 from home:benoit_monin:branches:devel:languages:python
- update to version 1.6.4 - require python-rdflib instead of recommending it - require python-simplejson for SLE11 - add runtime dependencies as build dependencies - remove the fix of end-of-line encoding: changed upstream - run the tests during build with wrapper_test.py - change the documentation files to follow upstream OBS-URL: https://build.opensuse.org/request/show/306745 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SPARQLWrapper?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
97bb205f67
commit
3f10a76a03
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-SPARQLWrapper
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 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
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-SPARQLWrapper
|
||||
Version: 1.5.2
|
||||
Version: 1.6.4
|
||||
Release: 0
|
||||
Summary: SPARQL Endpoint interface to Python
|
||||
License: W3C
|
||||
@@ -25,10 +25,13 @@ Group: Development/Languages/Python
|
||||
Url: http://sparql-wrapper.sourceforge.net/
|
||||
Source: https://pypi.python.org/packages/source/S/SPARQLWrapper/SPARQLWrapper-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-rdflib
|
||||
BuildRequires: python-setuptools
|
||||
Recommends: python-rdflib
|
||||
Requires: python-rdflib
|
||||
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
|
||||
@@ -41,8 +44,6 @@ format.
|
||||
|
||||
%prep
|
||||
%setup -q -n SPARQLWrapper-%{version}
|
||||
# fix end-of-line encoding
|
||||
sed -i 's/\r$//' README.txt
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
@@ -50,9 +51,12 @@ python setup.py build
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%check
|
||||
python test/wrapper_test.py
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.txt LICENSE.txt AUTHORS.txt ChangeLog.txt
|
||||
%doc README.md AUTHORS.md
|
||||
%{python_sitelib}/SPARQLWrapper/
|
||||
%{python_sitelib}/SPARQLWrapper-%{version}-py*.egg-info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user