[SCM] ktp-text-ui packaging branch, master, updated. upstream/0.4.0-1-g60cc039

George Kiagiadakis gkiagia-guest at alioth.debian.org
Sun Jun 17 14:42:07 UTC 2012


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kde-telepathy/ktp-text-ui.git;a=commitdiff;h=60cc039

The following commit has been merged in the master branch:
commit 60cc039e32e0b0ed86684a1b9059ce2e04f8b0f5
Author: George Kiagiadakis <kiagiadakis.george at gmail.com>
Date:   Sun Jun 17 17:41:54 2012 +0300

    Import 0.4 packaging
---
 debian/changelog                               |    5 +
 debian/compat                                  |    1 +
 debian/control                                 |   62 +++++
 debian/copyright                               |  298 ++++++++++++++++++++++++
 debian/kde-telepathy-text-ui.install           |   14 ++
 debian/libktpchat0.install                     |    1 +
 debian/patches/01_no_useless_dependencies.diff |   37 +++
 debian/patches/02_ktpchat_soversion.diff       |   11 +
 debian/patches/03_no_redundant_glib_calls.diff |   42 ++++
 debian/patches/series                          |    3 +
 debian/plasma-widget-telepathy-chat.install    |    4 +
 debian/rules                                   |    9 +
 debian/source/format                           |    1 +
 debian/watch                                   |    3 +
 14 files changed, 491 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..f8111f3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ktp-text-ui (0.4.0-0r1) UNRELEASED; urgency=low
+
+  * Initial release.
+
+ -- George Kiagiadakis <kiagiadakis.george at gmail.com>  Thu, 01 Dec 2011 02:38:36 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0f5b334
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: ktp-text-ui
+Section: kde
+Priority: optional
+Maintainer: Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>
+Uploaders: George Kiagiadakis <kiagiadakis.george at gmail.com>
+Build-Depends: debhelper (>= 9),
+ pkg-kde-tools (>= 0.9),
+ libtelepathy-qt4-dev (>= 0.9.1),
+ kdelibs5-dev (>= 4:4.6),
+ libqtwebkit-dev,
+ cmake (>= 2.8),
+ libktpcommoninternalsprivate-dev (>= 0.4.0),
+ libtelepathy-logger-qt4-dev (>= 0.4.0)
+Standards-Version: 3.9.3
+Homepage: https://projects.kde.org/projects/extragear/network/telepathy/ktp-text-ui
+Vcs-Git: git://anonscm.debian.org/pkg-kde/kde-extras/kde-telepathy/ktp-text-ui.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-kde/kde-extras/kde-telepathy/ktp-text-ui.git
+
+Package: libktpchat0
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: KDE Telepathy text chat functionality shared library
+ This package provides a shared library with common functionality
+ for handling text chat in KDE Telepathy.
+
+Package: kde-telepathy-text-ui
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libktpchat0 (= ${binary:Version}),
+ kde-telepathy-data (>= 0.4)
+Recommends: kde-telepathy
+Description: Telepathy text chat UI for the KDE Plasma Desktop
+ This package provides a telepathy handler for text channels, a program
+ that in other words allows you to chat with your contacts using instant
+ text messages.
+ .
+ In addition, this package also provides a UI for viewing telepathy
+ text chat logs.
+ .
+ This package is not meant to be used standalone. It is recommended
+ to install the kde-telepathy metapackage instead.
+
+Package: plasma-widget-telepathy-chat
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ libktpchat0 (= ${binary:Version}),
+ kde-telepathy-data (>= 0.4)
+Recommends: kde-telepathy
+Description: Telepathy text chat plasma widget
+ This package provides a plasma widget that allows you to chat with
+ your contacts directly from your desktop.
+ .
+ This package is not meant to be used standalone. It is recommended
+ to install the kde-telepathy metapackage instead.
+
+Package: kde-telepathy-text-ui-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: kde-telepathy-text-ui (= ${binary:Version}), ${misc:Depends}
+Description: Telepathy text chat UI for the KDE Plasma Desktop - debug symbols
+ This package provides debug symbols for the KDE Telepathy text chat UI.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4c34b9c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,298 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ktp-text-ui
+Upstream-Contact: KDE Telepathy Project <kde-telepathy at kde.org>
+Source: http://download.kde.org/unstable/kde-telepathy/
+License: GPL-2+
+
+Files: app/*
+       adiumxtra-protocol-handler/*
+       config/*
+       logviewer/*
+       lib/adium-theme-content-info.*
+       lib/adium-theme-header-info.*
+       lib/adium-theme-message-info.*
+       lib/adium-theme-status-info.*
+       lib/adium-theme-view.*
+       lib/channel-contact-model.*
+       lib/chat-search-bar.*
+       lib/chat-style-plist-file-reader.*
+       lib/chat-text-edit.*
+       lib/chat-widget.*
+       lib/chat-window-style.*
+Copyright: 2010-2011 Dominik Schmidt <kde at dominik-schmidt.de> <dev at dominik-schmidt.de>
+           2010-2012 David Edmundson <kde at davidedmundson.co.uk>
+           2011 Francesco Nwokeka <francesco.nwokeka at gmail.com>
+           2011 Lasath Fernando <kde at lasath.org>
+           2005 Michaël Larouche <larouche at kde.org>
+           2002-2008 the Kopete developers <kopete-devel at kde.org>
+License: GPL-2+
+
+Files: plasmoid/*
+       lib/emoticon-filter.cpp
+       lib/escape-filter.cpp
+       lib/filters.h
+       lib/logmanager.*
+       lib/message.*
+       lib/message-processor.*
+       lib/url-filter.cpp
+Copyright: 2011-2012 Lasath Fernando <kde at lasath.org>
+           2011-2012 David Edmundson <kde at davidedmundson.co.uk>
+           2011 Dominik Schmidt <kde at dominik-schmidt.de>
+License: LGPL-2.1+
+
+Files: lib/ktpchat_export.h
+       declarative-plugin/ktpchat_export.h
+Copyright: 2007 David Faure <faure at kde.org>
+License: LGPL-2+
+
+Files: cmake/*
+Copyright: 2011 Collabora Ltd
+           2010 Dario Freddi <drf at kde.org>
+           2006 Tim Beaulen <tbscope at gmail.com>
+           2008 Helio Chissini de Castro <helio at kde.org>
+           2010 Dominik Schmidt <kde at dominik-schmidt.de>
+License: BSD-3-clause
+
+Files: data/styles/SimKete.AdiumMessageStyle/*
+Copyright: 2009,2011 Matěj Cepl <mcepl at redhat.com>
+License: Expat
+
+Files: data/styles/renkoo.AdiumMessageStyle/*
+Copyright: 2007 Torrey Rice/Renkoo
+License: BSD-3-clause or Academic
+
+Files: data/styles/renkoo.AdiumMessageStyle/Contents/Resources/Footer.html
+Copyright: 2004-2010 Philip McCarthy
+License: Expat
+
+Files: debian/*
+Copyright: 2011-2012 George Kiagiadakis <kiagiadakis.george at gmail.com>
+License: LGPL-2.1+
+
+
+License: GPL-2+
+    This package is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+    .
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+    .
+    You should have received a copy of the GNU General Public License
+    along with this program. If not, see <http://www.gnu.org/licenses/>
+    .
+    On Debian systems, the complete text of the GNU General
+    Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+License: LGPL-2+
+    This library is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Library General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+    .
+    This library is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+    Library General Public License for more details.
+    .
+    You should have received a copy of the GNU Library General Public
+    License along with this library. If not, see <http://www.gnu.org/licenses/>
+    .
+    On Debian systems, the complete text of the GNU Lesser General
+    Public License version 2+ can be found in "/usr/share/common-licenses/LGPL-2"
+
+License: LGPL-2.1+
+   This library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+   .
+   This library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+   .
+   You should have received a copy of the GNU Lesser General Public
+   License along with this library; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+   .
+   On Debian systems, the complete text of the GNU Lesser General
+   Public License v2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+License: Expat
+    Permission is hereby granted, free of charge, to any person obtaining a copy of
+    this software and associated documentation files (the "Software"), to deal in
+    the Software without restriction, including without limitation the rights to
+    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+    the Software, and to permit persons to whom the Software is furnished to do so,
+    subject to the following conditions:
+    .
+    The above copyright notice and this permission notice shall be included in all
+    copies or substantial portions of the Software.
+    .
+    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+License: BSD-3-clause
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions
+    are met:
+    .
+    1. Redistributions of source code must retain the copyright
+    notice, this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+    3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+    .
+    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License: Academic
+    The Academic Free License v. 2.1
+    .
+    This Academic Free License (the "License") applies to any original work of
+    authorship (the "Original Work") whose owner (the "Licensor") has placed the
+    following notice immediately following the copyright notice for the Original Work:
+    Licensed under the Academic Free License version 2.1
+    .
+    1) Grant of Copyright License. Licensor hereby grants You a world-wide,
+        royalty-free, non-exclusive, perpetual, sublicenseable license to do the following:
+        a) to reproduce the Original Work in copies;
+        b) to prepare derivative works ("Derivative Works") based upon the Original Work;
+        c) to distribute copies of the Original Work and Derivative Works to the public;
+        d) to perform the Original Work publicly; and
+        e) to display the Original Work publicly.
+    2) Grant of Patent License. Licensor hereby grants You a world-wide,
+        royalty-free, non-exclusive, perpetual, sublicenseable license, under
+        patent claims owned or controlled by the Licensor that are embodied in the
+        Original Work as furnished by the Licensor, to make, use, sell and offer
+        for sale the Original Work and Derivative Works.
+    3) Grant of Source Code License. The term "Source Code" means the preferred
+        form of the Original Work for making modifications to it and all available
+        documentation describing how to modify the Original Work. Licensor hereby
+        agrees to provide a machine-readable copy of the Source Code of the
+        Original Work along with each copy of the Original Work that Licensor
+        distributes. Licensor reserves the right to satisfy this obligation by
+        placing a machine-readable copy of the Source Code in an information
+        repository reasonably calculated to permit inexpensive and convenient access
+        by You for as long as Licensor continues to distribute the Original Work,
+        and by publishing the address of that information repository in a notice
+        immediately following the copyright notice that applies to the Original Work.
+    4) Exclusions From License Grant. Neither the names of Licensor, nor the names
+        of any contributors to the Original Work, nor any of their trademarks or
+        service marks, may be used to endorse or promote products derived from this
+        Original Work without express prior written permission of the Licensor.
+        Nothing in this License shall be deemed to grant any rights to trademarks,
+        copyrights, patents, trade secrets or any other intellectual property of
+        Licensor except as expressly stated herein. No patent license is granted to
+        make, use, sell or offer to sell embodiments of any patent claims other than
+        the licensed claims defined in Section 2. No right is granted to the
+        trademarks of Licensor even if such marks are included in the Original Work.
+        Nothing in this License shall be interpreted to prohibit Licensor from
+        licensing under different terms from this License any Original Work that
+        Licensor otherwise would have a right to license.
+    5) This section intentionally omitted.
+    6) Attribution Rights. You must retain, in the Source Code of any Derivative
+        Works that You create, all copyright, patent or trademark notices from the
+        Source Code of the Original Work, as well as any notices of licensing and
+        any descriptive text identified therein as an "Attribution Notice." You must
+        cause the Source Code for any Derivative Works that You create to carry a
+        prominent Attribution Notice reasonably calculated to inform recipients that
+        You have modified the Original Work.
+    7) Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that
+        the copyright in and to the Original Work and the patent rights granted
+        herein by Licensor are owned by the Licensor or are sublicensed to You under
+        the terms of this License with the permission of the contributor(s) of those
+        copyrights and patent rights. Except as expressly stated in the immediately
+        proceeding sentence, the Original Work is provided under this License on an
+        "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including,
+        without limitation, the warranties of NON-INFRINGEMENT, MERCHANTABILITY or
+        FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE
+        ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an
+        essential part of this License. No license to Original Work is granted
+        hereunder except under this disclaimer.
+    8) Limitation of Liability. Under no circumstances and under no legal theory,
+        whether in tort (including negligence), contract, or otherwise, shall the
+        Licensor be liable to any person for any direct, indirect, special,
+        incidental, or consequential damages of any character arising as a result
+        of this License or the use of the Original Work including, without
+        limitation, damages for loss of goodwill, work stoppage, computer failure or
+        malfunction, or any and all other commercial damages or losses. This
+        limitation of liability shall not apply to liability for death or personal
+        injury resulting from Licensor's negligence to the extent applicable law
+        prohibits such limitation. Some jurisdictions do not allow the exclusion or
+        limitation of incidental or consequential damages, so this exclusion and
+        limitation may not apply to You.
+    9) Acceptance and Termination. If You distribute copies of the Original Work or
+        a Derivative Work, You must make a reasonable effort under the circumstances
+        to obtain the express assent of recipients to the terms of this License.
+        Nothing else but this License (or another written agreement between Licensor
+        and You) grants You permission to create Derivative Works based upon the
+        Original Work or to exercise any of the rights granted in Section 1 herein,
+        and any attempt to do so except under the terms of this License (or another
+        written agreement between Licensor and You) is expressly prohibited by U.S.
+        copyright law, the equivalent laws of other countries, and by international
+        treaty. Therefore, by exercising any of the rights granted to You in Section
+        1 herein, You indicate Your acceptance of this License and all of its terms
+        and conditions.
+    10) Termination for Patent Action. This License shall terminate automatically
+        and You may no longer exercise any of the rights granted to You by this
+        License as of the date You commence an action, including a cross-claim or
+        counterclaim, against Licensor or any licensee alleging that the Original
+        Work infringes a patent. This termination provision shall not apply for an
+        action alleging patent infringement by combinations of the Original Work
+        with other software or hardware.
+    11) Jurisdiction, Venue and Governing Law. Any action or suit relating to this
+        License may be brought only in the courts of a jurisdiction wherein the
+        Licensor resides or in which Licensor conducts its primary business, and
+        under the laws of that jurisdiction excluding its conflict-of-law
+        provisions. The application of the United Nations Convention on Contracts
+        for the International Sale of Goods is expressly excluded. Any use of the
+        Original Work outside the scope of this License or after its termination
+        shall be subject to the requirements and penalties of the U.S. Copyright Act,
+        17 U.S.C. § 101 et seq., the equivalent laws of other countries, and
+        international treaty. This section shall survive the termination of this License.
+    12) Attorneys Fees. In any action to enforce the terms of this License or
+        seeking damages relating thereto, the prevailing party shall be entitled
+        to recover its costs and expenses, including, without limitation,
+        reasonable attorneys' fees and costs incurred in connection with such
+        action, including any appeal of such action. This section shall survive
+        the termination of this License.
+    13) Miscellaneous. This License represents the complete agreement concerning
+        the subject matter hereof. If any provision of this License is held to be
+        unenforceable, such provision shall be reformed only to the extent
+        necessary to make it enforceable.
+    14) Definition of "You" in This License. "You" throughout this License, whether
+        in upper or lower case, means an individual or a legal entity exercising
+        rights under, and complying with all of the terms of, this License.
+        For legal entities, "You" includes any entity that controls, is controlled
+        by, or is under common control with you. For purposes of this definition,
+        "control" means (i) the power, direct or indirect, to cause the direction
+        or management of such entity, whether by contract or otherwise,
+        or (ii) ownership of fifty percent (50%) or more of the outstanding shares,
+        or (iii) beneficial ownership of such entity.
+    15) Right to Use. You may use the Original Work in all ways not otherwise
+        restricted or conditioned by this License or by law, and Licensor promises
+        not to interfere with or be responsible for such uses by You.
+    .
+    This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights reserved.
+    Permission is hereby granted to copy and distribute this license without
+    modification. This license may not be modified without the express written
+    permission of its copyright owner.
diff --git a/debian/kde-telepathy-text-ui.install b/debian/kde-telepathy-text-ui.install
new file mode 100644
index 0000000..6a88878
--- /dev/null
+++ b/debian/kde-telepathy-text-ui.install
@@ -0,0 +1,14 @@
+usr/bin/ktp-log-viewer
+usr/lib/kde4/kcm_*.so
+usr/lib/kde4/libexec/ktp-adiumxtra-protocol-handler
+usr/lib/kde4/libexec/ktp-text-ui
+usr/share/applications/kde4/ktp-log-viewer.desktop
+usr/share/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.TextUi.service
+usr/share/kde4/apps/ktelepathy/styles/renkoo.AdiumMessageStyle/*
+usr/share/kde4/apps/ktelepathy/styles/SimKete.AdiumMessageStyle/*
+usr/share/kde4/apps/ktelepathy/Template.html
+usr/share/kde4/apps/ktp-text-ui/chatwindow.rc
+usr/share/kde4/services/adiumxtra.protocol
+usr/share/kde4/services/kcm_*.desktop
+usr/share/locale/*
+usr/share/telepathy/clients/KTp.TextUi.client
diff --git a/debian/libktpchat0.install b/debian/libktpchat0.install
new file mode 100644
index 0000000..b73df52
--- /dev/null
+++ b/debian/libktpchat0.install
@@ -0,0 +1 @@
+usr/lib/libktpchat.so.0*
diff --git a/debian/patches/01_no_useless_dependencies.diff b/debian/patches/01_no_useless_dependencies.diff
new file mode 100644
index 0000000..1e7dfbf
--- /dev/null
+++ b/debian/patches/01_no_useless_dependencies.diff
@@ -0,0 +1,37 @@
+--- a/cmake/modules/FindTelepathyLoggerQt4.cmake
++++ b/cmake/modules/FindTelepathyLoggerQt4.cmake
+@@ -19,24 +19,13 @@
+ set(TELEPATHY_LOGGER_QT4_LIBRARIES ${TELEPATHY_LOGGER_QT4_LIBRARY} )
+ set(TELEPATHY_LOGGER_QT4_INCLUDE_DIRS ${TELEPATHY_LOGGER_QT4_INCLUDE_DIR} ${TELEPATHY_LOGGER_QT4_INCLUDE_DIR}/telepathy-logger-0.2 )
+ 
+-find_package(TelepathyLogger)
+-find_package(TelepathyGlib)
+-find_package(GObject)
+-find_package(GIO)
+-find_package(GLIB2)
+ find_package(QtGLib)
+ 
+ list(APPEND TELEPATHY_LOGGER_QT4_LIBRARIES
+-    ${TELEPATHY_LOGGER_LIBRARIES}
+-    ${TELEPATHY_GLIB_LIBRARIES}
+-    ${GLIB2_LIBRARIES}
+-    ${GOBJECT_LIBRARIES}
+     ${QTGLIB_LIBRARIES}
+-    ${GIO_LIBRARIES}
+ )
+ 
+ list(APPEND TELEPATHY_LOGGER_QT4_INCLUDE_DIRS
+-    ${GLIB2_INCLUDE_DIR}
+     ${QTGLIB_INCLUDE_DIR}
+ )
+ 
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -71,7 +71,6 @@
+     ${TELEPATHY_QT4_LIBRARIES}
+     ${QT_QTWEBKIT_LIBRARY}
+     ${KDE4_KEMOTICONS_LIBS}
+-    ${KDE4_KCMUTILS_LIBS}
+     ${KTP_LIBRARIES}
+ )
+ install(TARGETS ktpchat ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/debian/patches/02_ktpchat_soversion.diff b/debian/patches/02_ktpchat_soversion.diff
new file mode 100644
index 0000000..3d3885d
--- /dev/null
+++ b/debian/patches/02_ktpchat_soversion.diff
@@ -0,0 +1,11 @@
+--- a/lib/CMakeLists.txt
++++ b/lib/CMakeLists.txt
+@@ -64,6 +64,8 @@
+     )
+ endif()
+ 
++set_target_properties(ktpchat PROPERTIES SOVERSION 0 VERSION 0.4.0)
++
+ target_link_libraries(ktpchat
+     ${KDE4_KDECORE_LIBS}
+     ${KDE4_KIO_LIBS}
diff --git a/debian/patches/03_no_redundant_glib_calls.diff b/debian/patches/03_no_redundant_glib_calls.diff
new file mode 100644
index 0000000..4090039
--- /dev/null
+++ b/debian/patches/03_no_redundant_glib_calls.diff
@@ -0,0 +1,42 @@
+--- a/lib/logmanager.cpp
++++ b/lib/logmanager.cpp
+@@ -33,9 +33,6 @@
+ #include <TelepathyLoggerQt4/TextEvent>
+ #include <TelepathyLoggerQt4/CallEvent>
+ #include <TelepathyLoggerQt4/LogManager>
+-
+-#include <glib-object.h>
+-#include <QGlib/Init>
+ #endif
+ 
+ #include <TelepathyQt/Types>
+@@ -48,8 +45,6 @@
+     m_fetchAmount(10)
+ {
+ #ifdef TELEPATHY_LOGGER_QT4_FOUND
+-    g_type_init();
+-    QGlib::init();
+     Tpl::init();
+ 
+     m_logManager = Tpl::LogManager::instance();
+--- a/logviewer/log-viewer.cpp
++++ b/logviewer/log-viewer.cpp
+@@ -28,9 +28,6 @@
+ #include <TelepathyLoggerQt4/Entity>
+ #include <TelepathyLoggerQt4/LogManager>
+ 
+-#include <glib-object.h>
+-#include <QGlib/Init>
+-
+ #include <QSortFilterProxyModel>
+ 
+ #include "entity-model.h"
+@@ -42,8 +39,6 @@
+     ui->setupUi(this);
+     setWindowIcon(KIcon(QLatin1String("documentation")));
+     Tp::registerTypes();
+-    g_type_init();
+-    QGlib::init(); //are these 4 really needed?
+     Tpl::init();
+ 
+     m_accountManager = Tp::AccountManager::create();
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1a6054a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+01_no_useless_dependencies.diff
+02_ktpchat_soversion.diff
+03_no_redundant_glib_calls.diff
diff --git a/debian/plasma-widget-telepathy-chat.install b/debian/plasma-widget-telepathy-chat.install
new file mode 100644
index 0000000..54d82a8
--- /dev/null
+++ b/debian/plasma-widget-telepathy-chat.install
@@ -0,0 +1,4 @@
+usr/share/kde4/apps/plasma/plasmoids/org.kde.ktp-chatplasmoid/*
+usr/share/kde4/services/plasma-applet-ktpchat.desktop
+usr/lib/kde4/imports/org/kde/telepathy/chat/libktpchatqmlplugin.so
+usr/lib/kde4/imports/org/kde/telepathy/chat/qmldir
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..dbb7872
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+override_dh_install:
+	dh_install --list-missing
+	rm "debian/kde-telepathy-text-ui/usr/share/kde4/apps/ktelepathy/styles/renkoo.AdiumMessageStyle/Contents/Resources/Renkoo LICENSE.txt"
+	rm "debian/kde-telepathy-text-ui/usr/share/kde4/apps/ktelepathy/styles/SimKete.AdiumMessageStyle/Contents/README"
+
+%:
+	dh $@ --parallel --with kde --dbg-package=kde-telepathy-text-ui-dbg
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..931cdc1
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+ftp://ftp.kde.org/pub/kde/unstable/kde-telepathy/([\d.]+)/src/ktp-text-ui-([\d.]+).tar.bz2

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list