MAKE DEB: Changed package names to be suffixed by version in order to allow multiple version installation.

git-svn-id: trunk@28841 -
This commit is contained in:
mazen 2010-12-30 12:30:17 +00:00
parent 95e7ce5291
commit 8023e063cb
6 changed files with 56 additions and 45 deletions

11
debian/changelog vendored
View File

@ -1,14 +1,11 @@
lazarus (0.9.31-0) unstable; urgency=low lazarus (0.9.31-0) unstable; urgency=low
* Snapshot building. * Snapshot building.
* Added support for multiple version coexistence in the same system. This will
allow installing multiple versions of Lazarus in the same system and choose
a default using update-alternatives.
-- Vincent Snijders <vincents@freepascal.org> Thu, 23 Dec 2010 16:04:00 +0100 -- Abou Al Montacir <abou.almontacir@sfr.fr> Thu, 30 Dec 2010 10:36:00 +0100
lazarus (0.9.29-0) unstable; urgency=low
* Snapshot building.
-- Abou Al Montacir <abou.almontacir@sfr.fr> Sat, 11 Nov 2010 01:03:00 +0200
lazarus (0.9.28.2-12) unstable; urgency=low lazarus (0.9.28.2-12) unstable; urgency=low

2
debian/control vendored
View File

@ -5,7 +5,7 @@ Maintainer: Carlos Laviola <claviola@debian.org>
Uploaders: Torsten Werner <twerner@debian.org>, Abou Al Montacir <abou.almontacir@sfr.fr> Uploaders: Torsten Werner <twerner@debian.org>, Abou Al Montacir <abou.almontacir@sfr.fr>
DM-Upload-Allowed: yes DM-Upload-Allowed: yes
Standards-Version: 3.9.1 Standards-Version: 3.9.1
Build-Depends: debhelper (>= 7), quilt, fpc (>= 2.2.4-3), fpc-source (>= 2.2.4-3), fp-utils, imagemagick Build-Depends: debhelper (>= 7), quilt, fpc, fpc-source, fp-utils, imagemagick
Vcs-Svn: https://bollin.googlecode.com/svn/lazarus/trunk Vcs-Svn: https://bollin.googlecode.com/svn/lazarus/trunk
Vcs-Browser: http://bollin.googlecode.com/svn/lazarus/trunk Vcs-Browser: http://bollin.googlecode.com/svn/lazarus/trunk
Homepage: http://www.lazarus.freepascal.org Homepage: http://www.lazarus.freepascal.org

54
debian/control.in vendored
View File

@ -5,7 +5,7 @@ Maintainer: Carlos Laviola <claviola@debian.org>
Uploaders: Torsten Werner <twerner@debian.org>, Abou Al Montacir <abou.almontacir@sfr.fr> Uploaders: Torsten Werner <twerner@debian.org>, Abou Al Montacir <abou.almontacir@sfr.fr>
DM-Upload-Allowed: yes DM-Upload-Allowed: yes
Standards-Version: 3.9.1 Standards-Version: 3.9.1
Build-Depends: debhelper (>= 7), quilt, fpc (>= 2.2.4-3), fpc-source (>= 2.2.4-3), fp-utils, imagemagick Build-Depends: debhelper (>= 7), quilt, fpc, fpc-source, fp-utils, imagemagick
Vcs-Svn: https://bollin.googlecode.com/svn/lazarus/trunk Vcs-Svn: https://bollin.googlecode.com/svn/lazarus/trunk
Vcs-Browser: http://bollin.googlecode.com/svn/lazarus/trunk Vcs-Browser: http://bollin.googlecode.com/svn/lazarus/trunk
Homepage: http://www.lazarus.freepascal.org Homepage: http://www.lazarus.freepascal.org
@ -15,6 +15,9 @@ Architecture: all
Depends: ${misc:Depends}, lazarus-ide${PACKAGESUFFIX} (>= ${source:Version}), lazarus-src${PACKAGESUFFIX} (>= ${source:Version}), lazarus-doc${PACKAGESUFFIX} (>= ${source:Version}) Depends: ${misc:Depends}, lazarus-ide${PACKAGESUFFIX} (>= ${source:Version}), lazarus-src${PACKAGESUFFIX} (>= ${source:Version}), lazarus-doc${PACKAGESUFFIX} (>= ${source:Version})
Recommends: fpc, fpc-source Recommends: fpc, fpc-source
Suggests: fp-utils, fp-docs Suggests: fp-utils, fp-docs
Provides: lazarus
Breaks: lazarus (<< 0.9.28.2-13)
Replaces: lazarus (<< 0.9.18.2-13)
Description: IDE for Free Pascal - Meta Package Description: IDE for Free Pascal - Meta Package
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -43,6 +46,9 @@ Package: lazarus-src${PACKAGESUFFIX}
Architecture: all Architecture: all
Depends: ${misc:Depends} Depends: ${misc:Depends}
Suggests: lazarus-ide${PACKAGESUFFIX} Suggests: lazarus-ide${PACKAGESUFFIX}
Provides: lazarus-src
Breaks: lazarus-src (<< 0.9.28.2-13)
Replaces: lazarus-src (<< 0.9.18.2-13)
Description: IDE for Free Pascal - LCL Sources Code Description: IDE for Free Pascal - LCL Sources Code
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -68,6 +74,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, fp-compiler, lazarus-src${PACKAGESUFFIX}, lazarus-ide-gtk${PACKAGESUFFIX} | lazarus-ide-qt${PACKAGESUFFIX} Depends: ${misc:Depends}, ${shlibs:Depends}, fp-compiler, lazarus-src${PACKAGESUFFIX}, lazarus-ide-gtk${PACKAGESUFFIX} | lazarus-ide-qt${PACKAGESUFFIX}
Recommends: fpc, lcl${PACKAGESUFFIX}, gdb Recommends: fpc, lcl${PACKAGESUFFIX}, gdb
Suggests: fp-utils Suggests: fp-utils
Provides: lazarus-ide
Breaks: lazarus-ide (<< 0.2.28.2-13)
Replaces: lazarus-ide (<< 0.2.28.2-13)
Description: IDE for Free Pascal - Common IDE files Description: IDE for Free Pascal - Common IDE files
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -92,9 +101,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, lazarus-ide${PACKAGESUFFIX} Depends: ${misc:Depends}, ${shlibs:Depends}, lazarus-ide${PACKAGESUFFIX}
Recommends: fpc, lcl${PACKAGESUFFIX}, gdb Recommends: fpc, lcl${PACKAGESUFFIX}, gdb
Suggests: fp-utils Suggests: fp-utils
Provides: lazarus-ide-gtk${PACKAGESUFFIX} Provides: lazarus-ide-gtk${PACKAGESUFFIX}, lazarus-ide
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lazarus-ide-gtk${PACKAGESUFFIX} (<< 0.2.28.2-13), lazarus-ide (<< 0.2.28.2-13)
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Replaces: lazarus-ide-gtk${PACKAGESUFFIX} (<< 0.2.28.2-13)
Description: IDE for Free Pascal - IDE build on top of GTK+ backend Description: IDE for Free Pascal - IDE build on top of GTK+ backend
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -119,9 +128,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, lazarus-ide${PACKAGESUFFIX}, lazarus-ide-gtk${PACKAGESUFFIX} Depends: ${misc:Depends}, ${shlibs:Depends}, lazarus-ide${PACKAGESUFFIX}, lazarus-ide-gtk${PACKAGESUFFIX}
Recommends: fpc, lcl${PACKAGESUFFIX}, gdb Recommends: fpc, lcl${PACKAGESUFFIX}, gdb
Suggests: fp-utils Suggests: fp-utils
Provides: lazarus-ide-qt${PACKAGESUFFIX} Provides: lazarus-ide-qt${PACKAGESUFFIX}, lazarus-ide
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lazarus-ide-qt${PACKAGESUFFIX}(<< 0.9.28.2-13), lazarus-ide (<< 0.9.28.2-13)
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Replaces: lazarus-ide-qt${PACKAGESUFFIX}(<< 0.9.28.2-13)
Description: IDE for Free Pascal - IDE build on top of QT backend Description: IDE for Free Pascal - IDE build on top of QT backend
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -147,8 +156,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, lcl-units${PACKAGESUFFIX}, lcl-utils${PACKAGESUFFIX} Depends: ${misc:Depends}, ${shlibs:Depends}, lcl-units${PACKAGESUFFIX}, lcl-utils${PACKAGESUFFIX}
Recommends: fpc, lazarus-ide${PACKAGESUFFIX} Recommends: fpc, lazarus-ide${PACKAGESUFFIX}
Suggests: gdb Suggests: gdb
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Provides: lcl
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lazarus-ide (<= 0.9.28.2-2), lcl (<< 0.9.28.2-13)
Replaces: lazarus-ide (<= 0.9.28.2-2), lcl (<< 0.9.28.2-13)
Description: Lazarus Components Library - LCL metapackage Description: Lazarus Components Library - LCL metapackage
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -172,8 +182,9 @@ Package: lcl-utils${PACKAGESUFFIX}
Architecture: i386 powerpc sparc amd64 armel Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, fp-compiler Depends: ${misc:Depends}, ${shlibs:Depends}, fp-compiler
Recommends: lcl${PACKAGESUFFIX}, lazarus-ide${PACKAGESUFFIX} Recommends: lcl${PACKAGESUFFIX}, lazarus-ide${PACKAGESUFFIX}
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Provides: lcl-utils
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lcl-utils (<< 0.9.28.2-13), lazarus-ide (<= 0.9.28.2-2)
Replaces: lcl-utils (<< 0.9.28.2-13), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Description: Lazarus Components Library - Command Line build tools Description: Lazarus Components Library - Command Line build tools
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -195,12 +206,12 @@ Description: Lazarus Components Library - Command Line build tools
Package: lcl-units${PACKAGESUFFIX} Package: lcl-units${PACKAGESUFFIX}
Architecture: i386 powerpc sparc amd64 armel Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, lcl-gtk2${PACKAGESUFFIX} | lcl-gtk${PACKAGESUFFIX} | lcl-qt${PACKAGESUFFIX} Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, lcl-gtk2${PACKAGESUFFIX} (= ${binary:Version}) | lcl-gtk${PACKAGESUFFIX} (= ${binary:Version}) | lcl-qt${PACKAGESUFFIX} (= ${binary:Version})
Recommends: lazarus-ide${PACKAGESUFFIX}, fpc Recommends: lazarus-ide${PACKAGESUFFIX}, fpc
Suggests: gdb Suggests: gdb
Provides: lcl-${source:Upstream-Version}${PACKAGESUFFIX}, lcl-${source:Version}${PACKAGESUFFIX} Provides: lcl-units, lcl-${source:Upstream-Version}, lcl-${source:Version}
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lcl-units (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Replaces: lcl-units (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Description: Lazarus Components Library - Backend independent components Description: Lazarus Components Library - Backend independent components
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -225,8 +236,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl
Recommends: lazarus-ide${PACKAGESUFFIX}, fpc Recommends: lazarus-ide${PACKAGESUFFIX}, fpc
Suggests: gdb Suggests: gdb
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Provides: lcl-nogui
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lcl-nogui (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Replaces: lcl-nogui (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Description: Lazarus Components Library - No GUI backend Description: Lazarus Components Library - No GUI backend
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -252,9 +264,9 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl, fp-units-gtk2 Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl, fp-units-gtk2
Recommends: lazarus-ide${PACKAGESUFFIX}, fpc Recommends: lazarus-ide${PACKAGESUFFIX}, fpc
Suggests: gdb Suggests: gdb
Provides: lcl-gtk${PACKAGESUFFIX} Provides: lcl-gtk2, lcl-gtk, lcl-gtk2${PACKAGESUFFIX}, lcl-gtk${PACKAGESUFFIX}
Breaks: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Breaks: lcl-gtk2 (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Replaces: lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2) Replaces: lcl-gtk2 (<< 0.9.28.2), lazarus-ide${PACKAGESUFFIX} (<= 0.9.28.2-2)
Description: Lazarus Components Library - GTK+ backend Description: Lazarus Components Library - GTK+ backend
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs
@ -279,7 +291,7 @@ Architecture: i386 powerpc sparc amd64 armel
Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl, libqt4pas-dev Depends: ${misc:Depends}, ${shlibs:Depends}, ${fpc-abi:Depends}, fp-units-rtl, fp-units-base, fp-units-fcl, libqt4pas-dev
Recommends: lazarus-ide${PACKAGESUFFIX}, fpc Recommends: lazarus-ide${PACKAGESUFFIX}, fpc
Suggests: gdb Suggests: gdb
Provides: lcl-qt${PACKAGESUFFIX} Provides: lcl-qt, lcl-qt${PACKAGESUFFIX}
Description: Lazarus Components Library - QT backend Description: Lazarus Components Library - QT backend
Lazarus is an IDE to create (graphical and console) applications with Free Lazarus is an IDE to create (graphical and console) applications with Free
Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs Pascal. Free Pascal is a (L)GPL'ed Pascal and Object Pascal compiler that runs

View File

@ -5,7 +5,7 @@ set -e
LAZARUS_DIR=/usr/lib/lazarus/${VERSION} LAZARUS_DIR=/usr/lib/lazarus/${VERSION}
# Remove alternatives # Remove alternatives
update-alternatives --remove lazbuild ${LAZARUS_DIR}/lazbuild update-alternatives --remove lazarus ${LAZARUS_DIR}
# Debhelper code # Debhelper code
#DEBHELPER# #DEBHELPER#

5
debian/rules vendored
View File

@ -26,6 +26,9 @@ FPCTARGET=$(CPU_TARGET)-linux
DEB_VERSION:=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') DEB_VERSION:=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
DEB_UPSTREAM_VERSION:=$(shell echo $(DEB_VERSION) | cut -f 1 -d -) DEB_UPSTREAM_VERSION:=$(shell echo $(DEB_VERSION) | cut -f 1 -d -)
DEB_UPSTREAM_MAIN_VERSION:=$(shell echo ${DEB_UPSTREAM_VERSION} | sed -e 's/^\([0-9\.]*\).*/\1/') DEB_UPSTREAM_MAIN_VERSION:=$(shell echo ${DEB_UPSTREAM_VERSION} | sed -e 's/^\([0-9\.]*\).*/\1/')
ifndef PACKAGESUFFIX
export PACKAGESUFFIX=-${DEB_UPSTREAM_MAIN_VERSION}
endif
# Get directories # Get directories
CURDIR:=$(shell pwd) CURDIR:=$(shell pwd)
BUILD_DIR=$(CURDIR)/debian/build BUILD_DIR=$(CURDIR)/debian/build
@ -291,7 +294,7 @@ binary-arch: arrange-arch
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_link dh_link
dh_installdocs -a dh_installdocs -a -X.in
dh_installchangelogs -a dh_installchangelogs -a
dh_installexamples -a dh_installexamples -a
dh_installmenu dh_installmenu

1
debian/watch vendored
View File

@ -1,3 +1,2 @@
version=3 version=3
http://sf.net/lazarus/lazarus-(.*).tar.gz debian debian/orig-tar.sh http://sf.net/lazarus/lazarus-(.*).tar.gz debian debian/orig-tar.sh