[packages/python-ReportLab] - updated to 3.0 (supports python 2.7+/3.3+)
qboosh
qboosh at pld-linux.org
Sat Dec 27 20:19:36 CET 2014
commit 3000cab0470e7dac06de6c953b422319b2a8938e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 27 20:20:43 2014 +0100
- updated to 3.0 (supports python 2.7+/3.3+)
python-ReportLab.spec | 62 +++++++++++++++++++++++++++++----------------------
1 file changed, 35 insertions(+), 27 deletions(-)
---
diff --git a/python-ReportLab.spec b/python-ReportLab.spec
index d8722aa..e7cbb3f 100644
--- a/python-ReportLab.spec
+++ b/python-ReportLab.spec
@@ -1,8 +1,9 @@
#
# Conditional build:
-%bcond_without doc
+%bcond_without doc # PDF documentation
# TODO:
+# - python3 (3.3+) package
# - use system fonts:
# /usr/lib/python2.7/site-packages/reportlab/fonts/VeraBI.ttf
# - Check if docs/*.pdf is generated using _installed_ ReportLab
@@ -13,22 +14,25 @@
Summary: Python library for generating PDFs and graphics
Summary(pl.UTF-8): Moduły Pythona do generowania PDF-ów oraz grafik
Name: python-%{module}
-Version: 2.5
+Version: 3.0
Release: 1
-License: distributable
+License: BSD-like
Group: Libraries/Python
-Source0: http://www.reportlab.org/ftp/reportlab-%{version}.tar.gz
-# Source0-md5: cdf8b87a6cf1501de1b0a8d341a217d3
+#Source0Download: https://bitbucket.org/rptlab/reportlab/downloads
+Source0: https://bitbucket.org/rptlab/reportlab/get/ReportLab_3_0.tar.bz2
+# Source0-md5: 2c902ed7f6bf029cd0946858f0b2c07e
Source1: http://www.reportlab.com/ftp/fonts/pfbfer.zip
# Source1-md5: 35d20e26490cb2a8646fab6276ac6a4c
Patch0: %{name}-setup.patch
URL: http://www.reportlab.org/
+BuildRequires: freetype-devel >= 2
+BuildRequires: libart_lgpl-devel >= 2
%{?with_doc:BuildRequires: python-PIL}
-BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-devel >= 1:2.7
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: unzip
-%pyrequires_eq python
+Requires: python >= 1:2.7
Requires: python-PIL
Obsoletes: ReportLab
Obsoletes: python-ReportLab-barcode
@@ -70,7 +74,7 @@ Examples for ReportLab.
Przykłady do biblioteki ReportLab.
%prep
-%setup -q -n reportlab-%{version}
+%setup -q -n rptlab-reportlab-6382a792db9e
%{__unzip} -qq -d src/reportlab/fonts %{SOURCE1}
@@ -98,10 +102,7 @@ install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/reportlab
cp -a demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp -a tools/pythonpoint/demos $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/pythonpoint-demos
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/reportlab/demos
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/reportlab/docs
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/reportlab/graphics/samples
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/reportlab/test
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/reportlab/graphics/samples
%py_postclean
@@ -110,35 +111,42 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README.txt LICENSE.txt %{?with_doc:docs/*.pdf}
+%doc CHANGES.txt LICENSE.txt README.txt %{?with_doc:docs/reportlab-userguide.pdf}
%attr(755,root,root) %{_bindir}/pythonpoint.py
-%attr(755,root,root) %{py_sitedir}/_renderPM.so
-%attr(755,root,root) %{py_sitedir}/_rl_accel.so
-%attr(755,root,root) %{py_sitedir}/pyHnj.so
-%attr(755,root,root) %{py_sitedir}/sgmlop.so
%dir %{py_sitescriptdir}/reportlab
%dir %{py_sitedir}/reportlab
-%if "%{py_ver}" > "2.4"
%{py_sitedir}/reportlab-%{version}-py*.egg-info
-%endif
%{py_sitedir}/reportlab/*.py[co]
%dir %{py_sitedir}/reportlab/fonts
-%{py_sitedir}/reportlab/fonts/*.afm
-%{py_sitedir}/reportlab/fonts/*.pfb
-%{py_sitedir}/reportlab/fonts/*.sfd
-%{py_sitedir}/reportlab/fonts/*.ttf
-%{py_sitedir}/reportlab/fonts/*.txt
+%{py_sitedir}/reportlab/fonts/00readme.txt
+# Dark Garden font (GPL v2+)
+%{py_sitedir}/reportlab/fonts/DarkGardenMK.afm
+%{py_sitedir}/reportlab/fonts/DarkGardenMK.pfb
+%{py_sitedir}/reportlab/fonts/DarkGarden.sfd
+%{py_sitedir}/reportlab/fonts/DarkGarden-*.txt
+# Bitstream Vera font
+%{py_sitedir}/reportlab/fonts/Vera*.ttf
+%{py_sitedir}/reportlab/fonts/bitstream-vera-license.txt
+# Adobe fonts
+%{py_sitedir}/reportlab/fonts/_a*____.pfb
+%{py_sitedir}/reportlab/fonts/_e*____.pfb
+%{py_sitedir}/reportlab/fonts/co*____.pfb
+%{py_sitedir}/reportlab/fonts/sy______.pfb
+%{py_sitedir}/reportlab/fonts/z?______.pfb
%dir %{py_sitedir}/reportlab/graphics
+%attr(755,root,root) %{py_sitedir}/reportlab/graphics/_renderPM.so
%{py_sitedir}/reportlab/graphics/*.py[co]
-%dir %{py_sitedir}/reportlab/graphics/charts
-%{py_sitedir}/reportlab/graphics/charts/*.py[co]
%dir %{py_sitedir}/reportlab/graphics/barcode
%{py_sitedir}/reportlab/graphics/barcode/*.py[co]
+%dir %{py_sitedir}/reportlab/graphics/charts
+%{py_sitedir}/reportlab/graphics/charts/*.py[co]
%dir %{py_sitedir}/reportlab/graphics/widgets
%{py_sitedir}/reportlab/graphics/widgets/*.py[co]
%dir %{py_sitedir}/reportlab/lib
+%attr(755,root,root) %{py_sitedir}/reportlab/lib/_rl_accel.so
+%attr(755,root,root) %{py_sitedir}/reportlab/lib/pyHnj.so
%{py_sitedir}/reportlab/lib/*.py[co]
-%{py_sitedir}/reportlab/lib/*.mashed
+%{py_sitedir}/reportlab/lib/hyphen.mashed
%dir %{py_sitedir}/reportlab/pdfbase
%{py_sitedir}/reportlab/pdfbase/*.py[co]
%dir %{py_sitedir}/reportlab/pdfgen
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ReportLab.git/commitdiff/3000cab0470e7dac06de6c953b422319b2a8938e
More information about the pld-cvs-commit
mailing list