Hello community, here is the log from the commit of package python3-rdflib for openSUSE:Factory checked in at 2015-07-02 22:50:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-rdflib (Old) and /work/SRC/openSUSE:Factory/.python3-rdflib.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-rdflib" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-rdflib/python3-rdflib.changes 2015-02-20 12:01:57.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-rdflib.new/python3-rdflib.changes 2015-07-03 00:18:57.000000000 +0200 @@ -1,0 +2,14 @@ +Wed Jul 1 12:45:59 UTC 2015 - toddrme2178@gmail.com + +- Add group field to doc + +------------------------------------------------------------------- +Wed Jul 1 11:51:30 UTC 2015 - toddrme2178@gmail.com + +- Split documentation into doc subpackage +- Don't build documentation for SLES 12 + python-Sphinx is not available on SLES 12, + and python3-Sphinx won't work until this issue is fixed: + https://github.com/RDFLib/rdflib/issues/491 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-rdflib.spec ++++++ --- /var/tmp/diff_new_pack.6SxHCF/_old 2015-07-03 00:18:57.000000000 +0200 +++ /var/tmp/diff_new_pack.6SxHCF/_new 2015-07-03 00:18:57.000000000 +0200 @@ -26,7 +26,12 @@ Source: http://pypi.python.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes +# switch to python3-Sphinx when issue fixed: +# https://github.com/RDFLib/rdflib/issues/491 +# Turn on for SLES 12 after switching to python3-Sphinx +%if 0%{?suse_version} != 1315 BuildRequires: python-Sphinx +%endif BuildRequires: python3 >= 3.2 BuildRequires: python3-2to3 BuildRequires: python3-SPARQLWrapper @@ -54,6 +59,17 @@ 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} sed -i "1d" rdflib/plugins/parsers/{ntriples,notation3}.py # Fix non-executable bits @@ -62,10 +78,12 @@ %build python3 setup.py build +%if 0%{?suse_version} != 1315 cd docs make html # Remove hidden file rm -r _build/html/.buildinfo +%endif %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} @@ -82,10 +100,12 @@ ln -s %{_bindir}/rdfpipe-%{py3_ver} %{buildroot}%{_bindir}/rdfpipe ln -s %{_bindir}/rdfs2dot-%{py3_ver} %{buildroot}%{_bindir}/rdfs2dot +%if 0%{?suse_version} != 1315 # fix end-of-line encoding sed -i 's/\r$//' docs/_build/html/_static/jquery.js %fdupes -s docs/_build/html +%endif %post update-alternatives \ @@ -105,7 +125,7 @@ %files %defattr(-,root,root) -%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html +%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md %{_bindir}/csv2rdf-%{py3_ver} %{_bindir}/rdf2dot-%{py3_ver} %{_bindir}/rdfgraphisomorphism-%{py3_ver} @@ -119,4 +139,11 @@ %{python3_sitelib}/rdflib/ %{python3_sitelib}/rdflib-%{version}-py*.egg-info +%if 0%{?suse_version} != 1315 +%files doc +%defattr(-,root,root) +%doc docs/_build/html +%endif + + %changelog