[packages/python3-rdflib] - python-rdflib.spec updated to 6.1.1 for python 3.7+
qboosh
qboosh at pld-linux.org
Sun Apr 3 21:20:47 CEST 2022
commit 8e49e804f2cdabe3dc9eb5326da624a7859459f9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 3 21:20:46 2022 +0200
- python-rdflib.spec updated to 6.1.1 for python 3.7+
python-rdflib.spec => python3-rdflib.spec | 111 +++++-------------------------
1 file changed, 17 insertions(+), 94 deletions(-)
---
diff --git a/python-rdflib.spec b/python3-rdflib.spec
similarity index 53%
rename from python-rdflib.spec
rename to python3-rdflib.spec
index 49c7bd9..48bec56 100644
--- a/python-rdflib.spec
+++ b/python3-rdflib.spec
@@ -1,58 +1,43 @@
#
# Conditional build:
%bcond_without doc # Sphinx documentation
-%bcond_with tests # unit tests (few failures as of 5.0.0)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-%bcond_without tools # package tools
+%bcond_with tests # unit tests (few failing as of 6.1.1)
%define module rdflib
-Summary: Python 2 library for working with RDF
-Summary(pl.UTF-8): Biblioteka Pythona 2 do pracy z RDF
-Name: python-%{module}
-# keep 5.x here for python2 support
-Version: 5.0.0
+Summary: Python 3 library for working with RDF
+Summary(pl.UTF-8): Biblioteka Pythona 3 do pracy z RDF
+Name: python3-%{module}
+Version: 6.1.1
Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://github.com/RDFLib/rdflib/releases
Source0: https://github.com/RDFLib/rdflib/archive/%{version}/%{module}-%{version}.tar.gz
-# Source0-md5: aaca854daef803da19010181eb99e3e1
+# Source0-md5: c47721e1a23adb089072ef374101e2ca
URL: https://rdflib.dev/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-doctest-ignore-unicode
-BuildRequires: python-html5lib
-BuildRequires: python-isodate
-BuildRequires: python-networkx
-BuildRequires: python-nose
-BuildRequires: python-pyparsing
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-doctest-ignore-unicode
+BuildRequires: python3-berkeleydb
BuildRequires: python3-html5lib
+%if "%{_ver_lt '%{py3_ver}' '3.8'}" == "1"
+BuildRequires: python3-importlib_metadata
+%endif
BuildRequires: python3-isodate
BuildRequires: python3-networkx
-BuildRequires: python3-nose
BuildRequires: python3-pyparsing
-BuildRequires: python3-six
-%endif
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-cov
+BuildRequires: python3-pytest-subtests
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 1.749
%if %{with doc}
BuildRequires: python3-sphinxcontrib-apidoc
-BuildRequires: sphinx-pdg >= 2.4
+BuildRequires: sphinx-pdg >= 4.1.2
%endif
-Requires: python-modules >= 1:2.6
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -70,26 +55,6 @@ parser/serializer RDF/XML, TripleStore, InformationStore oraz różne
backendy do przechowywania informacji. Jest rozwijana przez Daniela
Krecha z pomocą wielu współpracowników.
-%package -n python3-%{module}
-Summary: Python 3 library for working with RDF
-Summary(pl.UTF-8): Biblioteka Pythona 3 do pracy z RDF
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.3
-
-%description -n python3-%{module}
-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, a TripleStore, an InformationStore and various
-store backends. It is being developed by Daniel Krech along with the
-help of a number of contributors.
-
-%description -n python3-%{module} -l pl.UTF-8
-RDFLib to biblioteka Pythona do pracy z RDF - prostym, ale potężnym
-językiem do reprezentowania informacji. Biblioteka zawiera
-parser/serializer RDF/XML, TripleStore, InformationStore oraz różne
-backendy do przechowywania informacji. Jest rozwijana przez Daniela
-Krecha z pomocą wielu współpracowników.
-
%package apidocs
Summary: API documentation for Python rdflib module
Summary(pl.UTF-8): Dokumentacja API modułu Pythona rdflib
@@ -105,11 +70,7 @@ Dokumentacja API modułu Pythona rdflib.
Summary: Utilities from python-rdflib
Summary(pl.UTF-8): Narzędzia z pakietu python-rdflib
Group: Applications/File
-%if %{with python3}
Requires: python3-%{module} = %{version}-%{release}
-%else
-Requires: %{name} = %{version}-%{release}
-%endif
%description -n rdflib-tools
Utilities from python-rdflib.
@@ -121,13 +82,7 @@ Narzędzia z pakietu python-rdflib.
%setup -q -n %{module}-%{version}
%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
%py3_build %{?with_tests:test}
-%endif
%if %{with doc}
%{__make} -C docs html
@@ -136,50 +91,20 @@ Narzędzia z pakietu python-rdflib.
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-%if %{with python3} || %{without tools}
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
-%endif
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
%py3_install
install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%if %{without tools}
-%{__rm} $RPM_BUILD_ROOT%{_bindir}/*
-%endif
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc CHANGELOG.md CONTRIBUTORS LICENSE README.md
-%{py_sitescriptdir}/rdflib
-%{py_sitescriptdir}/rdflib-%{version}-py*.egg-info
-%{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGELOG.md CONTRIBUTORS LICENSE README.md
%{py3_sitescriptdir}/rdflib
%{py3_sitescriptdir}/rdflib-%{version}-py*.egg-info
%{_examplesdir}/python3-%{module}-%{version}
-%endif
%if %{with doc}
%files apidocs
@@ -187,7 +112,6 @@ rm -rf $RPM_BUILD_ROOT
%doc docs/_build/html/{_images,_modules,_static,apidocs,*.html,*.js}
%endif
-%if %{with tools}
%files -n rdflib-tools
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/csv2rdf
@@ -195,4 +119,3 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/rdfgraphisomorphism
%attr(755,root,root) %{_bindir}/rdfpipe
%attr(755,root,root) %{_bindir}/rdfs2dot
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-rdflib.git/commitdiff/8e49e804f2cdabe3dc9eb5326da624a7859459f9
More information about the pld-cvs-commit
mailing list