[SCM] KDE Discover packaging branch, master, updated. 19da338d7ceaf4cb48817554f2e20fdb5f0073f6
Matthias Klumpp
mak at moszumanska.debian.org
Mon Mar 7 23:06:06 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/plasma/plasma-discover.git;a=commitdiff;h=7ef5768
The following commit has been merged in the master branch:
commit 7ef576810f46072644e15c0223cd66ec17c7bd44
Author: Matthias Klumpp <mak at debian.org>
Date: Mon Mar 7 23:03:58 2016 +0100
libdiscover-private.patch: Make libdiscover a private lib
---
debian/patches/01_libdiscover-private.patch | 61 +++++++++++++++++++++++++++++
debian/patches/02_notifiers-private.patch | 49 +++++++++++++++++++++++
debian/patches/series | 2 +
3 files changed, 112 insertions(+)
diff --git a/debian/patches/01_libdiscover-private.patch b/debian/patches/01_libdiscover-private.patch
new file mode 100644
index 0000000..5ff3403
--- /dev/null
+++ b/debian/patches/01_libdiscover-private.patch
@@ -0,0 +1,61 @@
+From: Matthias Klumpp <matthias at tenstral.net>
+Date: Mon, 07 Mar 2016 18:20:44 +0000
+Subject: Make libdiscover a private library
+X-Git-Url: http://quickgit.kde.org/?p=discover.git&a=commitdiff&h=645226f28d66986f067b0fc9dc951346163b36a5
+---
+Make libdiscover a private library
+
+This is very useful for distributions, especially Debian, since it
+silences lint warnings about e.g. missing SONAMES and relaxes the
+requirements for this shared library in general.
+It also limits its use to the Discover project only, but that is it's
+intended usecase anyway.
+
+Differential Revision: D1081
+---
+
+
+--- a/discover/CMakeLists.txt
++++ b/discover/CMakeLists.txt
+@@ -16,6 +16,7 @@
+
+ add_executable(plasma-discover ${plasma_discover_SRCS})
+ add_executable(Plasma::Discover ALIAS plasma-discover)
++set_target_properties(plasma-discover PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
+
+ target_link_libraries(plasma-discover LINK_PUBLIC
+ KF5::DBusAddons
+--- a/exporter/CMakeLists.txt
++++ b/exporter/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
+
+ add_executable(plasma-discover-exporter main.cpp MuonExporter.cpp)
++set_target_properties(plasma-discover-exporter PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
+
+ target_link_libraries(plasma-discover-exporter Discover::Common KF5::CoreAddons KF5::I18n)
+
+--- a/libdiscover/CMakeLists.txt
++++ b/libdiscover/CMakeLists.txt
+@@ -53,5 +53,5 @@
+
+ target_include_directories(DiscoverCommon PRIVATE ${PHONON_INCLUDES} PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+
+-install(TARGETS DiscoverCommon ${INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS DiscoverCommon DESTINATION ${CMAKE_INSTALL_LIBDIR}/plasma-discover)
+ install(FILES resources/discoverabstractnotifier.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR})
+--- a/updater/CMakeLists.txt
++++ b/updater/CMakeLists.txt
+@@ -17,6 +17,7 @@
+ )
+
+ add_executable(plasma-discover-updater ${plasmadiscover_updater_SRCS})
++set_target_properties(plasma-discover-updater PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
+
+ target_link_libraries(plasma-discover-updater KF5::CoreAddons
+ KF5::I18n
+@@ -34,4 +35,3 @@
+
+ install( FILES plasmadiscoverupdaterui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/plasmadiscoverupdater )
+ install( PROGRAMS plasma-discover-updater.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+-
diff --git a/debian/patches/02_notifiers-private.patch b/debian/patches/02_notifiers-private.patch
new file mode 100644
index 0000000..eefb753
--- /dev/null
+++ b/debian/patches/02_notifiers-private.patch
@@ -0,0 +1,49 @@
+From: Matthias Klumpp <matthias at tenstral.net>
+Date: Mon, 07 Mar 2016 22:29:07 +0000
+Subject: Make libDiscoverNotifiers private too
+X-Git-Url: http://quickgit.kde.org/?p=discover.git&a=commitdiff&h=6e92f5638ddd0a0ff257d2f425d1bbcbb35eba32
+---
+Make libDiscoverNotifiers private too
+---
+
+
+--- a/libdiscover/backends/DummyBackend/CMakeLists.txt
++++ b/libdiscover/backends/DummyBackend/CMakeLists.txt
+@@ -17,5 +17,6 @@
+
+ add_library(DummyNotifier MODULE DummyNotifier.cpp)
+ target_link_libraries(DummyNotifier Discover::Notifiers)
++set_target_properties(DummyNotifier PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
+
+ install(TARGETS DummyNotifier DESTINATION ${PLUGIN_INSTALL_DIR}/discover-notifier)
+--- a/libdiscover/backends/PackageKitBackend/CMakeLists.txt
++++ b/libdiscover/backends/PackageKitBackend/CMakeLists.txt
+@@ -17,5 +17,6 @@
+ #notifier
+ add_library(DiscoverPackageKitNotifier MODULE PackageKitNotifier.cpp)
+ target_link_libraries(DiscoverPackageKitNotifier PRIVATE PK::packagekitqt5 Discover::Notifiers)
++set_target_properties(DiscoverPackageKitNotifier PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
+
+ install(TARGETS DiscoverPackageKitNotifier DESTINATION ${PLUGIN_INSTALL_DIR}/discover-notifier)
+--- a/libdiscover/notifiers/CMakeLists.txt
++++ b/libdiscover/notifiers/CMakeLists.txt
+@@ -7,7 +7,6 @@
+ generate_export_header(DiscoverNotifiers)
+
+ target_include_directories(DiscoverNotifiers PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+-install(TARGETS DiscoverNotifiers ${INSTALL_TARGETS_DEFAULT_ARGS})
++install(TARGETS DiscoverNotifiers DESTINATION ${CMAKE_INSTALL_LIBDIR}/plasma-discover)
+
+ add_library(Discover::Notifiers ALIAS DiscoverNotifiers)
+-
+--- a/notifier/CMakeLists.txt
++++ b/notifier/CMakeLists.txt
+@@ -10,6 +10,8 @@
+
+ Discover::Notifiers
+ )
++set_target_properties(DiscoverNotifierDeclarativePlugin PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR}/plasma-discover)
++
+ install(TARGETS DiscoverNotifierDeclarativePlugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/discovernotifier)
+ install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/discovernotifier)
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..26d71ff
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+01_libdiscover-private.patch
+02_notifiers-private.patch
--
KDE Discover packaging
More information about the pkg-kde-commits
mailing list