|
|
e7e911f |
%global modname weasyprint
|
|
|
830725b |
%global srcname weasyprint
|
|
|
e7e911f |
|
|
|
3f8979f |
Name: weasyprint
|
|
|
811a114 |
Version: 56.1
|
|
|
811a114 |
Release: 1%{?dist}
|
|
|
3f8979f |
Summary: Utility to render HTML and CSS to PDF
|
|
|
e7e911f |
|
|
|
3f8979f |
License: BSD
|
|
|
e7e911f |
URL: https://weasyprint.org/
|
|
|
53319ba |
Source0: %pypi_source
|
|
|
e7e911f |
Patch0: %{name}-disable-flake8-isort-for-pytest.patch
|
|
|
830725b |
Patch1: %{name}-remove-dependency-coverage-toml.patch
|
|
|
3f8979f |
|
|
|
e7e911f |
BuildArch: noarch
|
|
|
e7e911f |
|
|
|
e7e911f |
BuildRequires: python3-devel
|
|
|
830725b |
BuildRequires: pyproject-rpm-macros
|
|
|
830725b |
# used as "build-backend" in pyproject.toml but not detected by Fedora's
|
|
|
830725b |
# macros to generate build requirements
|
|
|
830725b |
BuildRequires: python3-flit
|
|
|
e7e911f |
# requirements for testing
|
|
|
830725b |
BuildRequires: dejavu-fonts-all
|
|
|
830725b |
BuildRequires: ghostscript
|
|
|
830725b |
# https://doc.courtbouillon.org/weasyprint/latest/first_steps.html
|
|
|
830725b |
BuildRequires: pango >= 1.44.0
|
|
|
e7e911f |
|
|
|
e7e911f |
Requires: python3-weasyprint = %{version}-%{release}
|
|
|
e7e911f |
|
|
|
e7e911f |
|
|
|
3f8979f |
%description
|
|
|
3f8979f |
WeasyPrint can render HTML and CSS to PDF. It aims to support web standards
|
|
|
3f8979f |
for printing.
|
|
|
3f8979f |
|
|
|
1ab23b8 |
%package -n python3-weasyprint
|
|
|
1ab23b8 |
Summary: Python library to render HTML and CSS to PDF
|
|
|
830725b |
Requires: pango >= 1.44.0
|
|
|
e7e911f |
# other Python dependencies will be picked up automatically
|
|
|
1ab23b8 |
# Weasyprint will fail if no fonts are installed. There's no way to know
|
|
|
1ab23b8 |
# what fonts the user would actually want, but require a few common ones
|
|
|
1ab23b8 |
# that might be useful:
|
|
|
1ab23b8 |
Requires: dejavu-sans-fonts
|
|
|
1ab23b8 |
Requires: dejavu-sans-mono-fonts
|
|
|
1ab23b8 |
Requires: dejavu-serif-fonts
|
|
|
1ab23b8 |
|
|
|
1ab23b8 |
%description -n python3-weasyprint
|
|
|
1ab23b8 |
The WeasyPrint Python library is a rendering engine for HTML and CSS that
|
|
|
1ab23b8 |
can export to PDF. It aims to support web standards for printing.
|
|
|
1ab23b8 |
|
|
|
3f8979f |
%prep
|
|
|
830725b |
%autosetup -p1 -n %{srcname}-%{version}
|
|
|
830725b |
|
|
|
830725b |
%generate_buildrequires
|
|
|
830725b |
%pyproject_buildrequires -r -x test
|
|
|
1ab23b8 |
|
|
|
3f8979f |
%build
|
|
|
830725b |
%pyproject_wheel
|
|
|
1ab23b8 |
|
|
|
3f8979f |
%install
|
|
|
830725b |
%pyproject_install
|
|
|
e7e911f |
|
|
|
e7e911f |
%check
|
|
|
830725b |
pytest-3
|
|
|
e7e911f |
# do not ship tests
|
|
|
e7e911f |
rm -rf %{buildroot}%{python3_sitelib}/%{modname}/tests
|
|
|
1ab23b8 |
|
|
|
3f8979f |
%files
|
|
|
9bfdc59 |
%license LICENSE
|
|
|
e7e911f |
%doc README.rst
|
|
|
3f8979f |
%{_bindir}/weasyprint
|
|
|
3f8979f |
|
|
|
1ab23b8 |
%files -n python3-weasyprint
|
|
|
9bfdc59 |
%license LICENSE
|
|
|
e7e911f |
%doc README.rst
|
|
|
830725b |
%{python3_sitelib}/%{modname}-%{version}.dist-info/
|
|
|
e7e911f |
%{python3_sitelib}/%{modname}/
|
|
|
1ab23b8 |
|
|
|
3f8979f |
%changelog
|
|
|
811a114 |
* Mon Jul 25 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 56.1-1
|
|
|
811a114 |
- update to 56.1
|
|
|
811a114 |
|
|
|
3d709d6 |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 56.0-2
|
|
|
3d709d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
3d709d6 |
|
|
|
dcd5d6e |
* Thu Jul 07 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 56.0-1
|
|
|
dcd5d6e |
- update to 56.0
|
|
|
dcd5d6e |
|
|
|
c58cab5 |
* Mon Jun 20 2022 Python Maint <python-maint@redhat.com> - 55.0-2
|
|
|
c58cab5 |
- Rebuilt for Python 3.11
|
|
|
c58cab5 |
|
|
|
e961137 |
* Thu May 12 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 55.0-1
|
|
|
e961137 |
- update to 55.0
|
|
|
e961137 |
|
|
|
eff0bc9 |
* Mon Apr 04 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.3-1
|
|
|
eff0bc9 |
- update to 54.3
|
|
|
eff0bc9 |
|
|
|
7b94de7 |
* Tue Mar 01 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.2-1
|
|
|
7b94de7 |
- update to 54.2
|
|
|
7b94de7 |
|
|
|
ddf1f4d |
* Mon Jan 31 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.1-1
|
|
|
ddf1f4d |
- update to 54.1
|
|
|
ddf1f4d |
|
|
|
3faf830 |
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 54.0-2
|
|
|
3faf830 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
3faf830 |
|
|
|
c71f421 |
* Sat Jan 08 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 54.0-1
|
|
|
c71f421 |
- update to 54.0
|
|
|
c71f421 |
|
|
|
822f0a1 |
* Sun Nov 14 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.4-1
|
|
|
822f0a1 |
- update to 53.4
|
|
|
822f0a1 |
|
|
|
c06d458 |
* Fri Sep 10 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.3-1
|
|
|
c06d458 |
- update to 53.3
|
|
|
c06d458 |
|
|
|
7cad70b |
* Fri Aug 27 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.2-1
|
|
|
7cad70b |
- update to 53.2
|
|
|
7cad70b |
|
|
|
fba816b |
* Sun Aug 22 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.1-1
|
|
|
fba816b |
- update to 53.1
|
|
|
fba816b |
|
|
|
830725b |
* Sun Aug 01 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 53.0-1
|
|
|
830725b |
- update to 53.0
|
|
|
830725b |
|
|
|
29f5801 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 52.5-3
|
|
|
29f5801 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
29f5801 |
|
|
|
9da0b0a |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 52.5-2
|
|
|
9da0b0a |
- Rebuilt for Python 3.10
|
|
|
9da0b0a |
|
|
|
dca677b |
* Sun Apr 18 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.5-1
|
|
|
dca677b |
- update to 52.5
|
|
|
dca677b |
|
|
|
6f57ab8 |
* Tue Mar 23 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.4-2
|
|
|
6f57ab8 |
- add patch for pango 1.48.3
|
|
|
6f57ab8 |
|
|
|
e4165a5 |
* Fri Mar 12 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.4-1
|
|
|
e4165a5 |
- update to 52.4
|
|
|
e4165a5 |
|
|
|
50c5196 |
* Tue Mar 02 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 52.3-1
|
|
|
50c5196 |
- update to 52.3
|
|
|
50c5196 |
|
|
|
9ba4fd0 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 52.2-2
|
|
|
9ba4fd0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
9ba4fd0 |
|
|
|
bc55265 |
* Sun Dec 6 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 52.2-1
|
|
|
bc55265 |
- update to 52.2
|
|
|
bc55265 |
|
|
|
9d2bc42 |
* Sun Nov 08 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 52.1-1
|
|
|
9d2bc42 |
- update to 52.1
|
|
|
9d2bc42 |
|
|
|
59cf9c7 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 51-5
|
|
|
59cf9c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
59cf9c7 |
|
|
|
95e2126 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 51-4
|
|
|
95e2126 |
- Rebuilt for Python 3.9
|
|
|
95e2126 |
|
|
|
da8cef9 |
* Wed Mar 04 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 51-3
|
|
|
da8cef9 |
- drop runtime requirement on "dejavu-fonts-common" (#1810150)
|
|
|
da8cef9 |
|
|
|
3a66fa6 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 51-2
|
|
|
3a66fa6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
3a66fa6 |
|
|
|
f93d3ce |
* Wed Dec 25 2019 Felix Schwarz <fschwarz@fedoraproject.org> 51-1
|
|
|
f93d3ce |
- update to upstream version 51
|
|
|
f93d3ce |
|
|
|
e7e911f |
* Sun Dec 01 2019 Felix Schwarz <fschwarz@fedoraproject.org> 50-1
|
|
|
e7e911f |
- update to new upstream version
|
|
|
e7e911f |
|
|
|
a7d945c |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.39-5
|
|
|
a7d945c |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
a7d945c |
|
|
|
3f4dac5 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.39-4
|
|
|
3f4dac5 |
- Rebuilt for Python 3.8
|
|
|
3f4dac5 |
|
|
|
72c252f |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-3
|
|
|
72c252f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
72c252f |
|
|
|
5ded8ad |
* Tue May 28 2019 Felix Schwarz <fschwarz@fedoraproject.org> 0.39-2
|
|
|
5ded8ad |
- avoid dependency on Python 3.3
|
|
|
d1a9656 |
- require python3-xcffib directly (#1685654)
|
|
|
5ded8ad |
|
|
|
56ad89e |
* Tue Apr 30 2019 Eric Smith <brouhaha@fedoraproject.org> 0.39-1
|
|
|
56ad89e |
- Update to newer (but not latest) upstream.
|
|
|
56ad89e |
|
|
|
9bfdc59 |
* Tue Apr 30 2019 Eric Smith <brouhaha@fedoraproject.org> 0.22-16
|
|
|
9bfdc59 |
- Update requirements, use license macro, and other minor changes from
|
|
|
9bfdc59 |
Felix Schwarz <fschwarz@fedoraproject.org>.
|
|
|
9bfdc59 |
- Use better github tarball naming.
|
|
|
9bfdc59 |
|
|
|
d25273f |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-15
|
|
|
d25273f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
d25273f |
|
|
|
80c2052 |
* Tue Oct 09 2018 Miro Hrončok <mhroncok@redhat.com> - 0.22-14
|
|
|
80c2052 |
- Remove python2 subpackage (#1631306)
|
|
|
80c2052 |
|
|
|
8e1d271 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-13
|
|
|
8e1d271 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
8e1d271 |
|
|
|
d042e72 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.22-12
|
|
|
d042e72 |
- Rebuilt for Python 3.7
|
|
|
d042e72 |
|
|
|
0691fb1 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-11
|
|
|
0691fb1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0691fb1 |
|
|
|
2cb897c |
* Mon Feb 05 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.22-10
|
|
|
2cb897c |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
2cb897c |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
2cb897c |
|
|
|
db8fbd1 |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22-9
|
|
|
db8fbd1 |
- Python 2 binary package renamed to python2-weasyprint
|
|
|
db8fbd1 |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
db8fbd1 |
|
|
|
24dff25 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-8
|
|
|
24dff25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
24dff25 |
|
|
|
37fd8fb |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-7
|
|
|
37fd8fb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
37fd8fb |
|
|
|
58e9f56 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.22-6
|
|
|
58e9f56 |
- Rebuild for Python 3.6
|
|
|
58e9f56 |
|
|
|
820d890 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
|
|
|
820d890 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
820d890 |
|
|
|
f6753ff |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-4
|
|
|
f6753ff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
f6753ff |
|
|
|
5767a49 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
|
|
|
5767a49 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
5767a49 |
|
|
|
7768b68 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
|
|
|
7768b68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7768b68 |
|
|
|
29a89e8 |
* Thu Aug 28 2014 Eric Smith <brouhaha@fedoraproject.org> 0.22-1
|
|
|
9bfdc59 |
- Update to latest upstream.
|
|
|
29a89e8 |
- No Python 3 in EL7.
|
|
|
29a89e8 |
|
|
|
6fccdc3 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-5
|
|
|
6fccdc3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
6fccdc3 |
|
|
|
4607b87 |
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.21-4
|
|
|
4607b87 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
4607b87 |
|
|
|
29a89e8 |
* Thu Mar 20 2014 Eric Smith <brouhaha@fedoraproject.org> 0.21-3
|
|
|
1ab23b8 |
- Add Python 3 support.
|
|
|
1ab23b8 |
- Require python-html5lib 0.999, which has epoch 1 because
|
|
|
1ab23b8 |
that is newer than upstream 1.0b2.
|
|
|
1ab23b8 |
|
|
|
29a89e8 |
* Fri Mar 14 2014 Eric Smith <brouhaha@fedoraproject.org> 0.21-2
|
|
|
b9b295c |
- Add some missing Requires (#1076734).
|
|
|
b9b295c |
|
|
|
29a89e8 |
* Mon Mar 10 2014 Eric Smith <brouhaha@fedoraproject.org> 0.21-1
|
|
|
70334df |
- Update to lastest upstream.
|
|
|
70334df |
|
|
|
29a89e8 |
* Sun Jul 28 2013 Eric Smith <brouhaha@fedoraproject.org> 0.19.2-3
|
|
|
3f8979f |
- Remove /usr/bin/env from Python script shebang lines.
|
|
|
3f8979f |
|
|
|
29a89e8 |
* Sun Jul 21 2013 Eric Smith <brouhaha@fedoraproject.org> 0.19.2-2
|
|
|
3f8979f |
- Fixed dependencies.
|
|
|
3f8979f |
|
|
|
29a89e8 |
* Sat Jul 20 2013 Eric Smith <brouhaha@fedoraproject.org> 0.19.2-1
|
|
|
3f8979f |
- initial version
|