Changes of Revision 3
[-] | Added | libssh2.spec |
x 1
2 +#norootforbuild 3 +Summary: A library implementing the SSH2 protocol 4 +Name: libssh2 5 +Version: 0.18 6 +Release: 0 7 +Group: Development/Libraries 8 +Source: http://heanet.dl.sourceforge.net/sourceforge/libssh2/%{name}-%{version}.tar.bz2 9 +URL: http://www.libssh2.org/ 10 +License: BSD 11 +BuildRoot:%{_tmppath}/%{name}-%{version}-build 12 +BuildRequires: openssl-devel zlib-devel pkgconfig 13 +%description 14 +libssh2 is a library implementing the SSH2 protocol as defined by 15 +Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), 16 +SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, 17 +SECSH-DHGEX(04), and SECSH-NUMBERS(10). 18 + 19 +%package -n libssh2-1 20 +Summary: A library implementing the SSH2 protocol 21 +Group: Development/Libraries 22 +Provides: libssh2 = %{version} 23 +Obsoletes: libssh2 < %{version} 24 + 25 +%description -n libssh2-1 26 + 27 +libssh2 is a library implementing the SSH2 protocol as defined by 28 +Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), 29 +SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, 30 +SECSH-DHGEX(04), and SECSH-NUMBERS(10). 31 + 32 +This package contains only the shared library 33 + 34 +%package devel 35 +Summary: Include files for libssh2 36 +Group: Development/Libraries 37 +Requires: libssh2-1 = %{version} glibc-devel 38 + 39 +%description devel 40 + 41 +libssh2 is a library implementing the SSH2 protocol as defined by 42 +Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), 43 +SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, 44 +SECSH-DHGEX(04), and SECSH-NUMBERS(10). 45 + 46 +%prep 47 + 48 +%setup -q -n %{name}-%{version} 49 + 50 +# /me hides :-) 51 +%{__rm} -f configure 52 +%{__sed} -i -e s@/lib/libz@/%{_lib}/libz@g -e s@/lib/libcrypto@/%{_lib}/libcrypto@g configure.in 53 +%{__sed} -i -e 's|LIBZ_LIBDIR=.*|LIBZ_LIBDIR=%{_libdir}|g' configure.in 54 +%{__sed} -i -e 's|OPENSSL_LIBLINE=".*"| OPENSSL_LIBLINE="-lcrypto"|g' configure.in 55 + 56 +%build 57 + 58 +./buildconf --force 59 + 60 +CFLAGS="%{optflags} -fno-strict-aliasing" 61 +CXXFLAGS="%{optflags} -fno-strict-aliasing" 62 +%if 0%{?suse_version} > 1000 63 +CFLAGS="$CFLAGS -fstack-protector" 64 +CXXFLAGS="$CXXFLAGS -fstack-protector" 65 +%endif 66 + 67 +export CFLAGS 68 +export CXXFLAGS 69 + 70 +%configure --disable-static --with-pic --disable-rpath --with-libz=%{_usr} --with-openssl=%{_usr} 71 + 72 + 73 +%install 74 + 75 +%{__make} install DESTDIR=%{buildroot} 76 +%{__rm} -f %{buildroot}%{_libdir}/*.la 77 + 78 +%check 79 + 80 +%{__make} check 81 + 82 +%clean 83 + 84 +%{__rm} -rf %{buildroot} 85 + 86 +%post -n libssh2-1 -p /sbin/ldconfig 87 + 88 +%postun -n libssh2-1 -p /sbin/ldconfig 89 + 90 +%files -n libssh2-1 91 +%defattr(-,root,root) 92 +%{_libdir}/libssh2.so.1* 93 + 94 +%files devel 95 +%defattr(-,root,root) 96 +%{_libdir}/libssh2.so 97 +%{_includedir}/*.h 98 +%{_mandir}/man3/* 99 + 100 +%changelog 101 +* Mon Apr 09 2007 judas_iscariote@shorewall.net 102 +- update to version 0.1520070410 103 +- run make check 104 +* Fri Dec 29 2006 - judas_iscariote@shorewall.net 105 +- Add a quick and dirty hack to build correctly on 64 bit 106 + 107 |