Accepting request 611216 from home:adamm:branches:X11:LXQt

- cleanup cmake build
- build.patch: add missing requirements

OBS-URL: https://build.opensuse.org/request/show/611216
OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/screengrab?expand=0&rev=5
This commit is contained in:
Michael Vetter 2018-05-22 11:05:15 +00:00 committed by Git OBS Bridge
parent 859ddcce88
commit 75f909c16a
3 changed files with 21 additions and 5 deletions

13
build.patch Normal file
View File

@ -0,0 +1,13 @@
Index: screengrab-1.98/CMakeLists.txt
===================================================================
--- screengrab-1.98.orig/CMakeLists.txt
+++ screengrab-1.98/CMakeLists.txt
@@ -261,7 +261,7 @@ if (XCB_XFIXES_FOUND)
target_link_libraries(screengrab ${XCB_XFIXES_LIBRARY})
endif()
-target_link_libraries(screengrab qkeysequencewidget Qt5::Widgets KF5::WindowSystem ${X11_LIBRARIES})
+target_link_libraries(screengrab qkeysequencewidget Qt5::Widgets KF5::WindowSystem Qt5::X11Extras Qt5::Network ${X11_LIBRARIES})
# installing
install(TARGETS screengrab RUNTIME DESTINATION bin)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue May 22 10:58:19 UTC 2018 - adam.majer@suse.de
- cleanup cmake build
- build.patch: add missing requirements
-------------------------------------------------------------------
Tue May 22 10:29:04 UTC 2018 - mvetter@suse.com

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
Patch1: build.patch
BuildRequires: cmake >= 3.0.2
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
@ -53,20 +54,16 @@ Screenshot taker with the ability to publish them via hosting services.
%prep
%setup -q
%patch1 -p1
%build
%cmake \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++11 -lX11 -lQt5X11Extras -I%{_includedir}/qt5/QtNetwork -I%{_includedir}/qt5/QtX11Extras" \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=release \
-DSG_DBUS_NOTIFY=ON \
-DSG_EXT_EDIT=OFF \
-DSG_EXT_UPLOADS=OFF \
-DSG_GLOBALSHORTCUTS=OFF \
-DUPDATE_TRANSLATIONS=OFF
#%make_jobs
%install
%cmake_install
#rm -rf %{buildroot}%{_datadir}/doc