stuart: releng/perl-kolab devtool.conf,1.1.1.1,1.2

cvs at intevation.de cvs at intevation.de
Wed May 12 15:00:07 CEST 2004


Author: stuart

Update of /kolabrepository/releng/perl-kolab
In directory doto:/tmp/cvs-serv23862

Modified Files:
	devtool.conf 
Log Message:
Fixed issue with 'make dist' not creating the correctly named tarballs
Separated Kolab.pm from the other modules in %copydevel, so that we can perform the necessary transformations (prefix and kolab uid/gid)


Index: devtool.conf
===================================================================
RCS file: /kolabrepository/releng/perl-kolab/devtool.conf,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- devtool.conf	3 May 2004 14:06:15 -0000	1.1.1.1
+++ devtool.conf	12 May 2004 13:00:05 -0000	1.2
@@ -53,10 +53,16 @@
 #   ./devtool upload    = upload tarball for public access
 
 %common
+    KOLAB="kolab"
+
     PKG_NAME="perl-kolab"
     PRETTY_NAME="Perl-Kolab"
     CVS_NAME="PERL_KOLAB"
 
+    PREFIX="/${KOLAB}"
+    RPM="${PREFIX}/bin/openpkg rpm"
+    RPMSRC="${PREFIX}/RPM/SRC/${PKG_NAME}"
+
 %release
     ./devtool copydevel
     ./devtool version
@@ -66,7 +72,7 @@
 
 %copydevel
     echo "+++ copying development sources"
-    for f in `find ../../devel/kolab -name "*.pm"`
+    for f in `find ../../devel/kolab -name "*.pm" ! -name "Kolab.pm"`
     do
         ./shtool install -c -m 0644 $f \
             `grep ^package $f | sed -e "s/package \([^;]\+\);/\1/" \
@@ -74,6 +80,13 @@
              -e "s;::;/;g" -e "s;\(/[^/]\+$\|^[^/]\+$\);;g"`
     done
 
+    ./shtool install -c -m 0644 \
+        -e "s;\([!\"\`'\''<> ]\)${PREFIX};\\1\@l_prefix\@;g" \
+        -e "s;\(config{.\?kolab_uid.\?} *= *\)[0-9]\+;\\1\@l_musr\@;g" \
+        -e "s;\(config{.\?kolab_gid.\?} *= *\)[0-9]\+;\\1\@l_mgrp\@;g" \
+        ../../devel/kolab/Kolab.pm \
+        Kolab/lib/
+
 %version
     echo "NOTE: This version is used only for CVS tagging purposes"
     echo "Each perl module maintains its own version number"
@@ -88,8 +101,10 @@
     echo FIXME cvs tag ${V}
 
 %dist
-    echo "+++ removing old tarballs"
+    echo "+++ cleaning previous release leftovers"
     rm -f Kolab*.tar.gz
+    find . -name "META.yml" | xargs rm
+    find . -name "Makefile" | xargs rm
     for DIR in `find -type d -name "Kolab*" -maxdepth 1`
     do
         echo "+++ ${DIR}"





More information about the commits mailing list