From 0147a83e8e5e95f35e7f9912169d4dfb9515a75a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:32:56 +0100 Subject: [PATCH] obsolete python-rdflib-py310 [release 6.2.0-3mamba;Tue Dec 26 2023] --- python-rdflib.spec | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/python-rdflib.spec b/python-rdflib.spec index bfe962a..9301512 100644 --- a/python-rdflib.spec +++ b/python-rdflib.spec @@ -1,6 +1,7 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-rdflib Version: 6.2.0 -Release: 2mamba +Release: 3mamba Summary: A Python library for working with RDF, a simple yet powerful language for representing information. Group: System/Libraries/Python Vendor: openmamba @@ -11,19 +12,23 @@ Source: https://pypi.debian.net/rdflib/rdflib-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython311-devel +BuildRequires: python3.11dist(isodate) +BuildRequires: python3.11dist(pyparsing) +BuildRequires: python3.11dist(setuptools) ## AUTOBUILDREQ-END BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: libpython3-devel -Requires: python-isodate -Requires: python >= %python_version %description %{summary}. %if 0%{?with_pyver} +%if "%{with_pyver}" == "3" %define py_requires_append \ Requires: python-isodate%{?pyappend:-%pyappend} \ -Obsoletes: python-rdflib <= 5.0.0-1mamba +Obsoletes: python-rdflib <= 5.0.0-1mamba \ +Obsoletes: python-rdflib-py3 <= 6.2.0-2mamba +%endif %pyver_package %endif @@ -31,24 +36,35 @@ Obsoletes: python-rdflib <= 5.0.0-1mamba %setup -q -n rdflib-%{version} %build -CFLAGS="%{optflags}" %{__python} setup.py build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ - --single-version-externally-managed \ - --record=%{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl -#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/{csv2rdf,rdf2dot,rdfgraphisomorphism,rdfpipe,rdfs2dot}; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +%endif -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) +%{_bindir}/csv2rdf* +%{_bindir}/rdf2dot* +%{_bindir}/rdfgraphisomorphism* +%{_bindir}/rdfpipe* +%{_bindir}/rdfs2dot* +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* %changelog +* Tue Dec 26 2023 Silvan Calarco 6.2.0-3mamba +- obsolete python-rdflib-py310 + * Tue Sep 26 2023 Automatic Build System 6.2.0-2mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba