From a5bb6ea6a0793d0d11acff1d4bfd1f08f21eba7b2bd3a00f1cad8b2354f304b1 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 12 May 2015 14:34:55 +0000 Subject: [PATCH 1/2] Accepting request 306561 from home:benoit_monin:branches:devel:languages:python - update to version 4.2.0 - remove *.pyc deletion: fixed upstream - remove unwanted shebang in rdflib - fix update-alternatives - remove end-of-line encoding fix: fixed upstream OBS-URL: https://build.opensuse.org/request/show/306561 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=44 --- python-rdflib.changes | 33 +++++++++++++++++++++++++++++++ python-rdflib.spec | 46 +++++++++++++++++++++---------------------- rdflib-4.1.2.tar.gz | 3 --- rdflib-4.2.0.tar.gz | 3 +++ 4 files changed, 58 insertions(+), 27 deletions(-) delete mode 100644 rdflib-4.1.2.tar.gz create mode 100644 rdflib-4.2.0.tar.gz diff --git a/python-rdflib.changes b/python-rdflib.changes index 2c75948..4906dfa 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +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 diff --git a/python-rdflib.spec b/python-rdflib.spec index 56a1e5e..8aa6a86 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -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 @@ -58,8 +58,8 @@ 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 +72,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,22 +104,27 @@ 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 +%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 diff --git a/rdflib-4.1.2.tar.gz b/rdflib-4.1.2.tar.gz deleted file mode 100644 index b59c6bb..0000000 --- a/rdflib-4.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3cf94bda0867f21468b248ce9f671581efb92ae9edd28ff321716126c6706a4f -size 868883 diff --git a/rdflib-4.2.0.tar.gz b/rdflib-4.2.0.tar.gz new file mode 100644 index 0000000..07e8f30 --- /dev/null +++ b/rdflib-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7420dafc4930249d0cfcf31e8547a39b658d079ab2c9e975465f6697a8476ec0 +size 881424 From f933cdbab54765cab4c82631dd093dc257840d4b77a1139536422c551cf93ade Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 1 Jul 2015 13:43:43 +0000 Subject: [PATCH 2/2] Accepting request 314727 from home:TheBlackCat:branches:devel:languages:python Split documentation into doc subpackage OBS-URL: https://build.opensuse.org/request/show/314727 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=45 --- python-rdflib.changes | 5 +++++ python-rdflib.spec | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/python-rdflib.changes b/python-rdflib.changes index 4906dfa..ba84d59 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-rdflib.spec b/python-rdflib.spec index 8aa6a86..1076f75 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -56,6 +56,17 @@ 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} # remove unwanted shebang @@ -109,7 +120,7 @@ fi %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 @@ -128,4 +139,8 @@ fi %{python_sitelib}/rdflib/ %{python_sitelib}/rdflib-%{version}-py*.egg-info +%files doc +%defattr(-,root,root) +%doc docs/_build/html + %changelog