[Erp5-report] r41070 kazuhiko - /erp5/trunk/utils/rpmgen/templates/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 2 21:50:41 CET 2010
Author: kazuhiko
Date: Thu Dec 2 21:50:41 2010
New Revision: 41070
URL: http://svn.erp5.org?rev=41070&view=rev
Log:
follow recent change on buildout.
Modified:
erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-centos5.5.spec.in
Modified: erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-centos5.5.spec.in
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-centos5.5.spec.in?rev=41070&r1=41069&r2=41070&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-centos5.5.spec.in [utf8] (original)
+++ erp5/trunk/utils/rpmgen/templates/erp5-official-buildout-centos5.5.spec.in [utf8] Thu Dec 2 21:50:41 2010
@@ -29,15 +29,19 @@ BuildRoot: /opt/rpmbuild/%{fullname}-%{r
%build
cd %{installdir}
-curl -s http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py | python -S - -c buildout-2.12.cfg
-bin/buildout -v -c buildout-2.12.cfg
+cat > buildout.cfg <<EOF
+[buildout]
+extends = https://svn.erp5.org/repos/public/erp5/trunk/buildout/buildout-2.12.cfg
+extends-cache = extends-cache
+EOF
+python -S -c 'import urllib2;print urllib2.urlopen("http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py").read()' | python -S -
+./bin/buildout -v
-# cleanup .svn and .pyc files
+# cleanup .svn directories
find %{installdir} -depth -name .svn -exec rm -rf {} \;
-find %{installdir} -name '*.pyc' -delete
# remove the content of downloads folder
# and remove all the folders used to build any software.
-%{__rm} -rf downloads/* parts/*__unpack__
+%{__rm} -rf downloads extends_cache parts/{*__unpack__,*__compile__}
%install
%{__rm} -rf %{buildroot}
More information about the Erp5-report
mailing list