packages: python-ReportLab/python-ReportLab.spec - rel 3; doc build
arekm
arekm at pld-linux.org
Thu Jul 8 19:21:36 CEST 2010
Author: arekm Date: Thu Jul 8 17:21:36 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- rel 3; doc build
---- Files affected:
packages/python-ReportLab:
python-ReportLab.spec (1.48 -> 1.49)
---- Diffs:
================================================================
Index: packages/python-ReportLab/python-ReportLab.spec
diff -u packages/python-ReportLab/python-ReportLab.spec:1.48 packages/python-ReportLab/python-ReportLab.spec:1.49
--- packages/python-ReportLab/python-ReportLab.spec:1.48 Thu Jul 8 19:16:08 2010
+++ packages/python-ReportLab/python-ReportLab.spec Thu Jul 8 19:21:31 2010
@@ -2,19 +2,22 @@
# TODO:
# Check if docs/*.pdf is generated using _installed_ ReportLab
# so build may fail if ReportLab is not installed on builder
+%bcond_without doc
+#
%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: 2
+Release: 3
License: distributable
Group: Libraries/Python
Source0: http://www.reportlab.org/ftp/ReportLab_%{fversion}.tar.gz
# Source0-md5: e6dc4b0fbfb6814f7777e5960774cb5d
Patch0: %{name}-setup.patch
URL: http://www.reportlab.org/
+%{?with_doc:BuildRequires: python-PIL}
BuildRequires: python-devel >= 1:2.4
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
@@ -65,9 +68,11 @@
%build
CFLAGS="%{rpmcflags}"; export CFLAGS
python setup.py build
+%if %{with doc}
cd docs
PYTHONPATH=$(pwd)/../src python genAll.py
cd ..
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -93,7 +98,7 @@
%files
%defattr(644,root,root,755)
-%doc README.txt LICENSE.txt docs/*.pdf
+%doc README.txt LICENSE.txt %{?with_doc:docs/*.pdf}
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{py_sitedir}/_renderPM.so
%attr(755,root,root) %{py_sitedir}/_rl_accel.so
@@ -140,6 +145,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.49 2010/07/08 17:21:31 arekm
+- rel 3; doc build
+
Revision 1.48 2010/07/08 17:16:08 arekm
- fix PYTHONPATH for docs generation
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-ReportLab/python-ReportLab.spec?r1=1.48&r2=1.49&f=u
More information about the pld-cvs-commit
mailing list