forked from pool/lua-lpeg
OBS-URL: https://build.opensuse.org/request/show/288544 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lpeg?expand=0&rev=1
72 lines
1.9 KiB
RPMSpec
72 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package lua-lpeg
|
|
#
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define mod_name lpeg
|
|
Name: lua-%{mod_name}
|
|
Version: 0.12.1
|
|
Release: 0
|
|
Summary: Parsing Expression Grammars For Lua
|
|
License: MIT
|
|
Group: Development/Libraries/Other
|
|
Url: http://www.inf.puc-rio.br/~roberto/lpeg
|
|
Source: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
|
|
BuildRequires: lua-devel
|
|
Requires: lua
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).
|
|
|
|
%package doc
|
|
Summary: Lua Documentation for %{mod_name}
|
|
Group: Development/Languages/Other
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
Documentation and examples included with the library, sometimes
|
|
generated by luadoc or ldoc.
|
|
|
|
%prep
|
|
%setup -q -n lpeg-%{version}
|
|
|
|
# Set our cflags
|
|
sed -i \
|
|
-e 's: -O2: %{optflags}:g' \
|
|
makefile
|
|
|
|
%build
|
|
make -j1
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}
|
|
mkdir -p %{buildroot}%{lua_archdir}
|
|
|
|
install lpeg.so %{buildroot}%{lua_archdir}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%dir %{lua_archdir}
|
|
%{lua_archdir}/*
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc re.html lpeg.html HISTORY
|
|
|
|
%changelog
|