14
0
forked from pool/python-rdflib

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

Update to 4.0.1

OBS-URL: https://build.opensuse.org/request/show/209979
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=39
This commit is contained in:
Todd R
2013-12-09 13:30:32 +00:00
committed by Git OBS Bridge
parent f7ec5d3e3f
commit e14e7e82d9
4 changed files with 95 additions and 9 deletions

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Fri Dec 6 13:57:34 UTC 2013 - toddrme2178@gmail.com
- Update to 4.0.1
* Bugfixes
- Update to 4.0
* The new SPARQL 1.1 engine (rdflib-sparql) has been included in the core distribution. SPARQL 1.1 queries and updates should work out of the box.
* Several RDF 1.1 features are available:
* A new DataSet class
* XMLLiteral and HTMLLiterals
* BNode (de)skolemization is supported through BNode.skolemize, URIRef.de_skolemize, Graph.skolemize and Graph.de_skolemize
* Handled of Literal equality was split into lexical comparison (for normal == operator) and value space (using new Node.eq methods). This introduces some slight backwards incomaptible changes, but was necessary, as the old version had inconsisten hash and equality methods that could lead the literals not working correctly in dicts/sets. The new way is more in line with how SPARQL 1.1 works. For the full details, see:
* Iterating over QueryResults will generate ResultRow objects, these allow access to variable bindings as attributes or as a dict. I.e.
* "Slicing" of Graphs and Resources as syntactic sugar: (#271)
* The SPARQLStore and SPARQLUpdateStore are now included in the RDFLib core
* The documentation has been given a major overhaul, and examples for most features have been added.
- Update to 3.4
* This release introduced new parsers for structured data in HTML. In particular formats: hturtle, rdfa, mdata and an auto-detecting html format were added. Thanks to Ivan Herman for this!
* This release includes a lot of admin maintentance - correct dependencies for different python versions, etc. Several py3 bugs were also fixed.
* This release drops python 2.4 compatability - it was just getting too expensive for us to maintain. It should however be compatible with any cpython from 2.5 through 3.3.
* node.md5_term is now deprecated, if you use it let us know.
- Add additional dependencies
- Implement update-alternatives
-------------------------------------------------------------------
Thu Jan 31 13:27:04 UTC 2013 - saschpe@suse.de

View File

@@ -17,7 +17,7 @@
Name: python-rdflib
Version: 3.2.3
Version: 4.0.1
Release: 0
Summary: A Python library for working with RDF
License: BSD-3-Clause
@@ -26,13 +26,24 @@ Url: http://rdflib.net/
Source: http://pypi.python.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-SPARQLWrapper
BuildRequires: python-Sphinx
BuildRequires: python-devel
BuildRequires: python-flake8
BuildRequires: python-html5lib
BuildRequires: python-isodate
BuildRequires: python-nose
BuildRequires: python-pyparsing
BuildRequires: python-setuptools
BuildRequires: python-xml
Requires: python-SPARQLWrapper
Requires: python-flake8
Requires: python-html5lib
Requires: python-isodate
Requires: python-pyparsing
Requires: python-xml
Requires(post): update-alternatives
Requires(postun): update-alternatives
%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
@@ -59,14 +70,65 @@ rm -r _build/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes -s build/html
%check
python setup.py test
# for update-alternatives
mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py_ver}
mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py_ver}
mv %{buildroot}%{_bindir}/rdfgraphisomorpishm %{buildroot}%{_bindir}/rdfgraphisomorpishm-%{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}/rdfgraphisomorpishm-%{py_ver} %{buildroot}%{_bindir}/rdfgraphisomorpishm
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
%fdupes -s docs/_build/html
%pre
# Since /usr/bin/* became ghosted to be used with update-alternatives, we have to get rid
# of the old binary resulting from the non-update-alternativies-ified package:
[[ ! -L %{_bindir}/csv2rdf ]] && rm -f %{_bindir}/csv2rdf
[[ ! -L %{_bindir}/rdf2dot ]] && rm -f %{_bindir}/rdf2dot
[[ ! -L %{_bindir}/rdfgraphisomorpishm ]] && rm -f %{_bindir}/rdfgraphisomorpishm
[[ ! -L %{_bindir}/rdfpipe ]] && rm -f %{_bindir}/rdfpipe
[[ ! -L %{_bindir}/rdfs2dot ]] && rm -f %{_bindir}/rdfs2dot
exit 0
%post
update-alternatives \
--install %{_bindir}/rdfpipe rdfpipe %{_bindir}/rdfpipe-%{py_ver} 30 \
--slave %{_bindir}/csv2rdf csv2rdf %{_bindir}/csv2rdf%{py_ver} \
--slave %{_bindir}/rdf2dot rdf2dot %{_bindir}/rdf2dot%{py_ver} \
--slave %{_bindir}/rdfgraphisomorpishm rdfgraphisomorpishm %{_bindir}/rdfgraphisomorpishm%{py_ver} \
--slave %{_bindir}/rdfs2dot rdfs2dot %{_bindir}/rdfs2dot%{py_ver}
%preun
if [ $1 -eq 0 ] ; then
update-alternatives --remove rdfpipe %{_bindir}/rdfpipe-%{py_ver}
fi
# Not working
# %check
# python setup.py test
%files
%defattr(-,root,root)
%doc CHANGELOG LICENSE README docs/_build/html
%{python_sitelib}/*
%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html
%{_bindir}/csv2rdf-%{py_ver}
%{_bindir}/rdf2dot-%{py_ver}
%{_bindir}/rdfgraphisomorpishm-%{py_ver}
%{_bindir}/rdfpipe-%{py_ver}
%{_bindir}/rdfs2dot-%{py_ver}
%ghost %{_bindir}/csv2rdf
%ghost %{_bindir}/rdf2dot
%ghost %{_bindir}/rdfgraphisomorpishm
%ghost %{_bindir}/rdfpipe
%ghost %{_bindir}/rdfs2dot
%{python_sitelib}/rdflib/
%{python_sitelib}/rdflib-%{version}-py*.egg-info
%changelog

View File

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

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

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