obsolete python-rdflib-py310 [release 6.2.0-3mamba;Tue Dec 26 2023]
This commit is contained in:
parent
b060d85ccf
commit
0147a83e8e
@ -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 <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
|
||||
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user