diff --git a/libssh.spec b/libssh.spec index 720d1cdbfae2cdd9e7e9a77a21a895387ed82f42..ab686c6affd037a105980a1c61194eddb7c6c36a 100644 --- a/libssh.spec +++ b/libssh.spec @@ -1,9 +1,11 @@ +%undefine __cmake_in_source_build + Name: libssh Version: 0.10.5 -Release: 3 +Release: 4 Summary: A library implementing the SSH protocol -License: LGPLv2+ -URL: http://www.libssh.org +License: LGPL-2.1-or-later +URL: https://www.libssh.org Source0: https://www.libssh.org/files/0.10/%{name}-%{version}.tar.xz Source1: https://www.libssh.org/files/0.10/%{name}-%{version}.tar.xz.asc @@ -61,20 +63,13 @@ gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %autosetup -p1 %build -if test ! -e "obj"; then - mkdir obj -fi -pushd obj - -%cmake .. \ +%cmake \ -DUNIT_TESTING=ON \ -%make_build VERBOSE=1 - -popd +%cmake_build %install -make DESTDIR=%{buildroot} install/fast -C obj +%cmake_install install -d -m755 %{buildroot}%{_sysconfdir}/libssh pushd %{buildroot}%{_libdir} @@ -89,31 +84,27 @@ do done; popd -%ldconfig_scriptlets - %check -pushd obj -ctest --output-on-failure -popd +%ctest %files -%defattr(-,root,root) %doc AUTHORS BSD %license COPYING %{_libdir}/*.so.4* %files devel -%defattr(-,root,root) %{_includedir}/libssh/ %{_libdir}/cmake/libssh/ %{_libdir}/pkgconfig/libssh.pc %{_libdir}/*.so %files help -%defattr(-,root,root) %doc CHANGELOG README %changelog +* Tue Nov 19 2024 Funda Wang - 0.10.5-4 +- adopt to new cmake macro + * Tue Oct 29 2024 bitianyuan - 0.10.5-3 - Type:bugfix - Id:NA diff --git a/libssh.yaml b/libssh.yaml index d8537d8e8be70b5d89ea37ad8b7d784bb488bea7..a8764cd4964c8e609d7839a7ef583b2eb34b6c43 100644 --- a/libssh.yaml +++ b/libssh.yaml @@ -1,4 +1,4 @@ version_control: git src_repo: https://git.libssh.org/projects/libssh.git tag_prefix: libssh- -seperator: . +separator: .