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
|
# Tests don't work and cause a dependency loop with python-SPARQLWrapper
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-rdflib
|
Name: python-rdflib
|
||||||
Version: 4.2.2
|
Version: 4.2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Python library for working with RDF
|
Summary: A Python library for working with RDF
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Python
|
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
|
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 html5lib}
|
||||||
BuildRequires: %{python_module isodate}
|
BuildRequires: %{python_module isodate}
|
||||||
BuildRequires: %{python_module pyparsing}
|
BuildRequires: %{python_module pyparsing}
|
||||||
@ -38,11 +36,6 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python3-2to3
|
BuildRequires: python3-2to3
|
||||||
BuildRequires: python3-Sphinx
|
BuildRequires: python3-Sphinx
|
||||||
%if %{with tests}
|
|
||||||
BuildRequires: %{python_module SPARQLWrapper}
|
|
||||||
BuildRequires: %{python_module flake8}
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
%endif
|
|
||||||
Requires: python-SPARQLWrapper
|
Requires: python-SPARQLWrapper
|
||||||
Requires: python-flake8
|
Requires: python-flake8
|
||||||
Requires: python-html5lib
|
Requires: python-html5lib
|
||||||
@ -50,6 +43,11 @@ Requires: python-isodate
|
|||||||
Requires: python-pyparsing
|
Requires: python-pyparsing
|
||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: %{python_module SPARQLWrapper}
|
||||||
|
BuildRequires: %{python_module flake8}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -78,7 +76,7 @@ find rdflib -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
|||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
pushd docs
|
pushd docs
|
||||||
make html
|
make %{?_smp_mflags} html
|
||||||
# Remove hidden file
|
# Remove hidden file
|
||||||
rm -r _build/html/.buildinfo
|
rm -r _build/html/.buildinfo
|
||||||
popd
|
popd
|
||||||
@ -95,8 +93,8 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc CHANGELOG.md LICENSE CONTRIBUTORS README.md
|
%doc CHANGELOG.md CONTRIBUTORS README.md
|
||||||
%python3_only %{_bindir}/csv2rdf
|
%python3_only %{_bindir}/csv2rdf
|
||||||
%python3_only %{_bindir}/rdf2dot
|
%python3_only %{_bindir}/rdf2dot
|
||||||
%python3_only %{_bindir}/rdfgraphisomorphism
|
%python3_only %{_bindir}/rdfgraphisomorphism
|
||||||
@ -106,7 +104,6 @@ popd
|
|||||||
%{python_sitelib}/rdflib-%{version}-py*.egg-info
|
%{python_sitelib}/rdflib-%{version}-py*.egg-info
|
||||||
|
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc docs/_build/html
|
%doc docs/_build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user