Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dareader for openSUSE:Factory checked in at 2022-12-25 15:15:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dareader (Old) and /work/SRC/openSUSE:Factory/.dareader.new.1563 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dareader" Sun Dec 25 15:15:09 2022 rev:2 rq:1045273 version:0.0.0+git20220726.2d7d79c Changes: -------- --- /work/SRC/openSUSE:Factory/dareader/dareader.changes 2022-09-01 22:11:38.560321533 +0200 +++ /work/SRC/openSUSE:Factory/.dareader.new.1563/dareader.changes 2022-12-25 15:15:28.805586062 +0100 @@ -1,0 +2,5 @@ +Sat Oct 8 14:58:29 UTC 2022 - Hillwood Yang <hillw...@opensuse.org> + +- Add fix-link-library.patch, fix build on Leap 15.x + +------------------------------------------------------------------- New: ---- fix-link-library.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dareader.spec ++++++ --- /var/tmp/diff_new_pack.bNw6Z7/_old 2022-12-25 15:15:29.245588552 +0100 +++ /var/tmp/diff_new_pack.bNw6Z7/_new 2022-12-25 15:15:29.265588666 +0100 @@ -26,6 +26,8 @@ License: GPL-3.0+ URL: https://github.com/linuxdeepin/dareader Source0: https://github.com/linuxdeepin/dareader/archive/%{commit}/%{name}-%{shortcommit}.tar.gz +# PATCH-FOR-OPENSUSE fix-link-library.patch hillw...@opensuse.org - Fix library link +Patch0: fix-link-library.patch Group: Productivity/Multimedia/Other BuildRequires: cmake BuildRequires: gcc-c++ @@ -36,7 +38,7 @@ %package -n lib%{name}%{sover} Summary: Read image/video from socket file -Group: Development/Libraries +Group: System/Libraries %description -n lib%{name}%{sover} Read image/video from socket file @@ -51,6 +53,9 @@ %prep %setup -q -n %{name}-%{commit} +%if 0%{?suse_version} <= 1500 +%patch0 -p1 +%endif %build %cmake ++++++ fix-link-library.patch ++++++ diff -Nur a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt 2022-07-26 13:29:00.000000000 +0800 +++ b/CMakeLists.txt 2022-10-11 21:02:14.150197704 +0800 @@ -8,6 +8,7 @@ PUBLIC_HEADER include/dareader/reader.h) configure_file(dareader.pc.in dareader.pc @ONLY) target_include_directories(dareader PUBLIC include) +target_link_libraries(dareader pthread) install(TARGETS dareader LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dareader)