Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rdflib?expand=0&rev=51
This commit is contained in:
parent
1854edb861
commit
bdcb1719ff
@ -16,19 +16,17 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
|
||||
%bcond_with tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-rdflib
|
||||
Version: 4.2.2
|
||||
Release: 0
|
||||
Summary: A Python library for working with RDF
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://rdflib.net/
|
||||
URL: http://rdflib.net/
|
||||
Source: https://files.pythonhosted.org/packages/source/r/rdflib/rdflib-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: %{python_module html5lib}
|
||||
BuildRequires: %{python_module isodate}
|
||||
BuildRequires: %{python_module pyparsing}
|
||||
@ -38,11 +36,6 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-2to3
|
||||
BuildRequires: python3-Sphinx
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module SPARQLWrapper}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
Requires: python-SPARQLWrapper
|
||||
Requires: python-flake8
|
||||
Requires: python-html5lib
|
||||
@ -50,6 +43,11 @@ Requires: python-isodate
|
||||
Requires: python-pyparsing
|
||||
Requires: python-xml
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module SPARQLWrapper}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -78,7 +76,7 @@ find rdflib -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
||||
%python_build
|
||||
|
||||
pushd docs
|
||||
make html
|
||||
make %{?_smp_mflags} html
|
||||
# Remove hidden file
|
||||
rm -r _build/html/.buildinfo
|
||||
popd
|
||||
@ -95,8 +93,8 @@ popd
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md CONTRIBUTORS README.md
|
||||
%python3_only %{_bindir}/csv2rdf
|
||||
%python3_only %{_bindir}/rdf2dot
|
||||
%python3_only %{_bindir}/rdfgraphisomorphism
|
||||
@ -106,7 +104,6 @@ popd
|
||||
%{python_sitelib}/rdflib-%{version}-py*.egg-info
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root)
|
||||
%doc docs/_build/html
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user