update to 0.101 [release 0.101-1mamba;Sun Oct 01 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 17:30:12 +01:00
parent cd44de7ee5
commit 0b4e7682fe

View File

@ -1,6 +1,6 @@
Name: rst2pdf
Version: 0.98
Release: 2mamba
Version: 0.101
Release: 1mamba
Summary: Convert reStructuredText to PDF via ReportLab
Group: System/Libraries/Python
Vendor: openmamba
@ -11,17 +11,17 @@ Source: https://github.com/rst2pdf/rst2pdf.git/%{version}/rst2pdf-%{versi
Patch: rst2pdf-0.16-docutils_0.8.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(docutils)
BuildRequires: python3.7dist(importlib-metadata)
BuildRequires: python3.7dist(jinja2)
BuildRequires: python3.7dist(packaging)
BuildRequires: python3.7dist(pygments)
BuildRequires: python3.7dist(reportlab)
BuildRequires: python3.7dist(setuptools)
BuildRequires: python3.7dist(smartypants)
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(docutils)
BuildRequires: python3.11dist(importlib-metadata)
BuildRequires: python3.11dist(jinja2)
BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(pygments)
BuildRequires: python3.11dist(pyyaml)
BuildRequires: python3.11dist(reportlab)
BuildRequires: python3.11dist(smartypants)
## AUTOBUILDREQ-END
Requires: python3 >= %python_version
Requires: python3 >= 3.11
Requires: python-reportlab-py3
BuildArch: noarch
@ -33,19 +33,12 @@ Convert reStructuredText to PDF via ReportLab.
#%patch -p1
%build
%{__python3} setup.py build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%{__python3} -m build --wheel --no-isolation
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python3_inc}/python \
--install-lib=%{python3_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%{__python3} -m installer --destdir="%{buildroot}" dist/*.whl
#install -D -m 644 doc/rst2pdf.1 \
# %{buildroot}/%{_mandir}/man1/rst2pdf.1
@ -54,13 +47,22 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%files
%defattr(-,root,root)
%dir %{python3_sitearch}/rst2pdf-*-py*.egg-info
%{python3_sitearch}/rst2pdf-*-py*.egg-info/*
%{_bindir}/rst2pdf
%dir %{python3_sitelib}/rst2pdf-%{version}.dist-info
%{python3_sitelib}/rst2pdf-%{version}.dist-info/*
%dir %{python3_sitelib}/rst2pdf
%{python3_sitelib}/rst2pdf/*
%doc LICENSE.txt
%changelog
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.101-1mamba
- update to 0.101
* Sun Oct 01 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.98-3mamba
- rebuilt with python3 == 3.11
* Sun Oct 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.98-2mamba
- rebuilt with distdeps