forked from pool/lua-lpeg
- Switch to multibuild spec for all lua versions
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
3bec9f0cbb
commit
1d7bec7352
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>lua51</package>
|
||||||
|
<package>lua52</package>
|
||||||
|
<package>lua53</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 13 16:12:32 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Switch to multibuild spec for all lua versions
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 17 07:34:12 UTC 2017 - callumjfarmer13@gmail.com
|
Fri Feb 17 07:34:12 UTC 2017 - callumjfarmer13@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lua-lpeg
|
# spec file for package lua-lpeg
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,8 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define flavor @BUILD_FLAVOR@
|
||||||
|
%define _name lgi
|
||||||
%define mod_name lpeg
|
%define mod_name lpeg
|
||||||
Name: lua-%{mod_name}
|
Name: %{flavor}-%{mod_name}
|
||||||
Version: 1.0.1
|
Version: 1.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Parsing Expression Grammars For Lua
|
Summary: Parsing Expression Grammars For Lua
|
||||||
@@ -25,9 +27,13 @@ License: MIT
|
|||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Url: http://www.inf.puc-rio.br/~roberto/lpeg
|
Url: http://www.inf.puc-rio.br/~roberto/lpeg
|
||||||
Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
|
Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
|
||||||
BuildRequires: lua-devel
|
BuildRequires: %{flavor}-devel
|
||||||
Requires: lua
|
Requires: %{flavor}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Provides: %{flavor}-LPeg = %{version}
|
||||||
|
Obsoletes: %{flavor}-LPeg < %{version}
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).
|
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).
|
||||||
@@ -46,6 +52,7 @@ generated by luadoc or ldoc.
|
|||||||
|
|
||||||
# Set our cflags
|
# Set our cflags
|
||||||
sed -i \
|
sed -i \
|
||||||
|
-e 's:../lua/:%{lua_incdir}:' \
|
||||||
-e 's: -O2: %{optflags}:g' \
|
-e 's: -O2: %{optflags}:g' \
|
||||||
makefile
|
makefile
|
||||||
|
|
||||||
@@ -60,12 +67,10 @@ mkdir -p %{buildroot}%{lua_archdir}
|
|||||||
install lpeg.so %{buildroot}%{lua_archdir}
|
install lpeg.so %{buildroot}%{lua_archdir}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{lua_archdir}
|
%dir %{lua_archdir}
|
||||||
%{lua_archdir}/*
|
%{lua_archdir}/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc re.html lpeg.html HISTORY
|
%doc re.html lpeg.html HISTORY
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user