2 Commits

Author SHA256 Message Date
7e24eeb97f Accepting request 1324449 from devel:libraries:c_c++
- use cmake build system so that cmake build files are generated,
  as needed by daggy (forwarded request 1324326 from AndreasStieger)

OBS-URL: https://build.opensuse.org/request/show/1324449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh2_org?expand=0&rev=47
2025-12-27 10:28:47 +00:00
f611847ebc - use cmake build system so that cmake build files are generated,
as needed by daggy

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh2_org?expand=0&rev=81
2025-12-26 12:53:44 +00:00
2 changed files with 33 additions and 30 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Dec 23 20:41:26 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- use cmake build system so that cmake build files are generated,
as needed by daggy
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 22 07:29:06 UTC 2024 - Pedro Monreal <pmonreal@suse.com> Tue Oct 22 07:29:06 UTC 2024 - Pedro Monreal <pmonreal@suse.com>

View File

@@ -2,6 +2,7 @@
# spec file for package libssh2_org # spec file for package libssh2_org
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +17,7 @@
# #
%define sover 1
%define pkg_name libssh2 %define pkg_name libssh2
Name: libssh2_org Name: libssh2_org
Version: 1.11.1 Version: 1.11.1
@@ -29,9 +31,9 @@ Source1: https://www.libssh2.org/download/%{pkg_name}-%{version}.tar.xz.a
Source2: baselibs.conf Source2: baselibs.conf
Source3: libssh2_org.keyring Source3: libssh2_org.keyring
Patch0: libssh2-ocloexec.patch Patch0: libssh2-ocloexec.patch
BuildRequires: libtool BuildRequires: cmake
BuildRequires: openssl-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
# drops build cycle in Factory # drops build cycle in Factory
#!BuildIgnore: groff-full #!BuildIgnore: groff-full
@@ -42,11 +44,11 @@ Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
SECSH-PUBLICKEY. SECSH-PUBLICKEY.
%package -n libssh2-1 %package -n libssh2-%{sover}
Summary: A library implementing the SSH2 protocol Summary: A library implementing the SSH2 protocol
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
%description -n libssh2-1 %description -n libssh2-%{sover}
libssh2 is a library implementing the SSH2 protocol as defined by libssh2 is a library implementing the SSH2 protocol as defined by
Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION, Internet Drafts: SECSH-TRANS, SECSH-USERAUTH, SECSH-CONNECTION,
SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and SECSH-ARCH, SECSH-FILEXFER, SECSH-DHGEX, SECSH-NUMBERS, and
@@ -56,7 +58,7 @@ SECSH-PUBLICKEY.
Summary: A library implementing the SSH2 protocol Summary: A library implementing the SSH2 protocol
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: glibc-devel Requires: glibc-devel
Requires: libssh2-1 = %{version} Requires: libssh2-%{sover} = %{version}
%description -n libssh2-devel %description -n libssh2-devel
libssh2 is a library implementing the SSH2 protocol as defined by libssh2 is a library implementing the SSH2 protocol as defined by
@@ -68,39 +70,34 @@ SECSH-PUBLICKEY.
%autosetup -p1 -n %{pkg_name}-%{version} %autosetup -p1 -n %{pkg_name}-%{version}
%build %build
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac %cmake \
# remove m4 macro files for libtool as they should be picked up by -DCRYPTO_BACKEND=OpenSSL \
rm -v m4/libtool.m4 m4/lt* -DBUILD_EXAMPLES:BOOL=OFF \
autoreconf -fiv -DBUILD_TESTING:BOOL=OFF \
export CFLAGS="%{optflags} -DOPENSSL_LOAD_CONF" %{nil}
%configure \ %cmake_build
--disable-silent_rules \
--enable-shared \
--disable-rpath \
--disable-docker-tests \
--with-libssl-prefix=%{_prefix} \
--with-libz=%{_prefix}
%make_build
%check
%make_build check
%install %install
%make_install %cmake_install
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a # installed via %%license
rm %{buildroot}%{_docdir}/%{name}/COPYING
%post -n libssh2-1 -p /sbin/ldconfig %check
%postun -n libssh2-1 -p /sbin/ldconfig %ctest
%files -n libssh2-1 %ldconfig_scriptlets -n libssh2-%{sover}
%{_libdir}/libssh2.so.1*
%files -n libssh2-%{sover}
%license COPYING
%{_libdir}/libssh2.so.%{sover}{,.*}
%files -n libssh2-devel %files -n libssh2-devel
%doc NEWS docs/BINDINGS.md docs/HACKING.md docs/TODO %license COPYING
%{_docdir}/libssh2_org
%{_libdir}/libssh2.so %{_libdir}/libssh2.so
%{_includedir}/*.h %{_includedir}/*.h
%{_mandir}/man3/* %{_mandir}/man3/*.3%{?ext_man}
%{_libdir}/pkgconfig/libssh2.pc %{_libdir}/pkgconfig/libssh2.pc
%{_libdir}/cmake/libssh2
%changelog %changelog