[lua-lpeg] Update to 0.10.2

Michel Alexandre Salim salimma at fedoraproject.org
Tue Aug 16 12:32:48 UTC 2011


commit d96e9cad37ae105ba062a16b19c97ba38d977008
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date:   Tue Aug 16 14:32:26 2011 +0200

    Update to 0.10.2

 .gitignore    |    2 +-
 lua-lpeg.spec |   23 ++++++++++++++++-------
 sources       |    2 +-
 3 files changed, 18 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a78784d..1743513 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-lpeg-0.8.1.tar.gz
+/lpeg-0.10.2.tar.gz
diff --git a/lua-lpeg.spec b/lua-lpeg.spec
index d55c729..e922988 100644
--- a/lua-lpeg.spec
+++ b/lua-lpeg.spec
@@ -3,17 +3,19 @@
 %define luapkgdir %{_datadir}/lua/%{luaver}
 
 Name:           lua-lpeg
-Version:        0.9
-Release:        4%{?dist}
+Version:        0.10.2
+Release:        1%{?dist}
 Summary:        Parsing Expression Grammars for Lua
 
 Group:          Development/Libraries
 License:        MIT
-URL:            http://www.inf.puc-rio.br/~roberto/lpeg.html
-Source0:        http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-0.9.tar.gz
+URL:            http://www.inf.puc-rio.br/~roberto/lpeg/
+Source0:        http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
+%if 0%{?el5}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+%endif
 
-BuildRequires:  lua >= %{luaver}, lua-devel >= %{luaver}
+BuildRequires:  lua-devel >= %{luaver}
 Requires:       lua >= %{luaver}
 
 %description
@@ -22,7 +24,9 @@ Grammars (PEGs).
 
 %prep
 %setup -q -n lpeg-%{version}
-%{__sed} -i -e "s|/usr/local/bin/lua5.1|%{_bindir}/lua|" test.lua
+%{__sed} -i -e "s|/usr/bin/env lua5.1|%{_bindir}/lua|" test.lua
+# strict module not part of our Lua 5.1.4
+%{__sed} -i -e 's|require"strict"|-- require"strict"|' test.lua
 %{__chmod} -x test.lua
 
 %build
@@ -42,18 +46,23 @@ Grammars (PEGs).
 %check
 lua test.lua
 
+%if 0%{?rhel}
 %clean
 %{__rm} -rf %{buildroot}
+%endif
 
 
 %files
 %defattr(-,root,root,-)
-%doc lpeg.html re.html lpeg-128.gif test.lua
+%doc HISTORY lpeg.html re.html lpeg-128.gif test.lua
 %{lualibdir}/*
 %{luapkgdir}/*
 
 
 %changelog
+* Tue Aug 16 2011 Michel Salim <salimma at fedoraproject.org> - 0.10.2-1
+- Update to 0.10.2
+
 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
diff --git a/sources b/sources
index 683b3f6..a72775a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-84a4f5fb4b87b90bb1b7284ec6bb69bc  lpeg-0.9.tar.gz
+1402433f02e37ddadff04a3d4118b026  lpeg-0.10.2.tar.gz


More information about the scm-commits mailing list