commit 5acb5cbea97c5e8de3edf2a193f248e306d5a08f Author: Björn Esser bjoern.esser@gmail.com Date: Tue Jan 14 12:26:50 2014 +0100
fixed nlopt.pc to reflect the correct lib to link against
NLopt.spec | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) --- diff --git a/NLopt.spec b/NLopt.spec index eb09250..8e47c85 100644 --- a/NLopt.spec +++ b/NLopt.spec @@ -17,7 +17,7 @@
Name: NLopt Version: 2.4.1 -Release: 2%{?gitrel}%{?dist} +Release: 3%{?gitrel}%{?dist} Summary: Open-Source library for nonlinear optimization %{?el5:Group: System Environment/Libraries}
@@ -229,6 +229,12 @@ done touch swig/nlopt.scm.in %{!?el5:autoreconf -fiv}
+# Fix library-name in pkg-config file. +_file="%{lc_name}.pc.in" && \ +sed -i.orig -e 's!-l%{lc_name}!&_cxx!' ${_file} && \ +touch -r ${_file}.orig ${_file} && \ +rm -f ${_file}.orig + %if 0%{?fedora} || 0%{?rhel} >= 7 # Creating a copy for building the Python3-plugin. rm -rf %{py3dir} @@ -399,6 +405,9 @@ octave -H -q --no-window-system --no-site-file --eval "pkg rebuild" %endif
%changelog +* Tue Jan 14 2014 Björn Esser bjoern.esser@gmail.com - 2.4.1-3 +- fixed nlopt.pc to reflect the correct lib to link against + * Sat Dec 28 2013 Björn Esser bjoern.esser@gmail.com - 2.4.1-2 - rebuild for octave-3.8.0-rc2