Michael Vetter 2022-04-29 07:59:45 +00:00 committed by Git OBS Bridge
parent dddfcfeb1c
commit 774831130e
2 changed files with 18 additions and 0 deletions

12
screengrab-link.patch Normal file
View File

@ -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)

View File

@ -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 \