[SCM] ktp-approver packaging branch, master, updated. debian/15.12.1-1-299-g62cbbd7

Maximiliano Curia maxy at moszumanska.debian.org
Fri May 27 09:13:48 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-approver.git;a=commitdiff;h=baa85bc

The following commit has been merged in the master branch:
commit baa85bc835df58675913ada17bfc7a19f4517e92
Author: Alin M Elena <alinm.elena at gmail.com>
Date:   Wed Mar 6 16:15:42 2013 +0000

    set version in CMakeLists.txt
    REVIEW: 109314
---
 CMakeLists.txt            | 4 ++++
 src/ktpapprovermodule.cpp | 4 +++-
 version.h.in              | 1 +
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 690d8f2..cdb2ee7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,7 @@
 project(ktp-approver)
 
+set(KTP_APPROVER_VERSION "0.5.3")
+
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
 
 find_package(KDE4 REQUIRED)
@@ -8,6 +10,8 @@ find_package(TelepathyQt4 0.8.9 REQUIRED)
 include_directories(${KDE4_INCLUDES} ${TELEPATHY_QT4_INCLUDE_DIR})
 add_definitions(${KDE4_DEFINITIONS})
 
+configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/version.h @ONLY)
+
 add_subdirectory(src)
 
 install(FILES ktp-approver.service DESTINATION ${SERVICETYPES_INSTALL_DIR})
diff --git a/src/ktpapprovermodule.cpp b/src/ktpapprovermodule.cpp
index 5274b1c..2ddd33e 100644
--- a/src/ktpapprovermodule.cpp
+++ b/src/ktpapprovermodule.cpp
@@ -17,6 +17,7 @@
 */
 #include "approverdaemon.h"
 #include "ktpapproverfactory.h"
+#include "version.h"
 
 #include <KAboutData>
 #include <KLocale>
@@ -78,7 +79,8 @@ public:
 
     static inline KAboutData aboutData()
     {
-        KAboutData aboutData("ktp-approver", "kded_ktp_approver", KLocalizedString(), "0.5.3",
+        KAboutData aboutData("ktp-approver", "kded_ktp_approver", KLocalizedString(),
+                             KTP_APPROVER_VERSION,
                              KLocalizedString(), KAboutData::License_LGPL,
                              ki18nc("@info:credit", "(C) 2010, Collabora Ltd."));
         aboutData.addAuthor(ki18nc("@info:credit", "George Kiagiadakis"),
diff --git a/version.h.in b/version.h.in
new file mode 100644
index 0000000..8c904ce
--- /dev/null
+++ b/version.h.in
@@ -0,0 +1 @@
+#define KTP_APPROVER_VERSION "@KTP_APPROVER_VERSION@"

-- 
ktp-approver packaging



More information about the pkg-kde-commits mailing list