LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File weasyprint.spec of Package python-weasyprint (Project home:lenovo-lico:lico-dep:5.1:el6)

Name:           weasyprint
Version:        0.42.2
Release:        1%{?dist}
Group:          Applications/File
Summary:        Utility to render HTML and CSS to PDF
License:        BSD
URL:            http://weasyprint.org/
BuildArch:      noarch
Source0:        https://github.com/Kozea/WeasyPrint/archive/v%{version}.tar.gz

BuildRequires:  python27-devel
BuildRequires:  python27-setuptools

WeasyPrint can render HTML and CSS to PDF. It aims to support web standards
for printing.

%package -n python27-weasyprint
Group:          Development/Libraries
Summary:        Python library to render HTML and CSS to PDF
Requires:       python27-setuptools
Requires:       python27-pyphen >= 0.8
Requires:       python27-cairocffi >= 0.5
Requires:       python27-cffi >= 0.6
Requires:       python27-cssselect2 >= 0.1
Requires:       python27-html5lib >= 0.999999999
Requires:       python27-pdfrw >= 0.4
Requires:       python27-tinycss2 >= 0.5
Requires:       python27-cairosvg >= 1.0.20
Requires:       cairo
Requires:       pango
# 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-fonts-common
Requires:       dejavu-sans-fonts
Requires:       dejavu-sans-mono-fonts
Requires:       dejavu-serif-fonts

%description -n python27-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.

%setup -q -n WeasyPrint-%{version}


%{__mv} %{buildroot}%{_bindir}/weasyprint %{buildroot}%{_bindir}/weasyprint-2.7

%files -n python27-weasyprint

* Sat Feb 24 2018 Yunfei Shi <shiyf2@lenovo.com> - 0.42.2-1
- Upgrade to 0.42.2

* Wed Jan 17 2018 Yunfei Shi <shiyf2@lenovo.com> - 0.42-1
- Initial package.