From 9be2e2d94f86e4534fe837082b9e2b35adf3c5d9 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Apr 03 2013 11:51:14 +0000 Subject: Avoid polluting libssh2.pc with linker options (#947813) --- diff --git a/libssh2.spec b/libssh2.spec index 7ea624f..4027c75 100644 --- a/libssh2.spec +++ b/libssh2.spec @@ -9,7 +9,7 @@ Name: libssh2 Version: 1.4.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A library implementing the SSH2 protocol Group: System Environment/Libraries License: BSD @@ -76,6 +76,9 @@ chcon $(/usr/sbin/matchpathcon -n /etc/ssh/ssh_host_key) tests/etc/{host,user} | %configure --disable-static --enable-shared make %{?_smp_mflags} +# Avoid polluting libssh2.pc with linker options (#947813) +sed -i -e 's|[[:space:]]-Wl,[^[:space:]]*||' libssh2.pc + %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} INSTALL="install -p" @@ -128,6 +131,9 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/libssh2.pc %changelog +* Wed Apr 3 2013 Paul Howarth 1.4.3-2 +- Avoid polluting libssh2.pc with linker options (#947813) + * Wed Nov 28 2012 Paul Howarth 1.4.3-1 - Update to 1.4.3 - compression: add support for zlib@openssh.com