2024-01-06 10:42:49 +01:00
|
|
|
%define pkgname weasyprint
|
2024-01-06 10:42:49 +01:00
|
|
|
Name: python-WeasyPrint
|
2024-01-06 10:42:50 +01:00
|
|
|
Version: 58.0
|
2024-01-06 10:42:49 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A visual rendering engine for HTML and CSS that can export to PDF
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 10:42:49 +01:00
|
|
|
URL: https://pypi.org/project/weasyprint/
|
|
|
|
Source: https://pypi.debian.net/weasyPrint/weasyprint-%{version}.tar.gz
|
2024-01-06 10:42:49 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 10:42:49 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(cffi)
|
|
|
|
BuildRequires: python3.7dist(cssselect2)
|
|
|
|
BuildRequires: python3.7dist(fonttools)
|
|
|
|
BuildRequires: python3.7dist(html5lib)
|
|
|
|
BuildRequires: python3.7dist(pillow)
|
|
|
|
BuildRequires: python3.7dist(pydyf)
|
|
|
|
BuildRequires: python3.7dist(pyphen)
|
|
|
|
BuildRequires: python3.7dist(tinycss2)
|
2024-01-06 10:42:49 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
%description
|
|
|
|
WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing.
|
|
|
|
WeasyPrint is free software made available under a BSD license.
|
|
|
|
It is based on various libraries but *not* on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on.
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
2024-01-06 10:42:49 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 10:42:49 +01:00
|
|
|
%setup -q -n weasyprint-%{version}
|
2024-01-06 10:42:49 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 10:42:49 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
2024-01-06 10:42:49 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 10:42:49 +01:00
|
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
2024-01-06 10:42:49 +01:00
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
%if "%{?with_pyver}" != "3"
|
|
|
|
# Rename any conflicting file outside of python site packages tree
|
|
|
|
for f in %{_bindir}/weasyprint; do
|
|
|
|
mv %{buildroot}${f}{,-%{?pyappend}}
|
|
|
|
done
|
|
|
|
%endif
|
2024-01-06 10:42:49 +01:00
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
%files %{?pyappend}
|
2024-01-06 10:42:49 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 10:42:49 +01:00
|
|
|
%{_bindir}/weasyprint*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
|
|
%{python_sitelib}/%{pkgname}/*
|
2024-01-06 10:42:49 +01:00
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:42:50 +01:00
|
|
|
* Fri Feb 17 2023 Automatic Build System <autodist@mambasoft.it> 58.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Fri Jan 27 2023 Automatic Build System <autodist@mambasoft.it> 57.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Oct 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 56.1-1mamba
|
|
|
|
- update to 56.1
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Sat Apr 17 2021 Automatic Build System <autodist@mambasoft.it> 52.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Fri Mar 12 2021 Automatic Build System <autodist@mambasoft.it> 52.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Mon Feb 22 2021 Automatic Build System <autodist@mambasoft.it> 52.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Tue Dec 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 52.1-1mamba
|
|
|
|
- update to 52.1
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Wed Sep 09 2020 Automatic Build System <autodist@mambasoft.it> 51-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 48-1mamba
|
|
|
|
- update to 48
|
|
|
|
|
2024-01-06 10:42:49 +01:00
|
|
|
* Tue Jun 23 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.23-1mamba
|
|
|
|
- package created using the webbuild interface
|