ubuntu packaging changes

This commit is contained in:
Jean-Francois Dockes 2013-11-11 10:53:27 +01:00
parent 605a8d6496
commit a1f58fa057
5 changed files with 90 additions and 27 deletions

View File

@ -4,26 +4,59 @@
# For the kio: (and kdesdk?) # For the kio: (and kdesdk?)
# sudo apt-get install pkg-kde-tools cdbs # sudo apt-get install pkg-kde-tools cdbs
RCLVERS=1.19.5 RCLVERS=1.20.0
LENSVERS=1.19.2.3328 LENSVERS=1.20.0.3519
PPAVERS=3 SCOPEVERS=1.20.0.3519
PPAVERS=2
case $RCLVERS in case $RCLVERS in
[23]*) PPANAME=recollexp-ppa;; [23]*) PPANAME=recollexp-ppa;;
1.14*) PPANAME=recoll-ppa;; 1.14*) PPANAME=recoll-ppa;;
*) PPANAME=recoll15-ppa;; *) PPANAME=recoll15-ppa;;
esac esac
#PPANAME=recollexp-ppa PPANAME=recollexp-ppa
echo "PPA: $PPANAME. Type CR if Ok, else ^C" echo "PPA: $PPANAME. Type CR if Ok, else ^C"
read rep read rep
####### QT4 ####### QT4
debdir=debianrclqt4 debdir=debianrclqt4
series4="lucid oneiric precise quantal raring saucy" series="lucid oneiric precise"
series4="quantal raring" series=""
if test X$series != X ; then
test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
fi
for series in $series ; do
rm -rf recoll-${RCLVERS}/debian
cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1
if test -f $debdir/control-$series ; then
cp -f -p $debdir/control-$series recoll-${RCLVERS}/debian/control
else
cp -f -p $debdir/control recoll-${RCLVERS}/debian/control
fi
sed -e s/SERIES/${series}/g \
-e s/PPAVERS/${PPAVERS}/g \
< ${debdir}/changelog > recoll-${RCLVERS}/debian/changelog
(cd recoll-${RCLVERS};debuild -S -sa) || break
dput $PPANAME recoll_${RCLVERS}-1~ppa${PPAVERS}~${series}1_source.changes
done
####### QT4 separate python packages
debdir=debian
series="quantal raring saucy"
series=""
if test X$series != X ; then
test -d recoll-${RCLVERS} || tar xvzf recoll_${RCLVERS}.orig.tar.gz
fi
for series in $series ; do
for series in $series4 ; do
rm -rf recoll-${RCLVERS}/debian rm -rf recoll-${RCLVERS}/debian
cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1 cp -rp ${debdir}/ recoll-${RCLVERS}/debian || exit 1
@ -43,17 +76,19 @@ for series in $series4 ; do
done done
### KIO ### KIO
seriesk="lucid oneiric precise quantal raring" series="lucid oneiric precise quantal raring"
seriesk= series=
debdir=debiankio debdir=debiankio
topdir=kio-recoll-${RCLVERS} topdir=kio-recoll-${RCLVERS}
test -d kio-recoll_${RCLVERS}.orig.tar.gz || \ if test X$series != X ; then
cp -p recoll_${RCLVERS}.orig.tar.gz kio-recoll_${RCLVERS}.orig.tar.gz || \ test -d kio-recoll_${RCLVERS}.orig.tar.gz || \
exit 1 cp -p recoll_${RCLVERS}.orig.tar.gz \
test -d $topdir || cp -rp recoll-${RCLVERS} $topdir kio-recoll_${RCLVERS}.orig.tar.gz || \
exit 1
for series in $seriesk ; do test -d $topdir || tar xvzf recoll_${RCLVERS}.orig.tar.gz
fi
for series in $series ; do
rm -rf $topdir/debian rm -rf $topdir/debian
cp -rp ${debdir}/ $topdir/debian || exit 1 cp -rp ${debdir}/ $topdir/debian || exit 1
@ -69,12 +104,16 @@ for series in $seriesk ; do
done done
### Unity Lens ### Unity Lens
seriesl="oneiric precise quantal raring" series="oneiric precise quantal raring"
seriesl= series=
debdir=debianunitylens debdir=debianunitylens
topdir=recoll-lens-${LENSVERS} topdir=recoll-lens-${LENSVERS}
if test X$series != X ; then
for series in $seriesl ; do test -d $topdir || tar xvzf recoll-lens_${LENSVERS}.orig.tar.gz
fi
test -d $topdir ||
for series in $series ; do
rm -rf $topdir/debian rm -rf $topdir/debian
cp -rp ${debdir}/ $topdir/debian || exit 1 cp -rp ${debdir}/ $topdir/debian || exit 1
@ -85,6 +124,32 @@ for series in $seriesl ; do
(cd $topdir;debuild -S -sa) || break (cd $topdir;debuild -S -sa) || break
dput $PPANAME recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes dput $PPANAME \
recoll-lens_${LENSVERS}-1~ppa${PPAVERS}~${series}1_source.changes
done
### Unity Scope
series="saucy"
#series=
debdir=debianunityscope
topdir=unity-scope-recoll-${SCOPEVERS}
if test X$series != X ; then
test -d $topdir || tar xvzf unity-scope-recoll_${LENSVERS}.orig.tar.gz
fi
for series in $series ; do
rm -rf $topdir/debian
cp -rp ${debdir}/ $topdir/debian || exit 1
sed -e s/SERIES/$series/g \
-e s/PPAVERS/${PPAVERS}/g \
< ${debdir}/changelog > $topdir/debian/changelog ;
(cd $topdir;debuild -S -sa) || break
dput $PPANAME \
unity-scope-recoll_${SCOPEVERS}-1~ppa${PPAVERS}~${series}1_source.changes
done done

View File

@ -1,8 +1,8 @@
recoll (1.20.0-1.1) raring; urgency=low recoll (1.20.0-1~ppaPPAVERS~SERIES1) SERIES; urgency=low
* local package testing new release build * Separate python packages and "smart" scope
-- Jean-Francois Dockes <jf@dockes.org> Sun, 30 Dec 2012 12:29:46 +0530 -- Jean-Francois Dockes <jf@dockes.org> Mon, 11 Nov 2013 11:01:46 +0100
recoll (1.18.1-1) experimental; urgency=low recoll (1.18.1-1) experimental; urgency=low

View File

@ -1,4 +1,4 @@
unity-scope-recoll (1.20.0.3506) saucy; urgency=low unity-scope-recoll (1.20.0.3519-1~ppaPPAVERS~SERIES1) SERIES; urgency=low
* Initial port of the recoll lens to the new Dash * Initial port of the recoll lens to the new Dash
-- Jean-Francois Dockes <jf@dockes.org> Wed, 06 Nov 2013 15:23:00 +0200 -- Jean-Francois Dockes <jf@dockes.org> Wed, 06 Nov 2013 15:23:00 +0200

View File

@ -27,7 +27,7 @@ if test "$checkmodified" = "yes" -a ! -z "$editedfiles"; then
fatal "Edited files exist: " $editedfiles fatal "Edited files exist: " $editedfiles
fi fi
releasename=recoll-scope-${VERSION} releasename=unity-scope-recoll-${VERSION}
topdir=$targetdir/$releasename topdir=$targetdir/$releasename
if test ! -d $topdir ; then if test ! -d $topdir ; then

View File

@ -155,11 +155,9 @@ out=$releasename.tar.gz
echo "$targetdir/$out created" echo "$targetdir/$out created"
# Check manifest against current reference # Check manifest against current reference
(
export LANG=C export LANG=C
tar tzf $targetdir/$out | sort | cut -d / -f 2- | \ tar tzf $targetdir/$out | sort | cut -d / -f 2- | \
diff mk/manifest.txt - || fatal "Please fix file list mk/manifest.txt" diff mk/manifest.txt - || fatal "Please fix file list mk/manifest.txt"
)
# We tag .. as there is the 'packaging/' directory in there # We tag .. as there is the 'packaging/' directory in there
[ $dotag = "yes" ] && tagtop $TAG [ $dotag = "yes" ] && tagtop $TAG