[packages/libsshtunnel] - new

qboosh qboosh at pld-linux.org
Fri Mar 21 19:10:36 CET 2025


commit 6818fe8dae8ad9c9b04033505249d82baca03b74
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 21 18:51:56 2025 +0100

    - new

 libsshtunnel-libdir.patch | 13 +++++++++
 libsshtunnel.spec         | 73 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)
---
diff --git a/libsshtunnel.spec b/libsshtunnel.spec
new file mode 100644
index 0000000..130d551
--- /dev/null
+++ b/libsshtunnel.spec
@@ -0,0 +1,73 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+%bcond_without	static_libs	# static libraries
+#
+Summary:	Simple SSH tunnel library
+Summary(pl.UTF-8):	Prosta biblioteka tunelowania SSH
+Name:		libsshtunnel
+Version:	0.2.0
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: https://github.com/bk138/libsshtunnel/releases
+Source0:	https://github.com/bk138/libsshtunnel/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	487db8260166868f7de42169fd3a6c19
+Patch0:		%{name}-libdir.patch
+URL:		https://github.com/bk138/libsshtunnel/
+BuildRequires:	cmake >= 3.10
+BuildRequires:	libssh2-devel
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libsshtunnel is a simple SSH tunnel library to let your networking app
+connect to a host running behind a SSH server.
+
+%description -l pl.UTF-8
+libsshtunnel to prosta biblioteka tunelowania SSH, pozwalająca
+aplikacji sieciowej łączyć się z hostem działającym za serwerem SSH.
+
+%package devel
+Summary:	Header file for libsshtunnel library
+Summary(pl.UTF-8):	Plik nagłówkowy biblioteki libsshtunnel
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header file for libsshtunnel library.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy biblioteki libsshtunnel.
+
+%prep
+%setup -q
+%patch -P0 -p1
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.md
+%attr(755,root,root) %{_libdir}/libsshtunnel.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/libsshtunnel.h
diff --git a/libsshtunnel-libdir.patch b/libsshtunnel-libdir.patch
new file mode 100644
index 0000000..4208860
--- /dev/null
+++ b/libsshtunnel-libdir.patch
@@ -0,0 +1,13 @@
+--- libsshtunnel-0.2.0/CMakeLists.txt.orig	2023-12-09 20:56:34.000000000 +0100
++++ libsshtunnel-0.2.0/CMakeLists.txt	2025-03-21 18:50:14.263480598 +0100
+@@ -96,8 +96,8 @@ add_test(NAME close-of-unused-tunnel COM
+ #
+ # Install built targets
+ install(TARGETS sshtunnel
+-        LIBRARY DESTINATION lib
+-        ARCHIVE DESTINATION lib
++        LIBRARY DESTINATION lib${LIB_SUFFIX}
++        ARCHIVE DESTINATION lib${LIB_SUFFIX}
+         RUNTIME DESTINATION bin
+ )
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libsshtunnel.git/commitdiff/6818fe8dae8ad9c9b04033505249d82baca03b74



More information about the pld-cvs-commit mailing list