Name: libssh2 Version: 0.17 Release: 1.n0i.3%{?dist} Summary: A library implementing the SSH2 protocol Group: System Environment/Libraries License: BSD URL: http://www.libssh2.org/ Source0: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: pkgconfig openssl-devel zlib-devel %description libssh2 is a library implementing the SSH2 protocol as defined by Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, SECSH-DHGEX(04), and SECSH-NUMBERS(10). %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig openssl-devel zlib-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %build %configure --disable-static %{__make} %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT # clean up examples folder %{__make} distclean -C example # pkgconfig description file %{__mkdir_p} $RPM_BUILD_ROOT%{_libdir}/pkgconfig %{__cat} << 'EOF' > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libssh2.pc prefix=%{_prefix} exec_prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir} Name: libssh2 Description: SSH2 library Requires.private: openssl zlib Version: %{version} Libs: -L${libdir} -lssh2 Cflags: -I${includedir} EOF %clean %{__rm} -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README %{_libdir}/*.so.* %files devel %defattr(-,root,root,-) %doc ChangeLog example/ %{_libdir}/*.so %exclude %{_libdir}/*.la %{_includedir}/* %{_mandir}/man3/* %{_libdir}/pkgconfig/*.pc %changelog * Sat Sep 15 2007 Marius FERARU - 0.17-1.n0i.3 - version 0.17 - dropped obsoleted "soname" patch - kept more docs * Sun Jun 10 2007 Marius FERARU - 0.14-2.n0i.2 - added a pkgconfig file. * Fri Jun 30 2006 Marius FERARU - 0.14-1.n0i.1 - packaged for Fedora - baked a "soname" patch to keep rpmlint happy