diff --git a/libssh2.spec b/libssh2.spec index 11bf195..ef86d61 100644 --- a/libssh2.spec +++ b/libssh2.spec @@ -12,14 +12,14 @@ Name: libssh2 Version: 1.4.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A library implementing the SSH2 protocol -Group: System Environment/Libraries License: BSD URL: http://www.libssh2.org/ + Source0: http://libssh2.org/download/libssh2-%{version}.tar.gz Patch0: libssh2-1.4.2-utf8.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) + BuildRequires: openssl-devel BuildRequires: zlib-devel BuildRequires: /usr/bin/man @@ -42,7 +42,6 @@ SECSH-DHGEX(04), and SECSH-NUMBERS(10). %package devel Summary: Development files for libssh2 -Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig @@ -52,7 +51,6 @@ developing applications that use libssh2. %package docs Summary: Documentation for libssh2 -Group: Development/Libraries Requires: %{name} = %{version}-%{release} %if %{noarch_docs_package} BuildArch: noarch @@ -87,7 +85,6 @@ make %{?_smp_mflags} sed -i -e 's|[[:space:]]-Wl,[^[:space:]]*||' libssh2.pc %install -rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" find %{buildroot} -name '*.la' -exec rm -f {} \; @@ -113,9 +110,6 @@ echo "exit 0" > tests/ssh2.sh %endif make -C tests check -%clean -rm -rf %{buildroot} - %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -138,6 +132,13 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/libssh2.pc %changelog +* Tue Apr 9 2013 Richard W.M. Jones 1.4.3-5 +- Modernize the spec file: + * Remove BuildRoot. + * Remove Group. + * Remove clean section. + * Don't need to clean up buildroot before installing. + * Wed Apr 3 2013 Paul Howarth 1.4.3-4 - Avoid polluting libssh2.pc with linker options (#947813)