Accepting request 317785 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/317785 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh?expand=0&rev=39
This commit is contained in:
commit
02c3e1dd42
@ -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
|
||||
|
||||
|
62
libssh.spec
62
libssh.spec
@ -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 \
|
||||
%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}
|
||||
-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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user