From 9b4f964299d9ac39865c36ab57ea8cfad0038106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 20 Jun 2011 19:35:44 +0200 Subject: Use a custom debian changelog. diff --git a/Swift/Packaging/Debian/changelog.debian-unstable b/Swift/Packaging/Debian/changelog.debian-unstable new file mode 100644 index 0000000..f722dce --- /dev/null +++ b/Swift/Packaging/Debian/changelog.debian-unstable @@ -0,0 +1,5 @@ +swift-im (1.1-1) unstable; urgency=low + + * Initial release. Closes: #631002 + + -- Swift Package Maintainer Mon, 20 Jun 2011 16:24:48 -0000 diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh index 5f7d911..5bdb4dd 100755 --- a/Swift/Packaging/Debian/package.sh +++ b/Swift/Packaging/Debian/package.sh @@ -3,7 +3,7 @@ set -e -x export PYTHONPATH=../../../BuildTools/SCons -VERSION=`../../../BuildTools/GetBuildVersion.py swift` +VERSION=${VERSION:=`../../../BuildTools/GetBuildVersion.py swift`} DEBIAN_VERSION=`../../../BuildTools/DebianizeVersion.py $VERSION` DIRNAME=swift-im-$DEBIAN_VERSION SWIFTEN_SOVERSION=`../../../BuildTools/GetBuildVersion.py swift --major` @@ -22,18 +22,23 @@ echo "Checking out a fresh copy ..." rm -rf $DIRNAME git clone ../../../.git $DIRNAME -# Clean out 3rdParty +# Remove development files & 3rdParty files +rm -rf $DIRNAME/.git +find $DIRNAME -name .gitignore | xargs rm -f find $DIRNAME/3rdParty -type f | grep -v uuid | grep -v SConscript | xargs rm -f find $DIRNAME/3rdParty -depth -empty -type d -exec rmdir {} \; rm -rf $DIRNAME/3rdParty/SCons +# Initialize the build version +echo $VERSION > $DIRNAME/VERSION.swift + # Fork local Boost UUID copy # FIXME: This shouldn't be necessary, but SCons isn't picking up the generated headers for compilation mkdir -p $DIRNAME/3rdParty/Boost/uuid/boost cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost # Create orig tarball for debuild -tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz --exclude=$DIRNAME/.git $DIRNAME +tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz $DIRNAME # Detect dependencies WEBKIT_DEPENDENCY=", libqtwebkit-dev (>= 2.0.0)" @@ -44,7 +49,11 @@ fi # Initialize debian files ln -s Swift/Packaging/Debian/debian $DIRNAME/debian -../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION +if [ -z "$CHANGELOG" ]; then + ../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION +else + cp $CHANGELOG $DIRNAME/debian/changelog +fi cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" | sed -e "s/%WEBKIT_DEPENDENCY%/$WEBKIT_DEPENDENCY/g" > $DIRNAME/debian/control mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install mv $DIRNAME/debian/libswiften-dev.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.install -- cgit v0.10.2-6-g49f6 From d6f336ace41ffb29ba0b3477b156dbb55a877bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 20 Jun 2011 19:50:50 +0200 Subject: Improve the description in the Debian control file. diff --git a/Swift/Packaging/Debian/debian/control.in b/Swift/Packaging/Debian/debian/control.in index 6373a00..2ae7281 100644 --- a/Swift/Packaging/Debian/debian/control.in +++ b/Swift/Packaging/Debian/debian/control.in @@ -13,24 +13,38 @@ Architecture: any Section: net Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} -Description: XMPP Library. - The Swiften XMPP library. +Description: The Swiften XMPP Library. + Swiften is a robust, high-quality, standards-compliant, cross-platform, + and performant C++ library for implementing XMPP applications. Swiften + is used as the back-end library for the Swift Instant Messaging client. Package: libswiften%SWIFTEN_SOVERSION%-dev Architecture: any Section: libdevel Priority: optional Depends: libswiften%SWIFTEN_SOVERSION% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} -Description: XMPP Library. - The Swiften XMPP library. +Description: The Swiften XMPP Library. + Swiften is a robust, high-quality, standards-compliant, cross-platform, + and performant C++ library for implementing XMPP applications. Swiften + is used as the back-end library for the Swift Instant Messaging client. + . + This package contains the header development files and programs for + developing with Swiften. Package: swift-im Architecture: any Section: net Priority: optional Depends: libswiften%SWIFTEN_SOVERSION% (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} -Description: XMPP Client. - The Swift IM client. +Description: The Swift Instant Messaging client. + Swift is a free instant messaging client. It concentrates on making + the most-used features easily accessible, supporting + internationalisation, private and group chats, together with features + for security-conscious organisations including Security Labelling. + . + Swift uses the XMPP protocol and so supports both the public Jabber + network and closed XMPP services, such as those found in many + organisations. Package: swift-im-dbg Architecture: any @@ -38,4 +52,5 @@ Section: debug Priority: extra Depends: swift-im (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for swift-im. - The Swift IM client. + This package contains the debugging symbols for debugging Swift + and Swiften applications. diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh index 5bdb4dd..5740022 100755 --- a/Swift/Packaging/Debian/package.sh +++ b/Swift/Packaging/Debian/package.sh @@ -62,6 +62,6 @@ mv $DIRNAME/debian/libswiften-dev.manpages $DIRNAME/debian/libswiften$SWIFTEN_SO # Build cd $DIRNAME set +e -debuild -i -I +debuild -i -I --lintian-opts --pedantic #dpkg-buildpackage -S -rfakeroot -i -I #dpkg-buildpackage -b -rfakeroot -i -I -- cgit v0.10.2-6-g49f6 From d35f132d31241e7c2f09b4b2588a02c8a6ae249c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 20 Jun 2011 20:09:14 +0200 Subject: Prioritize version files over git version. diff --git a/BuildTools/SCons/Version.py b/BuildTools/SCons/Version.py index 993536a..57ef96d 100644 --- a/BuildTools/SCons/Version.py +++ b/BuildTools/SCons/Version.py @@ -18,16 +18,15 @@ def git(cmd) : return gitVersion if p.wait() == 0 else None def getBuildVersion(root, project) : + versionFilename = os.path.join(root, "VERSION." + project) + if os.path.isfile(versionFilename) : + f = open(versionFilename) + version = f.read().strip() + f.close() + return version + gitVersion = getGitBuildVersion(project) if gitVersion : return gitVersion - else : - versionFilename = os.path.join(root, "VERSION." + project) - if os.path.isfile(versionFilename) : - f = open(versionFilename) - version = f.read().strip() - f.close() - return version - else : - # TODO: Add the current branch - return datetime.date.today().strftime("%Y%m%d") + + return datetime.date.today().strftime("%Y%m%d") -- cgit v0.10.2-6-g49f6