diff --git a/python-rdflib.changes b/python-rdflib.changes index 97dbf20..a571475 100644 --- a/python-rdflib.changes +++ b/python-rdflib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:53:34 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Wed May 3 16:47:44 UTC 2017 - toddrme2178@gmail.com diff --git a/python-rdflib.spec b/python-rdflib.spec index 318e680..f69ae33 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -1,7 +1,7 @@ # # spec file for package python-rdflib # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -12,37 +12,30 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Tests don't work and cause a dependency loop with python-SPARQLWrapper -%bcond_with tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Tests don't work and cause a dependency loop with python-SPARQLWrapper +%bcond_with tests 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: fdupes -BuildRequires: python-rpm-macros -BuildRequires: python3-2to3 -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module html5lib} BuildRequires: %{python_module isodate} BuildRequires: %{python_module pyparsing} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} +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