From 420a221f03a379fb2121c4f09f88fac4f5d9e48e Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jan 15 2017 05:09:43 +0000 Subject: Update to 1.0.1 --- diff --git a/.gitignore b/.gitignore index 1ed3d2b..74cd9b8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/lpeg-0.12.2.tar.gz +/lpeg-1.0.1.tar.gz diff --git a/lua-lpeg.spec b/lua-lpeg.spec index 0d8ae9c..55c7e1b 100644 --- a/lua-lpeg.spec +++ b/lua-lpeg.spec @@ -1,10 +1,11 @@ -%{!?luaver: %global luaver %(lua -e "print(string.sub(_VERSION, 5))")} + +%{!?luaver: %global luaver %(test -x /usr/bin/lua && lua -e "print(string.sub(_VERSION, 5))" || echo 5.3)} %global lualibdir %{_libdir}/lua/%{luaver} %global luapkgdir %{_datadir}/lua/%{luaver} Name: lua-lpeg -Version: 0.12.2 -Release: 2%{?dist} +Version: 1.0.1 +Release: 1%{?dist} Summary: Parsing Expression Grammars for Lua Group: Development/Libraries @@ -15,19 +16,19 @@ Source0: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %endif -BuildRequires: lua-devel >= %{luaver} +BuildRequires: lua-devel +%if 0%{?fedora} || 0%{?rhel} >= 7 +Requires: lua(abi) = %{luaver} +%else Requires: lua >= %{luaver} +%endif %description LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). %prep -%setup -q -n lpeg-%{version} -%{__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 +%autosetup -n lpeg-%{version} %build make %{?_smp_mflags} COPT="%{optflags}" @@ -59,6 +60,9 @@ lua test.lua %changelog +* Sun Jan 15 2017 Michel Alexandre Salim - 1.0.1-1 +- Update to 1.0.1 + * Thu Feb 04 2016 Fedora Release Engineering - 0.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index bdb8072..45716fc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fabb614eb46e370d4f6b8fd82d17ca7e lpeg-0.12.2.tar.gz +SHA512 (lpeg-1.0.1.tar.gz) = 7b43fbee7eff443000986684bc56bba6d2796a31cf860740746c70e155bdea1b62a46b93f97e2747e3ef0f63e965148778ac2985d0f2d83e1e37ec4ebbabf4aa