automatic version update by autodist [release 57.2-1mamba;Fri Jan 27 2023]

This commit is contained in:
Automatic Build System 2024-01-06 10:42:49 +01:00
parent b3d439e335
commit 183fe2f999

View File

@ -1,93 +1,69 @@
%define pkgname weasyprint
Name: python-WeasyPrint Name: python-WeasyPrint
Version: 52.5 Version: 57.2
Release: 1mamba Release: 1mamba
Summary: A visual rendering engine for HTML and CSS that can export to PDF Summary: A visual rendering engine for HTML and CSS that can export to PDF
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.python.org/pypi/WeasyPrint URL: https://pypi.org/project/weasyprint/
Source: https://pypi.debian.net/WeasyPrint/WeasyPrint-%{version}.tar.gz Source: https://pypi.debian.net/weasyPrint/weasyprint-%{version}.tar.gz
#Source: https://pypi.debian.net/WeasyPrint/WeasyPrint-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
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)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python-pycparser
Requires: python-Pyphen
Requires: python-CairoSVG
Requires: python-cssselect
Requires: python-html5lib
Requires: python-six
Requires: python-cffi
Requires: python-tinycss
Requires: python-lxml
Requires: python-setuptools
Requires: python-pip
Requires: python-cairocffi
Requires: python >= %python_version
%description %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 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. 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. 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.
%if "%{?with_pyver}" %if 0%{?with_pyver}
%define pyver %{with_pyver} %pyver_package
%define pyappend py%{with_pyver}
%define __python %(rpm --eval %{__python%{pyver}})
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
%define python_version %(rpm --eval %{python%{with_pyver}_version})
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
%package py%{with_pyver}
Group: System/Libraries/Python
Summary: %{summary}
Requires: python-pycparser-%{?pyappend}
Requires: python-Pyphen-%{?pyappend}
Requires: python-CairoSVG-%{?pyappend}
Requires: python-cssselect-%{?pyappend}
Requires: python-html5lib-%{?pyappend}
Requires: python-six-%{?pyappend}
Requires: python-cffi-%{?pyappend}
Requires: python-tinycss-%{?pyappend}
Requires: python-lxml-%{?pyappend}
Requires: python-setuptools-%{?pyappend}
Requires: python-pip-%{?pyappend}
Requires: python-cairocffi-%{?pyappend}
%{py3_requires}
%description py%{with_pyver}
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.
%endif %endif
%prep %prep
%setup -q -n WeasyPrint-%{version} %setup -q -n weasyprint-%{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} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist %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
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/weasyprint*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE %doc LICENSE
%changelog %changelog
* 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
* Sat Apr 17 2021 Automatic Build System <autodist@mambasoft.it> 52.5-1mamba * Sat Apr 17 2021 Automatic Build System <autodist@mambasoft.it> 52.5-1mamba
- automatic version update by autodist - automatic version update by autodist