diff --git a/libssh.spec b/libssh.spec index 07f177e..05773c8 100644 --- a/libssh.spec +++ b/libssh.spec @@ -1,17 +1,18 @@ Name: libssh -Version: 0.2 -Release: 4%{?dist} +Version: 0.4.0 +Release: 1%{?dist} Summary: A library implementing the SSH2 protocol (0xbadc0de version) Group: System Environment/Libraries License: LGPLv2+ -URL: http://0xbadc0de.be/?part=libssh -Source0: http://0xbadc0de.be/libssh/%{name}-%{version}.tgz -Patch0: libssh-0.2-libdir.patch +#original URL: http://0xbadc0de.be/?part=libssh +URL: http://www.libssh.org/ +Source0: http://www.libssh.org/files/rc/%{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: openssl-devel BuildRequires: zlib-devel +BuildRequires: cmake %description The SSH library with @@ -33,14 +34,16 @@ developing applications that use %{name}. %prep %setup -q -%patch0 -p1 -b .libdir %build -%configure --disable-static --enable-shared -make # doesn't build with %{?_smp_mflags} +mkdir obj +cd obj +%cmake .. +make %install rm -rf $RPM_BUILD_ROOT +cd obj make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} + chmod 644 $RPM_BUILD_ROOT/usr/include/libssh/* @@ -54,7 +57,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc AUTHORS CHANGELOG COPYING README +%doc AUTHORS BSD ChangeLog COPYING README %{_libdir}/*.so.* %files devel @@ -63,6 +66,15 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Fri Dec 11 2009 Jan F. Chadima - 0.4.0-1 +- bounce versionn to 0.4.0 (#541010) + +* Thu Nov 26 2009 Jan F. Chadima - 0.3.92-2 +- typo in spec file + +* Thu Nov 26 2009 Jan F. Chadima - 0.3.92-1 +- bounce versionn to 0.3.92 (0.4 beta2) (#541010) + * Fri Aug 21 2009 Tomas Mraz - 0.2-4 - rebuilt with new openssl @@ -74,3 +86,4 @@ rm -rf $RPM_BUILD_ROOT * Mon Jun 01 2009 Jan F. Chadima - 0.2-1 - Initial build + diff --git a/sources b/sources index efc16e4..3518d23 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8a76c03579a3e27046e6bafe88ffd171 libssh-0.2.tgz +bcb3d567bacd54c9f6b5b0e8c4d1102c libssh-0.4.0.tar.gz