Accepting request 315778 from devel:languages:python

- Split documentation into doc subpackage
- update to version 4.2.0

OBS-URL: https://build.opensuse.org/request/show/315778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rdflib?expand=0&rev=21
This commit is contained in:
Stephan Kulow 2015-07-19 09:44:27 +00:00 committed by Git OBS Bridge
commit aa745c75bd
4 changed files with 79 additions and 28 deletions

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
Wed Jul 1 13:43:16 UTC 2015 - toddrme2178@gmail.com
- Split documentation into doc subpackage
-------------------------------------------------------------------
Tue May 12 13:24:19 UTC 2015 - benoit.monin@gmx.fr
- update to version 4.2.0:
* Supporting N-Triples 1.1 syntax using UTF-8 encoding #447,
#449, #400
* Graph comparison now really works using RGDA1 (RDF Graph Digest
Algorithm 1) #441 #385
* More graceful degradation than simple crashing for unicode
chars > 0xFFFF on narrow python builds
* URLInputSource now supports json-ld #425
* SPARQLStore is now graph aware #401, #402
* SPARQLStore now uses SPARQLWrapper for updates #397
* Certain logging output is immediately shown in interactive mode
#414
* Python 3.4 fully supported #418
* Fixed double invocation of 2to3 #437
* PyRDFa parser missing brackets #434
* Correctly handle \uXXXX and \UXXXXXXXX escapes in n3 files #426
* Logging cleanups and keeping it on stderr #420 #414 #413
* n3: allow @base URI to have a trailing '#' #407 #379
* microdata: add file:// to base if it's a filename so rdflib can
parse its own output #406 #403
* TSV Results parse skips empty bindings in result #390
* fixed accidental test run due to name #389
* Bad boolean list serialization to Turtle & fixed ambiguity
between Literal(False) and None #387 #382
* Current version number & PyPI link in README.md #383
- remove *.pyc deletion: fixed upstream
- remove unwanted shebang in rdflib
- fix update-alternatives
- remove end-of-line encoding fix: fixed upstream
-------------------------------------------------------------------
Sat Nov 08 20:27:00 UTC 2014 - Led <ledest@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-rdflib
#
# Copyright (c) 2014 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-rdflib
Version: 4.1.2
Version: 4.2.0
Release: 0
Summary: A Python library for working with RDF
License: BSD-3-Clause
@ -56,10 +56,21 @@ language for representing information. The library contains an RDF/XML
parser/serializer that conforms to the RDF/XML Syntax Specification (Revised).
The library also contains both in-memory and persistent Graph backends.
%package doc
Summary: A Python library for working with RDF
Recommends: %{name} = %{version}
Group: Development/Libraries/Python
%description doc
RDFLib is a Python library for working with RDF, a simple yet powerful
language for representing information. The library contains an RDF/XML
parser/serializer that conforms to the RDF/XML Syntax Specification (Revised).
The library also contains both in-memory and persistent Graph backends.
%prep
%setup -q -n rdflib-%{version}
# Drop py2.7 bytecode files, we have to rebuild these:
find . -type f -name "*.pyc" -print -delete
# remove unwanted shebang
find rdflib -name "*.py" | xargs sed -i '1 { /^#!/ d }'
%build
python setup.py build
@ -72,19 +83,12 @@ rm -r _build/html/.buildinfo
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# for update-alternatives
mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py_ver}
mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py_ver}
mv %{buildroot}%{_bindir}/rdfgraphisomorphism %{buildroot}%{_bindir}/rdfgraphisomorphism-%{py_ver}
mv %{buildroot}%{_bindir}/rdfpipe %{buildroot}%{_bindir}/rdfpipe-%{py_ver}
mv %{buildroot}%{_bindir}/rdfs2dot %{buildroot}%{_bindir}/rdfs2dot-%{py_ver}
ln -s %{_bindir}/csv2rdf-%{py_ver} %{buildroot}%{_bindir}/csv2rdf
ln -s %{_bindir}/rdf2dot-%{py_ver} %{buildroot}%{_bindir}/rdf2dot
ln -s %{_bindir}/rdfgraphisomorphism-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorphism
ln -s %{_bindir}/rdfpipe-%{py_ver} %{buildroot}%{_bindir}/rdfpipe
ln -s %{_bindir}/rdfs2dot-%{py_ver} %{buildroot}%{_bindir}/rdfs2dot
# fix end-of-line encoding
sed -i 's/\r$//' docs/_build/html/_static/jquery.js
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for f in csv2rdf rdf2dot rdfgraphisomorphism rdfpipe rdfs2dot; do
mv %{buildroot}%{_bindir}/$f %{buildroot}%{_bindir}/$f-%{py_ver}
touch %{buildroot}%{_sysconfdir}/alternatives/$f
ln -sf %{_sysconfdir}/alternatives/$f %{buildroot}%{_bindir}/$f
done
%fdupes -s docs/_build/html
@ -111,23 +115,32 @@ if [ $1 -eq 0 ] ; then
fi
# Not working
# %check
# python setup.py test
#%%check
# python setup.py -q test
%files
%defattr(-,root,root)
%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html
%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md
%ghost %{_sysconfdir}/alternatives/csv2rdf
%ghost %{_sysconfdir}/alternatives/rdf2dot
%ghost %{_sysconfdir}/alternatives/rdfgraphisomorphism
%ghost %{_sysconfdir}/alternatives/rdfpipe
%ghost %{_sysconfdir}/alternatives/rdfs2dot
%{_bindir}/csv2rdf-%{py_ver}
%{_bindir}/rdf2dot-%{py_ver}
%{_bindir}/rdfgraphisomorphism-%{py_ver}
%{_bindir}/rdfpipe-%{py_ver}
%{_bindir}/rdfs2dot-%{py_ver}
%ghost %{_bindir}/csv2rdf
%ghost %{_bindir}/rdf2dot
%ghost %{_bindir}/rdfgraphisomorphism
%ghost %{_bindir}/rdfpipe
%ghost %{_bindir}/rdfs2dot
%{_bindir}/csv2rdf
%{_bindir}/rdf2dot
%{_bindir}/rdfgraphisomorphism
%{_bindir}/rdfpipe
%{_bindir}/rdfs2dot
%{python_sitelib}/rdflib/
%{python_sitelib}/rdflib-%{version}-py*.egg-info
%files doc
%defattr(-,root,root)
%doc docs/_build/html
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f
size 868883

3
rdflib-4.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7420dafc4930249d0cfcf31e8547a39b658d079ab2c9e975465f6697a8476ec0
size 881424