Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| a6fbe6ffb5 |
3 changed files with 93 additions and 0 deletions
9
.gitignore
vendored
9
.gitignore
vendored
|
|
@ -0,0 +1,9 @@
|
|||
/v0.19.2.tar.gz
|
||||
/v0.21.tar.gz
|
||||
/v0.22.tar.gz
|
||||
/WeasyPrint-*
|
||||
/WeasyPrint-*.tar.gz
|
||||
/weasyprint-*.tar.gz
|
||||
/*.src.rpm
|
||||
/results_weasyprint
|
||||
/weasyprint-??.?
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
SHA512 (weasyprint-62.3.tar.gz) = c563019aac075d0f55a153483719a5ea1dd4dced8bf281aeb1c5ccb65b8591e883ea09ca86757073b10a4dd9dc2d718df83ff5913cd5b9ed703fb5cf71bf7fbf
|
||||
83
weasyprint.spec
Normal file
83
weasyprint.spec
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
%global modname weasyprint
|
||||
%global srcname weasyprint
|
||||
|
||||
Name: weasyprint
|
||||
Version: 62.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Utility to render HTML and CSS to PDF
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://weasyprint.org/
|
||||
Source0: %pypi_source
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
# used as "build-backend" in pyproject.toml but not detected by Fedora's
|
||||
# macros to generate build requirements
|
||||
BuildRequires: python3dist(flit-core)
|
||||
# requirements for testing
|
||||
BuildRequires: dejavu-sans-fonts
|
||||
BuildRequires: dejavu-sans-mono-fonts
|
||||
BuildRequires: dejavu-serif-fonts
|
||||
BuildRequires: ghostscript
|
||||
# https://doc.courtbouillon.org/weasyprint/latest/first_steps.html
|
||||
BuildRequires: pango >= 1.44.0
|
||||
BuildRequires: python3dist(pytest)
|
||||
BuildRequires: python3dist(pytest-xdist)
|
||||
|
||||
Requires: python3-weasyprint = %{version}-%{release}
|
||||
|
||||
|
||||
%description
|
||||
WeasyPrint can render HTML and CSS to PDF. It aims to support web standards
|
||||
for printing.
|
||||
|
||||
%package -n python3-weasyprint
|
||||
Summary: Python library to render HTML and CSS to PDF
|
||||
Requires: pango >= 1.44.0
|
||||
# other Python dependencies will be picked up automatically
|
||||
# Weasyprint will fail if no fonts are installed. There's no way to know
|
||||
# what fonts the user would actually want, but require a few common ones
|
||||
# that might be useful:
|
||||
Requires: dejavu-sans-fonts
|
||||
Requires: dejavu-sans-mono-fonts
|
||||
Requires: dejavu-serif-fonts
|
||||
|
||||
%description -n python3-weasyprint
|
||||
The WeasyPrint Python library is a rendering engine for HTML and CSS that
|
||||
can export to PDF. It aims to support web standards for printing.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{srcname}-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
|
||||
%check
|
||||
%pytest -n auto
|
||||
# do not ship tests
|
||||
rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{_bindir}/weasyprint
|
||||
|
||||
%files -n python3-weasyprint
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
%{python3_sitelib}/%{modname}-%{version}.dist-info/
|
||||
%{python3_sitelib}/%{modname}/
|
||||
|
||||
%changelog
|
||||
* Fri Jul 12 2024 Felix Schwarz <fschwarz@fedoraproject.org> - 62.3-1
|
||||
- initial package for EPEL 9
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue