Accepting request 173203 from devel:libraries:c_c++
fixed building on older OS/sle targets (forwarded request 173167 from bmanojlovic) OBS-URL: https://build.opensuse.org/request/show/173203 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh2_org?expand=0&rev=27
This commit is contained in:
commit
8a8060e8b1
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 24 07:54:17 UTC 2013 - boris@steki.net
|
||||
|
||||
- fix building on older kernels and older OS / SLE
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 21:13:29 UTC 2013 - crrodriguez@opensuse.org
|
||||
|
||||
|
@ -67,11 +67,17 @@ SECSH-PUBLICKEY.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
# problem with sle 11 sp1 target as it has older kernel and as such fail this
|
||||
%if 0%{?suse_version} > 1110
|
||||
%patch -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac
|
||||
cp src/libssh2_config.h.in example/libssh2_config.h
|
||||
# remove m4 macro files for libtool as they should be picked up by
|
||||
# autoreconf
|
||||
rm -v m4/libtool.m4 m4/lt*
|
||||
autoreconf -fiv
|
||||
export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
||||
%configure \
|
||||
@ -80,12 +86,18 @@ export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
||||
--with-openssl=%{_prefix}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%if !0%{?sles_version}
|
||||
%if 0%{?suse_version} >= 1230
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a
|
||||
|
||||
%post -n libssh2-1 -p /sbin/ldconfig
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user