From 14089f0fc1d6a25d7d9c256ea50aaa8b1fe699bc Mon Sep 17 00:00:00 2001 From: Eric Gregory Date: Fri, 4 May 2012 17:53:26 -0700 Subject: [PATCH] GEARY 0.1 IS HERE! Closes #5200 Package automation --- CMakeLists.txt | 45 +++++++++++++++++++++++++++++++++++++++------ Makefile.in | 4 ++++ NEWS | 9 +++++++++ debian/changelog | 10 +++++++--- 4 files changed, 59 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 419d8475..3d3c5ecd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,9 +15,14 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ) # set(GETTEXT_PACKAGE "geary") set(RELEASE_NAME "Lightweight email client for GNOME.") -set(VERSION "0.0.0+trunk") +set(VERSION "0.1.0") set(VERSION_INFO "Release") +# Packaging filenamesnames. +set(ARCHIVE_BASE_NAME ${CMAKE_PROJECT_NAME}-${VERSION}) +set(ARCHIVE_FULL_NAME ${ARCHIVE_BASE_NAME}.tar.xz) +set(ARCHIVE_DEBUILD_FULL_NAME ${CMAKE_PROJECT_NAME}_${VERSION}.orig.tar.xz) + option(ICON_UPDATE "Run gtk-update-icon-cache after the install." ON) option(DESKTOP_UPDATE "Run update-desktop-database after the install." ON) @@ -83,9 +88,37 @@ endif () # Dist # This generates the dist tarballs -set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION}) -add_custom_target(dist - COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD - | xz -z > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.xz - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +add_custom_target( + dist + COMMAND + git archive --prefix=${ARCHIVE_BASE_NAME}/ HEAD + | xz -z > ${CMAKE_BINARY_DIR}/${ARCHIVE_FULL_NAME} + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} +) + +# Ubuntu +# Builds the source Debian package used for the Launchpad PPA +add_custom_target( + ubuntu_pre + DEPENDS + dist + COMMAND + ${CMAKE_COMMAND} -E copy ${ARCHIVE_FULL_NAME} ${ARCHIVE_DEBUILD_FULL_NAME} + COMMAND + tar xvfx ${ARCHIVE_FULL_NAME} +) + +add_custom_target( + ubuntu + DEPENDS + ubuntu_pre + COMMAND + ${CMAKE_COMMAND} -E copy_directory "${CMAKE_CURRENT_SOURCE_DIR}/debian" + "${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_BASE_NAME}/debian" + COMMAND + debuild -S -k$ENV{GPGKEY} + COMMAND + + WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${ARCHIVE_BASE_NAME}" +) diff --git a/Makefile.in b/Makefile.in index 33e4d9aa..b01b9613 100644 --- a/Makefile.in +++ b/Makefile.in @@ -32,3 +32,7 @@ dist: @$(MAKE) -C $(BUILD_DIR) dist @cp build/*.xz . +.PHONY: ubuntu +ubuntu: + @$(MAKE) -C $(BUILD_DIR) ubuntu + diff --git a/NEWS b/NEWS index e69de29b..29cc9a32 100644 --- a/NEWS +++ b/NEWS @@ -0,0 +1,9 @@ +Geary 0.1.0 - 04 May 2012 +------------------------- + + * Initial release. Features include: + - Lightweight IMAP/SMTP email client + - Integration with GMail and Yahoo Mail features + - Read/write HTML email + - Support for starring, archiving, mark as read/unread + diff --git a/debian/changelog b/debian/changelog index 91af35ca..0315876f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,9 @@ -geary (0.0.0+trunk-1) precise; urgency=low +geary (0.1.0-1~precise1) precise; urgency=low - * Initial release + * Initial release. Features include: + - Lightweight IMAP/SMTP email client + - Integration with GMail and Yahoo Mail features + - Read/write HTML email + - Support for starring, archiving, mark as read/unread - -- Eric Gregory Wed, 02 May 2012 17:47:58 -0700 + -- Eric Gregory Wed, 04 May 2012 17:30:00 -0700