obsolete python-rdflib-py310 [release 6.2.0-3mamba;Tue Dec 26 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 16:32:56 +01:00
parent b060d85ccf
commit 0147a83e8e

View File

@ -1,6 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-rdflib Name: python-rdflib
Version: 6.2.0 Version: 6.2.0
Release: 2mamba Release: 3mamba
Summary: A Python library for working with RDF, a simple yet powerful language for representing information. Summary: A Python library for working with RDF, a simple yet powerful language for representing information.
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
@ -11,19 +12,23 @@ Source: https://pypi.debian.net/rdflib/rdflib-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel BuildRequires: libpython311-devel
BuildRequires: python3.11dist(isodate)
BuildRequires: python3.11dist(pyparsing)
BuildRequires: python3.11dist(setuptools)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: python3-devel >= 3.11.5-3mamba
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
Requires: python-isodate
Requires: python >= %python_version
%description %description
%{summary}. %{summary}.
%if 0%{?with_pyver} %if 0%{?with_pyver}
%if "%{with_pyver}" == "3"
%define py_requires_append \ %define py_requires_append \
Requires: python-isodate%{?pyappend:-%pyappend} \ 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 %pyver_package
%endif %endif
@ -31,24 +36,35 @@ Obsoletes: python-rdflib <= 5.0.0-1mamba
%setup -q -n rdflib-%{version} %setup -q -n rdflib-%{version}
%build %build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
#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) %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 %changelog
* Tue Dec 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 6.2.0-3mamba
- obsolete python-rdflib-py310
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 6.2.0-2mamba * Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 6.2.0-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba