]> git.pld-linux.org Git - packages/python-pisa.git/blob - python-pisa.spec
- make version test future proof
[packages/python-pisa.git] / python-pisa.spec
1 %define         module  pisa
2 Summary:        HTML/XML/CSS to PDF converter using the ReportLab toolkit
3 Summary(pl.UTF-8):      Konwerter formatów HTML/XML/CSS do PDF korzystający z narzędzi ReportLab
4 Name:           python-%{module}
5 Version:        3.0.33
6 Release:        5
7 License:        Apache v2.0
8 Group:          Libraries/Python
9 Source0:        http://pypi.python.org/packages/source/p/pisa/%{module}-%{version}.tar.gz
10 # Source0-md5:  e2040b12211303d065bc4ae2470d2700
11 Patch0:         reportlab3.patch
12 URL:            http://www.xhtml2pdf.com/
13 BuildRequires:  python-devel >= 1:2.5
14 BuildRequires:  python-html5lib
15 BuildRequires:  rpm-pythonprov
16 BuildRequires:  rpmbuild(macros) >= 1.710
17 BuildRequires:  sed >= 4.0
18 Requires:       python
19 Requires:       python-PIL
20 Requires:       python-ReportLab >= 2.2
21 Requires:       python-html5lib
22 Requires:       python-pyPdf
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 HTML/XML/CSS to PDF converter using the ReportLab toolkit.
28
29 %description -l pl.UTF-8
30 Konwerter formatów HTML/XML/CSS do PDF korzystający z narzędzi
31 ReportLab.
32
33 %prep
34 %setup -q -n %{module}-%{version}
35 %patch0 -p1
36
37 %build
38 %py_build
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 %py_install
43
44 install -d $RPM_BUILD_ROOT%{_bindir}
45 cp -p pisa.py $RPM_BUILD_ROOT%{_bindir}
46 sed -i 's@%{_prefix}/local/bin/python.*$@%{_bindir}/python@' $RPM_BUILD_ROOT%{_bindir}/pisa.py
47
48 %py_postclean
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc CHANGELOG.txt README.txt
56 %attr(755,root,root) %{_bindir}/pisa
57 %attr(755,root,root) %{_bindir}/pisa.py
58 %attr(755,root,root) %{_bindir}/xhtml2pdf
59 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
60 %{py_sitescriptdir}/ho
61 %{py_sitescriptdir}/sx
This page took 0.068721 seconds and 4 git commands to generate.