summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <jwrdegoede@fedoraproject.org>2006-10-15 07:44:53 +0000
committerHans de Goede <jwrdegoede@fedoraproject.org>2006-10-15 07:44:53 +0000
commitc19a056d25c1370a151062e3c66bd262b7d2c6cb (patch)
treed2a459b0f0131bd614f3c769c7a2dbf8b4d47dd7
parent24800980bc6625c0a645715af7410a983167a3df (diff)
downloadlua-c19a056d25c1370a151062e3c66bd262b7d2c6cb.tar.gz
lua-c19a056d25c1370a151062e3c66bd262b7d2c6cb.tar.xz
lua-c19a056d25c1370a151062e3c66bd262b7d2c6cb.zip
* Sun Oct 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-2FC-6-startFC-6-split
- Only link /usr/bin/lua with readline / do not link %{_libdir}/liblua-5.1.so with readline so that we don't cause any License troubles for packages linking against liblua-5.1.so, otherwise lua could drag the GPL only readline lib into the linking of non GPL apps.
-rw-r--r--lua.spec12
1 files changed, 10 insertions, 2 deletions
diff --git a/lua.spec b/lua.spec
index 47230bc..241ac16 100644
--- a/lua.spec
+++ b/lua.spec
@@ -1,6 +1,6 @@
Name: lua
Version: 5.1.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Powerful light-weight programming language
Group: Development/Languages
License: MIT
@@ -40,7 +40,9 @@ chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missin
%build
%configure --with-readline
-make %{?_smp_mflags}
+# hack so that only /usr/bin/lua gets linked with readline as it is the
+# only one which needs this and otherwise we get License troubles
+make %{?_smp_mflags} LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
%install
@@ -69,6 +71,12 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Oct 15 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-2
+- Only link /usr/bin/lua with readline / do not link %%{_libdir}/liblua-5.1.so
+ with readline so that we don't cause any License troubles for packages
+ linking against liblua-5.1.so, otherwise lua could drag the GPL only readline
+ lib into the linking of non GPL apps.
+
* Sat Oct 14 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 5.1.1-1
- New upstream release 5.1.1
- Fix detection of readline during compile (iow add readline support back)