From 774831130ea3d85e07044e010ba8d0a5a2c2a7239493b24cd23275fda2c2369d Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 29 Apr 2022 07:59:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/screengrab?expand=0&rev=32 --- screengrab-link.patch | 12 ++++++++++++ screengrab.spec | 6 ++++++ 2 files changed, 18 insertions(+) create mode 100644 screengrab-link.patch diff --git a/screengrab-link.patch b/screengrab-link.patch new file mode 100644 index 0000000..6032e0e --- /dev/null +++ b/screengrab-link.patch @@ -0,0 +1,12 @@ +Index: screengrab-2.4.0/CMakeLists.txt +=================================================================== +--- screengrab-2.4.0.orig/CMakeLists.txt ++++ screengrab-2.4.0/CMakeLists.txt +@@ -184,6 +184,7 @@ add_executable(screengrab + + if(SG_EXT_EDIT) + target_link_libraries(screengrab extedit) ++ target_link_libraries(screengrab Qt5Xdg) + endif() + + if(SG_DBUS_NOTIFY) diff --git a/screengrab.spec b/screengrab.spec index c1e7d54..8ddf5b4 100644 --- a/screengrab.spec +++ b/screengrab.spec @@ -26,6 +26,7 @@ URL: https://github.com/lxqt/screengrab Source: https://github.com/lxqt/screengrab/releases/download/%{version}/%{name}-%{version}.tar.xz Source1: https://github.com/lxqt/screengrab/releases/download/%{version}/%{name}-%{version}.tar.xz.asc Source2: %{name}.keyring +Patch0: screengrab-link.patch BuildRequires: cmake >= 3.1.0 BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme @@ -53,8 +54,13 @@ Screenshot taker with the ability to publish them via hosting services. %prep %setup -q +%patch0 -p1 %build +# seems like their cmake doesnt do this +#SUSE_ASNEEDED=0 +#CXXFLAGS="%{optflags} -I%{_includedir}/qt5xdg -lQt5Xdg" + %cmake \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -DSG_DBUS_NOTIFY=ON \