Accepting request 173167 from home:bmanojlovic:branches:devel:libraries:c_c++
fixed building on older OS/sle targets OBS-URL: https://build.opensuse.org/request/show/173167 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libssh2_org?expand=0&rev=45
This commit is contained in:
parent
581fbe7b99
commit
08367842ae
@ -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
|
Thu Feb 28 21:13:29 UTC 2013 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
@ -67,11 +67,17 @@ SECSH-PUBLICKEY.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%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
|
%patch -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac
|
sed -i -e 's@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g' configure.ac
|
||||||
cp src/libssh2_config.h.in example/libssh2_config.h
|
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
|
autoreconf -fiv
|
||||||
export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
||||||
%configure \
|
%configure \
|
||||||
@ -80,12 +86,18 @@ export CFLAGS="%optflags -DOPENSSL_LOAD_CONF"
|
|||||||
--with-openssl=%{_prefix}
|
--with-openssl=%{_prefix}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%if !0%{?sles_version}
|
||||||
|
%if 0%{?suse_version} >= 1230
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
make install DESTDIR=%{buildroot}
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
%post -n libssh2-1 -p /sbin/ldconfig
|
%post -n libssh2-1 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user