packages: sphinx-pdg/sphinx-pdg.spec - added py3k package (does not work ye...

wrobell wrobell at pld-linux.org
Mon Aug 15 01:16:58 CEST 2011


Author: wrobell                      Date: Sun Aug 14 23:16:58 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added py3k package (does not work yet, seems sphinx 1.1 is needed)

---- Files affected:
packages/sphinx-pdg:
   sphinx-pdg.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: packages/sphinx-pdg/sphinx-pdg.spec
diff -u packages/sphinx-pdg/sphinx-pdg.spec:1.16 packages/sphinx-pdg/sphinx-pdg.spec:1.17
--- packages/sphinx-pdg/sphinx-pdg.spec:1.16	Mon Jun 13 20:19:13 2011
+++ packages/sphinx-pdg/sphinx-pdg.spec	Mon Aug 15 01:16:53 2011
@@ -32,18 +32,51 @@
 documentation, but has now been cleaned up in the hope that it will be
 useful to many other projects.
 
+%package -n sphinx-pdg-3
+Summary:	Python documentation generator (Python 3)
+Group:		Development/Languages/Python
+Requires:	python3-distribute
+Requires:	python3-docutils >= 0.8
+Requires:	python3-jinja2 >= 2.1
+Requires:	python3-pygments >= 0.11.1
+
+%description -n sphinx-pdg-3
+Sphinx is a tool that makes it easy to create intelligent and
+beautiful documentation for Python projects (or other documents
+consisting of multiple reStructuredText sources), written by Georg
+Brandl. It was originally created to translate the new Python
+documentation, but has now been cleaned up in the hope that it will be
+useful to many other projects.
+
 %prep
 %setup -q -n Sphinx-%{version}
+cp -a ../Sphinx-%{version} ../py3k
+mv ../py3k .
 
 %build
-%{__python} setup.py build
+%{__python} setup.py build -b build-2
+
+(cd py3k
+2to3-3.2 -w .
+%{__python3} setup.py build -b build-3
+)
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__python} setup.py install \
-		--optimize=2 \
-		--root=$RPM_BUILD_ROOT
+(cd py3k
+%{__python3} setup.py build -b build-3 install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+)
+
+for f in $RPM_BUILD_ROOT%{_bindir}/*; do
+	mv "${f}" "${f}-3"
+done
+
+%{__python} setup.py build -b build-2 install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
 
 %py_postclean
 
@@ -54,15 +87,26 @@
 %defattr(644,root,root,755)
 %doc README PKG-INFO TODO AUTHORS
 %attr(755,root,root) %{_bindir}/*
+%exclude %{_bindir}/*-3
 %{py_sitescriptdir}/sphinx
 %{py_sitescriptdir}/Sphinx*egg*
 
+%files -n %{name}-3
+%defattr(644,root,root,755)
+%doc README PKG-INFO TODO AUTHORS
+%attr(755,root,root) %{_bindir}/*-3
+%{py3_sitescriptdir}/sphinx
+%{py3_sitescriptdir}/Sphinx*egg*
+
 %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.17  2011/08/14 23:16:53  wrobell
+- added py3k package (does not work yet, seems sphinx 1.1 is needed)
+
 Revision 1.16  2011/06/13 18:19:13  wrobell
 - ver. 1.0.7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/sphinx-pdg/sphinx-pdg.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list