From e81022b90b53f899cf7a349b1a95f8eb79ee64ab Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 1 Oct 2009 15:39:17 -0400 Subject: lua-loop: initial package --- funpl/lua-loop.spec | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 funpl/lua-loop.spec (limited to 'funpl/lua-loop.spec') diff --git a/funpl/lua-loop.spec b/funpl/lua-loop.spec new file mode 100644 index 0000000..2f5bb1b --- /dev/null +++ b/funpl/lua-loop.spec @@ -0,0 +1,103 @@ +%define luaver 5.1 +%define luapkgdir %{_datadir}/lua/%{luaver} + +Name: lua-loop +Version: 2.3 +Release: 0.1.beta%{?dist} +Summary: Class models for Lua + +Group: Development/Libraries +License: MIT +URL: http://loop.luaforge.net/ +Source0: http://luaforge.net/frs/download.php/3525/loop-2.3-beta.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: lua >= %{luaver}, lua-lpeg >= 0.8.1 +# for checks +BuildRequires: lua-filesystem >= 1.4.1, lua-lunit >= 0.4 +Requires: lua >= %{luaver}, lua-lpeg >= 0.8.1 + +BuildArch: noarch + +%description +LOOP stands for Lua Object-Oriented Programming and is a set of +packages for supporting different models of object-oriented +programming in the Lua language. In fact, Lua is not an +object-oriented language nor it was intended to be because one of the +main goals of Lua is to remain simple and small. However, it provides +facilities as syntactic sugar to support an object-oriented +programming style. Additionally, the extension mechanisms of Lua can +be used to implement most of the traditional object-oriented concepts +commonly available in other languages. This lack of a standard object +model avoids the use of a peculiar model instead of models customized +for particular needs, like simplicity, flexibility or performance. + +The models provided by LOOP are not intended to define a standard for +the Lua language. Instead, they are examples of the introduction of +more traditional object-oriented features into the +language. Particularly, LOOP models are mainly concerned to +dynamicity, although there is an attempt to keep them as simple and +efficient as possible. Additionally, LOOP uses the fundamental Lua +concepts like tables (objects) and meta-tables (classes), +traditionally used to enable an object-oriented programming style, to +provide a common ground for the interoperability of objects and +classes of its different models. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +LOOP stands for Lua Object-Oriented Programming and is a set of +packages for supporting different models of object-oriented +programming in the Lua language. In fact, Lua is not an +object-oriented language nor it was intended to be because one of the +main goals of Lua is to remain simple and small. However, it provides +facilities as syntactic sugar to support an object-oriented +programming style. Additionally, the extension mechanisms of Lua can +be used to implement most of the traditional object-oriented concepts +commonly available in other languages. This lack of a standard object +model avoids the use of a peculiar model instead of models customized +for particular needs, like simplicity, flexibility or performance. + +This package contains documentation for %{name}. + + +%prep +%setup -q -n loop-%{version}-beta +chmod +x lua/*.lua +for f in doc/*.css; do + touch -r $f timestamp.txt + sed -i 's|\r||' $f + touch -r timestamp.txt $f +done + + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{luapkgdir} +cp -pr lua/* $RPM_BUILD_ROOT%{luapkgdir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc LICENSE RELEASE +%{luapkgdir}/* + +%files doc +%defattr(-,root,root,-) +%doc doc/* + + +%changelog +* Thu Oct 1 2009 Michel Salim - 2.3-0.1.beta +- Initial package -- cgit From c90012c696cea771b76b03ff08bebb0c99e1a9fe Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Thu, 1 Oct 2009 15:55:40 -0400 Subject: Make package description more concise --- funpl/lua-loop.spec | 38 +++++++++----------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) (limited to 'funpl/lua-loop.spec') diff --git a/funpl/lua-loop.spec b/funpl/lua-loop.spec index 2f5bb1b..c8a843e 100644 --- a/funpl/lua-loop.spec +++ b/funpl/lua-loop.spec @@ -22,26 +22,14 @@ BuildArch: noarch %description LOOP stands for Lua Object-Oriented Programming and is a set of packages for supporting different models of object-oriented -programming in the Lua language. In fact, Lua is not an -object-oriented language nor it was intended to be because one of the -main goals of Lua is to remain simple and small. However, it provides -facilities as syntactic sugar to support an object-oriented -programming style. Additionally, the extension mechanisms of Lua can -be used to implement most of the traditional object-oriented concepts -commonly available in other languages. This lack of a standard object -model avoids the use of a peculiar model instead of models customized -for particular needs, like simplicity, flexibility or performance. - -The models provided by LOOP are not intended to define a standard for -the Lua language. Instead, they are examples of the introduction of -more traditional object-oriented features into the -language. Particularly, LOOP models are mainly concerned to -dynamicity, although there is an attempt to keep them as simple and -efficient as possible. Additionally, LOOP uses the fundamental Lua -concepts like tables (objects) and meta-tables (classes), -traditionally used to enable an object-oriented programming style, to -provide a common ground for the interoperability of objects and -classes of its different models. +programming in the Lua language. + +LOOP models are mainly concerned with dynamicity, although there is an +attempt to keep them as simple and efficient as +possible. Additionally, LOOP uses fundamental Lua concepts like tables +(objects) and meta-tables (classes), traditionally used to enable an +object-oriented programming style, to provide a common ground for the +interoperability of objects and classes of its different models. %package doc @@ -52,15 +40,7 @@ Requires: %{name} = %{version}-%{release} %description doc LOOP stands for Lua Object-Oriented Programming and is a set of packages for supporting different models of object-oriented -programming in the Lua language. In fact, Lua is not an -object-oriented language nor it was intended to be because one of the -main goals of Lua is to remain simple and small. However, it provides -facilities as syntactic sugar to support an object-oriented -programming style. Additionally, the extension mechanisms of Lua can -be used to implement most of the traditional object-oriented concepts -commonly available in other languages. This lack of a standard object -model avoids the use of a peculiar model instead of models customized -for particular needs, like simplicity, flexibility or performance. +programming in the Lua language. This package contains documentation for %{name}. -- cgit