Hello community, here is the log from the commit of package libssh for openSUSE:Factory checked in at 2015-07-23 15:22:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libssh (Old) and /work/SRC/openSUSE:Factory/.libssh.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libssh" Changes: -------- --- /work/SRC/openSUSE:Factory/libssh/libssh.changes 2015-07-05 17:55:21.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libssh.new/libssh.changes 2015-07-23 15:22:11.000000000 +0200 @@ -1,0 +2,7 @@ +Mon Jul 20 09:29:46 UTC 2015 - [email protected] + +- Enable testsuite run to check the state of libssh itself +- Use SUSE macros to define environment clearly +- Enable gssapi by adding krb5 dependency + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libssh.spec ++++++ --- /var/tmp/diff_new_pack.8brs0m/_old 2015-07-23 15:22:11.000000000 +0200 +++ /var/tmp/diff_new_pack.8brs0m/_new 2015-07-23 15:22:11.000000000 +0200 @@ -16,26 +16,25 @@ # -BuildRequires: cmake -BuildRequires: doxygen -BuildRequires: gcc-c++ -BuildRequires: openssl-devel -BuildRequires: pkgconfig -BuildRequires: xz - Name: libssh Version: 0.7.1 Release: 0 - Summary: The SSH library License: LGPL-2.1+ Group: System/Libraries Url: https://www.libssh.org - +# Dynamic number: https://red.libssh.org/projects/libssh/files Source0: %{name}-%{version}.tar.xz Source99: baselibs.conf Patch0: gcc5-fixes.patch - +BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: gcc-c++ +BuildRequires: krb5-devel +BuildRequires: libcmocka-devel +BuildRequires: openssl-devel +BuildRequires: pkgconfig +BuildRequires: xz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -86,36 +85,33 @@ Documentation for libssh development. %prep -%setup -q -n %{name}-%{version} +%setup -q %patch0 %build -if test ! -e "build"; then - mkdir build -fi -pushd build -cmake \ +%cmake \ -DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \ - -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_SKIP_RPATH=ON \ - -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -%if %{_lib} == lib64 - -DLIB_SUFFIX=64 \ -%endif - %{_builddir}/%{name}-%{version} - -make %{?_smp_mflags} VERBOSE=1 -%__make doc -popd + -DWITH_CLIENT_TESTING="OFF" \ + -DWITH_TESTING="ON" \ + -DWITH_GSSAPI=ON \ + -DWITH_BENCHMARKS="OFF" \ + -DWITH_EXAMPLES="OFF" + +make %{?_smp_mflags} +make %{?_smp_mflags} doc %install -pushd build -%if 0%{?suse_version} -%makeinstall -%else -%__make DESTDIR=%{buildroot} install -%endif -popd +%cmake_install + +# remove the static libs, we don't want them installed, needed by tests +rm -rf %{buildroot}%{_libdir}/*.a + +%check +cd build +make %{?_smp_mflags} test || { + cat Testing/Temporary/LastTest.log; + exit 1; +} %post -n libssh4 -p /sbin/ldconfig
