Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
57a67dd4d3 | ||
|
0d0da2fa2e | ||
|
258382c44f | ||
|
e12aeb2571 | ||
|
69599a9543 | ||
|
ad9a75b016 |
@ -1 +0,0 @@
|
||||
lua-5.1.3.tar.gz
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
lua-5.1.4.tar.gz
|
2
Makefile
2
Makefile
@ -4,7 +4,7 @@ NAME := lua
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
File diff suppressed because it is too large
Load Diff
30
lua.spec
30
lua.spec
@ -1,12 +1,12 @@
|
||||
Name: lua
|
||||
Version: 5.1.3
|
||||
Release: 5%{?dist}
|
||||
Version: 5.1.4
|
||||
Release: 2%{?dist}
|
||||
Summary: Powerful light-weight programming language
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: http://www.lua.org/
|
||||
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
||||
Patch0: lua-5.1.3-autotoolize.patch
|
||||
Patch0: lua-5.1.4-autotoolize.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: readline-devel ncurses-devel
|
||||
Provides: lua = 5.1
|
||||
@ -31,6 +31,14 @@ Requires: pkgconfig
|
||||
%description devel
|
||||
This package contains development files for %{name}.
|
||||
|
||||
%package static
|
||||
Summary: Static library for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description static
|
||||
This package contains the static version of liblua for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -45,7 +53,7 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
# 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"
|
||||
make %{?_smp_mflags} LIBS="-lm -ldl" luac_LDADD="liblua.la -lm -ldl"
|
||||
# also remove readline from lua.pc
|
||||
sed -i 's/-lreadline -lncurses //g' etc/lua.pc
|
||||
|
||||
@ -53,7 +61,7 @@ sed -i 's/-lreadline -lncurses //g' etc/lua.pc
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
|
||||
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}/lua/5.1
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/lua/5.1
|
||||
|
||||
@ -81,8 +89,20 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/liblua.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%files static
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/*.a
|
||||
|
||||
%changelog
|
||||
* Thu Jun 11 2009 Tim Niemueller <tim@niemueller.de> - 5.1.4-2
|
||||
- Link liblua.so with -lm (math lib), fixes rhbz #499238
|
||||
|
||||
* Wed Sep 03 2008 Tim Niemueller <tim@niemueller.de> - 5.1.4-1
|
||||
- New upstream release 5.1.4
|
||||
|
||||
* Mon May 12 2008 Tim Niemueller <tim@niemueller.de> - 5.1.3-6
|
||||
- Add -static subpackage with static liblua, fixes rh bug #445939
|
||||
|
||||
* Sun Apr 13 2008 Tim Niemueller <tim@niemueller.de> - 5.1.3-5
|
||||
- Provide lua = 5.1, this way add-on packages can easily depend on the Lua
|
||||
base version and expect certain paths for packages
|
||||
|
Loading…
Reference in New Issue
Block a user