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 \