diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2009-10-01 15:39:17 -0400 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2009-10-01 15:39:17 -0400 |
| commit | e81022b90b53f899cf7a349b1a95f8eb79ee64ab (patch) | |
| tree | 7764f3e6040b0e0f5e218d9096ecb4612d38569e /funpl/lua-loop.spec | |
| parent | ca1633f5f53c5dfbdf757663d101befee01c679b (diff) | |
| download | specs-e81022b90b53f899cf7a349b1a95f8eb79ee64ab.tar.gz specs-e81022b90b53f899cf7a349b1a95f8eb79ee64ab.tar.xz specs-e81022b90b53f899cf7a349b1a95f8eb79ee64ab.zip | |
lua-loop: initial package
Diffstat (limited to 'funpl/lua-loop.spec')
| -rw-r--r-- | funpl/lua-loop.spec | 103 |
1 files changed, 103 insertions, 0 deletions
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 <salimma@fedoraproject.org> - 2.3-0.1.beta +- Initial package |
