Dominique Leuenberger 2015-02-25 01:17:44 +00:00 committed by Git OBS Bridge
parent 27643b8566
commit cb711f5af8
4 changed files with 95 additions and 9 deletions

View File

@ -0,0 +1,26 @@
Index: lxqt-panel-0.9.0/CMakeLists.txt
===================================================================
--- lxqt-panel-0.9.0.orig/CMakeLists.txt
+++ lxqt-panel-0.9.0/CMakeLists.txt
@@ -163,6 +163,9 @@ endif()
setByDefault(SHOWDESKTOP_PLUGIN Yes)
if(SHOWDESKTOP_PLUGIN)
+ find_package(ECM 1.0.0 REQUIRED NO_MODULE)
+ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_MODULE_PATH})
+ find_package(XCB REQUIRED COMPONENTS XCB)
set(ENABLED_PLUGINS ${ENABLED_PLUGINS} "Show Desktop")
add_subdirectory(plugin-showdesktop)
endif()
Index: lxqt-panel-0.9.0/plugin-showdesktop/CMakeLists.txt
===================================================================
--- lxqt-panel-0.9.0.orig/plugin-showdesktop/CMakeLists.txt
+++ lxqt-panel-0.9.0/plugin-showdesktop/CMakeLists.txt
@@ -16,6 +16,7 @@ set(LIBRARIES
${LIBRARIES}
${LXQT_GLOBALKEYS_LIBRARIES}
${QTXDG_LIBRARIES}
+ XCB::XCB
)
BUILD_LXQT_PLUGIN(${PLUGIN})

View File

@ -0,0 +1,52 @@
Index: lxqt-panel-0.9.0/plugin-mount/actions/deviceaction.h
===================================================================
--- lxqt-panel-0.9.0.orig/plugin-mount/actions/deviceaction.h
+++ lxqt-panel-0.9.0/plugin-mount/actions/deviceaction.h
@@ -31,7 +31,7 @@
#include <QObject>
#include <QSettings>
-#include <LXQtMount/Mount>
+#include <lxqtmount/LXQtMount/Mount>
namespace {
class MountDevice;
Index: lxqt-panel-0.9.0/plugin-mount/lxqtmountplugin.cpp
===================================================================
--- lxqt-panel-0.9.0.orig/plugin-mount/lxqtmountplugin.cpp
+++ lxqt-panel-0.9.0/plugin-mount/lxqtmountplugin.cpp
@@ -28,7 +28,7 @@
#include "lxqtmountplugin.h"
#include "lxqtmountconfiguration.h"
-#include <LXQtMount/Mount>
+#include <lxqtmount/LXQtMount/Mount>
#include "actions/deviceaction.h"
#include "popup.h"
#include "mountbutton.h"
Index: lxqt-panel-0.9.0/plugin-mount/menudiskitem.cpp
===================================================================
--- lxqt-panel-0.9.0.orig/plugin-mount/menudiskitem.cpp
+++ lxqt-panel-0.9.0/plugin-mount/menudiskitem.cpp
@@ -27,7 +27,7 @@
#include <QDesktopServices>
#include "menudiskitem.h"
-#include <LXQtMount/Mount>
+#include <lxqtmount/LXQtMount/Mount>
#include <XdgIcon>
#include <QDebug>
#include <QUrl>
Index: lxqt-panel-0.9.0/plugin-mount/popup.cpp
===================================================================
--- lxqt-panel-0.9.0.orig/plugin-mount/popup.cpp
+++ lxqt-panel-0.9.0/plugin-mount/popup.cpp
@@ -29,7 +29,7 @@
#include <QGridLayout>
#include <QLabel>
#include <QDesktopWidget>
-#include <LXQtMount/Mount>
+#include <lxqtmount/LXQtMount/Mount>
#include "menudiskitem.h"
#include "popup.h"

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Feb 20 21:13:52 UTC 2015 - sfalken@opensuse.org
- Changed %build and %include to use cmake macros
- Added Patches:
+ lxqt-panel-0.9.0_fix_lxqtmount_include.patch
+ lxqt-panel-0.9.0_add_libxcb_to_cmakelist.patch
-------------------------------------------------------------------
Mon Feb 9 22:39:02 UTC 2015 - sfalken@opensuse.org

View File

@ -24,7 +24,12 @@ License: GPL-2.0+
Group: System/GUI/LXDE-Qt
Url: http://www.lxde.org
Source0: http://downloads.lxqt.org/lxqt/%{version}/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM sfalken@opensuse.org -- Needed for plugin-mount to find the lxqt-mount headers
Patch0: lxqt-panel-0.9.0_fix_lxqtmount_include.patch
# PATCH-FIX-UPSTREAM sfalken@opensuse.org -- Add libxcb to CMakeLists.txt, to comply with --no-undefined --as-needed in cmake
Patch1: lxqt-panel-0.9.0_add_libxcb_to_cmakelist.patch
BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: kguiaddons-devel
@ -69,20 +74,15 @@ Translation files for lxqt-panel
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
mkdir build
pushd build
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
..
%cmake
%__make %{?_smp_mflags}
popd
%install
pushd build
make DESTDIR=$RPM_BUILD_ROOT install
popd
%cmake_install
%fdupes -s %{buildroot}/%{_datadir}
%post -p /sbin/ldconfig