[NLopt/el5: 2/3] fixed nlopt.pc to reflect the correct lib to link against

Björn Esser besser82 at fedoraproject.org
Tue Jan 14 11:42:12 UTC 2014


commit 59cc88ed6525cb162cd7dc334f1c8b49bb253a1e
Author: Björn Esser <bjoern.esser at 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 4d92058..4e885ac 100644
--- a/NLopt.spec
+++ b/NLopt.spec
@@ -17,7 +17,7 @@
 
 Name:			NLopt
 Version:		2.4.1
-Release:		3%{?gitrel}%{?dist}
+Release:		4%{?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 at gmail.com> - 2.4.1-4
+- fixed nlopt.pc to reflect the correct lib to link against
+
 * Sat Dec 28 2013 Kevin Fenzi <kevin at scrye.com> - 2.4.1-3
 - Rebuild to fix broken deps
 


More information about the scm-commits mailing list