Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
python3-rdflib
python3-rdflib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-rdflib.spec of Package python3-rdflib
# # spec file for package python3-rdflib # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python3-rdflib Version: 4.1.2 Release: 0 Summary: A Python library for working with RDF License: BSD-3-Clause Group: Development/Libraries/Python 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-Sphinx BuildRequires: python3 >= 3.2 BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-flake8 BuildRequires: python3-html5lib BuildRequires: python3-isodate BuildRequires: python3-nose BuildRequires: python3-pyparsing BuildRequires: python3-SPARQLWrapper BuildRequires: python3-xml Requires: python3-flake8 Requires: python3-html5lib Requires: python3-isodate Requires: python3-pyparsing Requires: python3-SPARQLWrapper Requires: python3-xml Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch %description 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 # Drop py2.7 bytecode files, we have to rebuild these: find . -type f -name "*.pyc" -print -delete %build python3 setup.py build cd docs make html # Remove hidden file rm -r _build/html/.buildinfo %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} # for update-alternatives mv %{buildroot}%{_bindir}/csv2rdf %{buildroot}%{_bindir}/csv2rdf-%{py3_ver} mv %{buildroot}%{_bindir}/rdf2dot %{buildroot}%{_bindir}/rdf2dot-%{py3_ver} mv %{buildroot}%{_bindir}/rdfgraphisomorphism %{buildroot}%{_bindir}/rdfgraphisomorphism-%{py3_ver} mv %{buildroot}%{_bindir}/rdfpipe %{buildroot}%{_bindir}/rdfpipe-%{py3_ver} mv %{buildroot}%{_bindir}/rdfs2dot %{buildroot}%{_bindir}/rdfs2dot-%{py3_ver} ln -s %{_bindir}/csv2rdf-%{py3_ver} %{buildroot}%{_bindir}/csv2rdf ln -s %{_bindir}/rdf2dot-%{py3_ver} %{buildroot}%{_bindir}/rdf2dot ln -s %{_bindir}/rdfgraphisomorphism-%{py3_ver} %{buildroot}%{_bindir}/rdfgraphisomorphism ln -s %{_bindir}/rdfpipe-%{py3_ver} %{buildroot}%{_bindir}/rdfpipe ln -s %{_bindir}/rdfs2dot-%{py3_ver} %{buildroot}%{_bindir}/rdfs2dot # fix end-of-line encoding sed -i 's/\r$//' docs/_build/html/_static/jquery.js %fdupes -s docs/_build/html %post update-alternatives \ --install %{_bindir}/rdfpipe rdfpipe %{_bindir}/rdfpipe-%{py3_ver} 30 \ --slave %{_bindir}/csv2rdf csv2rdf %{_bindir}/csv2rdf%{py3_ver} \ --slave %{_bindir}/rdf2dot rdf2dot %{_bindir}/rdf2dot%{py3_ver} \ --slave %{_bindir}/rdfgraphisomorphism rdfgraphisomorphism %{_bindir}/rdfgraphisomorphism%{py3_ver} \ --slave %{_bindir}/rdfs2dot rdfs2dot %{_bindir}/rdfs2dot%{py3_ver} %preun if [ $1 -eq 0 ] ; then update-alternatives --remove rdfpipe %{_bindir}/rdfpipe-%{py3_ver} fi %check python3 setup.py test %files %defattr(-,root,root) %doc CHANGELOG.md LICENSE CONTRIBUTORS README.md docs/_build/html %{_bindir}/csv2rdf-%{py3_ver} %{_bindir}/rdf2dot-%{py3_ver} %{_bindir}/rdfgraphisomorphism-%{py3_ver} %{_bindir}/rdfpipe-%{py3_ver} %{_bindir}/rdfs2dot-%{py3_ver} %ghost %{_bindir}/csv2rdf %ghost %{_bindir}/rdf2dot %ghost %{_bindir}/rdfgraphisomorphism %ghost %{_bindir}/rdfpipe %ghost %{_bindir}/rdfs2dot %{python3_sitelib}/rdflib/ %{python3_sitelib}/rdflib-%{version}-py*.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor