[Erp5-report] r43632 rafael - /erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 23 20:57:10 CET 2011


Author: rafael
Date: Wed Feb 23 20:57:10 2011
New Revision: 43632

URL: http://svn.erp5.org?rev=43632&view=rev
Log:
Ignore few folders which are not relevant for the package

Modified:
    erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec

Modified: erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec
URL: http://svn.erp5.org/erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec?rev=43632&r1=43631&r2=43632&view=diff
==============================================================================
--- erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec [utf8] (original)
+++ erp5/trunk/utils/rpmgen/specs/erp5-official-instance.spec [utf8] Wed Feb 23 20:57:10 2011
@@ -33,9 +33,13 @@ getent passwd %{erp5user} >/dev/null || 
 # use rsync if possible
 if [ -z "`which rsync >&/dev/null || echo 1`" ]; then
   mkdir -p %{buildroot}%{installdir}
-  rsync -a %{installdir}/ %{buildroot}%{installdir}/
+  rsync -a --exclude='parts/runUnitTest/unit_test*'\
+           --exclude='bt5*'\
+        %{installdir}/ %{buildroot}%{installdir}/
 else
   %{__cp} -ar --parents %{installdir} %{buildroot}
+  %{__rm} -rf %{buildroot}/parts/runUnitTest/unit_test*
+  %{__rm} -rf %{buildroot}/bt5*
 fi
 # post-script strip fails for read-only files
 chmod -R u+w %{buildroot}%{installdir}/*parts



More information about the Erp5-report mailing list