Updating link to change in openSUSE:Factory/libssh revision 39.0

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh?expand=0&rev=fd9a66e022f3caace2dcd3ca606d5f2c
This commit is contained in:
OBS User buildservice-autocommit 2015-07-23 13:22:10 +00:00 committed by Git OBS Bridge
parent 7f9682e56c
commit 999198db3e
2 changed files with 37 additions and 34 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jul 20 09:29:46 UTC 2015 - tchvatal@suse.com
- Enable testsuite run to check the state of libssh itself
- Use SUSE macros to define environment clearly
- Enable gssapi by adding krb5 dependency
-------------------------------------------------------------------
Tue Jun 30 07:36:31 UTC 2015 - asn@cryptomilk.org

View File

@ -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 @@ Group: Development/Languages/C and C++
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 \
-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}
%cmake \
-DCMAKE_C_FLAGS:STRING="%{optflags} -DOPENSSL_LOAD_CONF" \
-DWITH_CLIENT_TESTING="OFF" \
-DWITH_TESTING="ON" \
-DWITH_GSSAPI=ON \
-DWITH_BENCHMARKS="OFF" \
-DWITH_EXAMPLES="OFF"
make %{?_smp_mflags} VERBOSE=1
%__make doc
popd
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