Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package qore-ssh2-module for 
openSUSE:Factory checked in at 2021-08-01 22:41:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/qore-ssh2-module (Old)
 and      /work/SRC/openSUSE:Factory/.qore-ssh2-module.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "qore-ssh2-module"

Sun Aug  1 22:41:19 2021 rev:6 rq:909444 version:1.3.0+qore0.9.15

Changes:
--------
--- /work/SRC/openSUSE:Factory/qore-ssh2-module/qore-ssh2-module.changes        
2021-04-22 18:05:01.922604522 +0200
+++ 
/work/SRC/openSUSE:Factory/.qore-ssh2-module.new.1899/qore-ssh2-module.changes  
    2021-08-01 22:41:19.795721824 +0200
@@ -1,0 +2,15 @@
+Thu Jul 29 07:54:14 UTC 2021 - Ferdinand Thiessen <[email protected]>
+
+- Update to version 1.3.0 for qore release 0.9.15
+  (version can be found inside the CMakeLists.txt, the git tag
+  describes only the compatible qore release)
+  * added the Ssh2Connections user module
+  * added the get() and put() SFTPClient methods supporting streams
+  * fixed bugs retrieving zero-length text files with SFTPClient
+    getFile, getTextFile, get, and retrieveFile
+  * fixed bugs streaming data with SFTPClient transferFile, and put
+- Use cmake and modernized the spec file
+- Make module compatible with current qore package
+- Add cmake-fix-missing-pthread.patch
+
+-------------------------------------------------------------------

Old:
----
  qore-ssh2-module-0.9.9.tar.bz2

New:
----
  cmake-fix-missing-pthread.patch
  module-ssh2-release-0.9.15.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ qore-ssh2-module.spec ++++++
--- /var/tmp/diff_new_pack.COIVYS/_old  2021-08-01 22:41:20.367721151 +0200
+++ /var/tmp/diff_new_pack.COIVYS/_new  2021-08-01 22:41:20.371721146 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package qore-ssh2-module
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,72 +12,73 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
+%define qore_version 0.9.15
+%define src_name module-ssh2-release-%{qore_version}
 %define module_api %(qore --latest-module-api 2>/dev/null)
-%define module_dir %{_libdir}/qore-modules
-
 Name:           qore-ssh2-module
-Version:        0.9.9
+Version:        1.3.0+qore%{qore_version}
 Release:        0
 Summary:        SSH2 module for Qore
-License:        LGPL-2.1+ or GPL-2.0+ or MIT
-Group:          Development/Languages
-Url:            http://qore.org
-Source:         
http://prdownloads.sourceforge.net/qore/%{name}-%{version}.tar.bz2
+License:        LGPL-2.1-or-later OR MIT
+Group:          Development/Languages/Misc
+URL:            https://www.qore.org/
+Source:         
https://github.com/qorelanguage/module-ssh2/archive/refs/tags/release-%{qore_version}.tar.gz#/%{src_name}.tar.gz
+# PATCH-FIX-UPSTREAM cmake-fix-missing-pthread.patch -- 
https://github.com/qorelanguage/module-ssh2/pull/106
+Patch0:         cmake-fix-missing-pthread.patch
+BuildRequires:  cmake
 BuildRequires:  doxygen
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  libssh2-devel >= 1.1
-BuildRequires:  openssl-devel
+BuildRequires:  graphviz
+BuildRequires:  pkgconfig
 BuildRequires:  qore
-BuildRequires:  qore-devel >= 0.8.5
-Requires:       %{_bindir}/env
-Requires:       qore-module-api-%{module_api}
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  qore-devel >= 0.9.0
+BuildRequires:  pkgconfig(libssh2)
+BuildRequires:  pkgconfig(openssl)
+Requires:       qore-module(abi)%{?_isa} = %{module_api}
+Suggests:       %{name}-doc = %{version}
 
 %description
+This module provides access to ssh2 sessions and the sftp protocol
+via libssh2 in the Qore programming language.
+
+%package doc
+Summary:        Documentation and examples for the Qore SSH2 module
+Group:          Development/Languages/Misc
+Requires:       %{name} = %{version}
+
+%description doc
 SSH2 module for the Qore Programming Language.
 
+This RPM provides API documentation, test and example programs
+
 %prep
-%setup -q
-%ifarch %{arm} aarch64
-# Drop -m64/-m32 flags on Arm
-sed -i -e 's/ -m64//g' configure
-sed -i -e 's/ -m32//g' configure
-%endif
+%setup -q -n %{src_name}
+%patch0 -p1
 
 %build
-%ifarch x86_64 aarch64 ppc64 ppc64le s390x
-c64=--enable-64bit
-%endif
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure 
RPM_OPT_FLAGS="%{optflags}" --prefix=/usr --disable-debug $c64
-make %{?_smp_mflags}
+%cmake
+%make_build docs
 
 %install
-mkdir -p %{buildroot}/%{module_dir}
-mkdir -p %{buildroot}%{_datadir}/doc/qore-ssh2-module
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
-%fdupes -s docs
-
-%files
-%defattr(-,root,root,-)
-%{module_dir}
-%doc COPYING.LGPL COPYING.MIT README RELEASE-NOTES ChangeLog AUTHORS
-
-%package doc
-Summary:        SSH2 module for Qore
-Group:          Development/Languages
+%cmake_install
+%fdupes %{buildroot}%{_datadir}
+# Fix docs installed by RPM
+%fdupes -s build/docs
 
-%description doc
-SSH2 module for the Qore Programming Language.
 
-This RPM provides API documentation, test and example programs
+%files
+%license COPYING.LGPL COPYING.MIT
+%{_libdir}/qore-modules/*
+%{_datadir}/qore-modules/SftpPoller.qm
+%{_datadir}/qore-modules/SftpPollerUtil.qm
+%{_datadir}/qore-modules/Ssh2Connections.qm
 
 %files doc
-%defattr(-,root,root,-)
-%doc docs/ssh2/html test/
+%doc README build/docs/*
 
 %changelog

++++++ cmake-fix-missing-pthread.patch ++++++
diff -Nur module-ssh2-release-0.9.15/CMakeLists.txt new/CMakeLists.txt
--- module-ssh2-release-0.9.15/CMakeLists.txt   2021-05-06 11:23:18.000000000 
+0200
+++ new/CMakeLists.txt  2021-07-29 10:05:54.288042931 +0200
@@ -84,6 +84,7 @@
 )
 
 add_library(${module_name} SHARED ${CPP_SRC} ${QPP_SOURCES})
+target_link_libraries(${module_name} ${CMAKE_THREAD_LIBS_INIT})
 set(MODULE_DOX_INPUT ${CMAKE_BINARY_DIR}/mainpage.dox ${_dox_src})
 qore_external_binary_module(${module_name} ${PROJECT_VERSION} 
${LIBSSH2_LDFLAGS})
 

Reply via email to