packages: python-xhtml2pdf/python-xhtml2pdf.spec (NEW)=?UTF-8?Q?=20?=- new, some fork of ...

zbyniu zbyniu at pld-linux.org
Wed Mar 7 14:26:23 CET 2012


Author: zbyniu                       Date: Wed Mar  7 13:26:23 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, some fork of python-pisa?

---- Files affected:
packages/python-xhtml2pdf:
   python-xhtml2pdf.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-xhtml2pdf/python-xhtml2pdf.spec
diff -u /dev/null packages/python-xhtml2pdf/python-xhtml2pdf.spec:1.1
--- /dev/null	Wed Mar  7 14:26:23 2012
+++ packages/python-xhtml2pdf/python-xhtml2pdf.spec	Wed Mar  7 14:26:18 2012
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	xhtml2pdf
+Summary:	PDF generator using HTML and CSS
+Name:		python-%{module}
+Version:	0.0.3
+Release:	0.1
+License:	Apache License 2.0
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/x/xhtml2pdf/%{module}-%{version}.tar.gz
+# Source0-md5:	13b0d6059b72c994473fddfa7a528451
+URL:		http://pypi.python.org/pypi/xhtml2pdf/
+BuildRequires:	python-ReportLab >= 2.2
+BuildRequires:	python-distribute
+BuildRequires:	python-html5lib >= 0.11.1
+BuildRequires:	python-pyPdf >= 1.11
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HTML/CSS to PDF converter based on Python.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_bindir}/*
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%dir %{py_sitescriptdir}/%{module}/w3c
+%{py_sitescriptdir}/%{module}/w3c/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/03/07 13:26:18  zbyniu
+- new, some fork of python-pisa?
+
================================================================


More information about the pld-cvs-commit mailing list