packages: python-ReportLab/python-ReportLab.spec - pass CC to python build ...
glen
glen at pld-linux.org
Tue Feb 8 09:01:41 CET 2011
Author: glen Date: Tue Feb 8 08:01:42 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- pass CC to python build
- download .pfb fonts ourselves, instead letting setup.py doing it
---- Files affected:
packages/python-ReportLab:
python-ReportLab.spec (1.52 -> 1.53)
---- Diffs:
================================================================
Index: packages/python-ReportLab/python-ReportLab.spec
diff -u packages/python-ReportLab/python-ReportLab.spec:1.52 packages/python-ReportLab/python-ReportLab.spec:1.53
--- packages/python-ReportLab/python-ReportLab.spec:1.52 Sat Nov 13 01:21:13 2010
+++ packages/python-ReportLab/python-ReportLab.spec Tue Feb 8 09:01:33 2011
@@ -1,22 +1,28 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without doc
+
# TODO:
# - use system fonts:
# /usr/lib/python2.7/site-packages/reportlab/fonts/VeraBI.ttf
# - Check if docs/*.pdf is generated using _installed_ ReportLab
# so build may fail if ReportLab is not installed on builder
-%bcond_without doc
-#
+# - Standard T1 font curves (source1) maybe should be packaged in other package?
+
%define module ReportLab
%define fversion %(echo %{version} |tr . _)
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.4
-Release: 5
+Release: 6
License: distributable
Group: Libraries/Python
Source0: http://www.reportlab.org/ftp/ReportLab_%{fversion}.tar.gz
# Source0-md5: e6dc4b0fbfb6814f7777e5960774cb5d
+Source1: http://www.reportlab.com/ftp/fonts/pfbfer.zip
+# Source1-md5: 9042d7091298313c9a8d87e1a30ac2c5
Patch0: %{name}-setup.patch
URL: http://www.reportlab.org/
%{?with_doc:BuildRequires: python-PIL}
@@ -67,23 +73,26 @@
%prep
%setup -q -n ReportLab_%{fversion}
+%{__unzip} -qq -d src/reportlab/fonts %{SOURCE1}
+
%build
-CFLAGS="%{rpmcflags}"; export CFLAGS
-python setup.py build
+CC="%{__cc}" \
+CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
%if %{with doc}
cd docs
-PYTHONPATH=$(pwd)/../src python genAll.py
+PYTHONPATH=$(pwd)/../src %{__python} genAll.py
cd ..
%endif
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install \
+%{__python} setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
-install tools/pythonpoint/pythonpoint.py $RPM_BUILD_ROOT%{_bindir}
+install -p tools/pythonpoint/pythonpoint.py $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT%{py_sitescriptdir}/reportlab
@@ -103,7 +112,7 @@
%files
%defattr(644,root,root,755)
%doc README.txt LICENSE.txt %{?with_doc:docs/*.pdf}
-%attr(755,root,root) %{_bindir}/*
+%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
@@ -150,6 +159,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.53 2011/02/08 08:01:33 glen
+- pass CC to python build
+- download .pfb fonts ourselves, instead letting setup.py doing it
+
Revision 1.52 2010/11/13 00:21:13 pawelz
- release 5
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-ReportLab/python-ReportLab.spec?r1=1.52&r2=1.53&f=u
More information about the pld-cvs-commit
mailing list