File python3-rdflib-doc.spec of Package python3-rdflib

#
# spec file for package python3-rdflib-doc
#
# Copyright (c) 2016 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
# 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-doc
Version:        4.2.1
Release:        0
Summary:        Documentation for python3-rdflib
License:        BSD-3-Clause
Group:          Documentation/HTML
Url:            http://rdflib.net/
Source:         https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  python3-rdflib = %{version}
BuildRequires:  python3-Sphinx
Recommends:     python3-rdflib = %{version}
BuildArch:      noarch

%description
Documentation and help files for python3-rdflib.

%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
cd docs
make html
# Remove hidden file
rm -r _build/html/.buildinfo

%install
# fix end-of-line encoding
sed -i 's/\r$//' docs/_build/html/_static/jquery.js

%fdupes -s docs/_build/html

%files
%defattr(-,root,root)
%doc docs/_build/html

%changelog
openSUSE Build Service is sponsored by