%define luaver 5.1 %define luapkgdir %{_datadir}/lua/%{luaver} Name: lua-loop Version: 2.3 Release: 0.2.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) Requires: lua >= %{luaver} 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. 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 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. 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} mkdir -p $RPM_BUILD_ROOT%{_bindir} cp -pr lua/loop $RPM_BUILD_ROOT%{luapkgdir} cp -p lua/*.lua $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc LICENSE RELEASE %{_bindir}/*.lua %{luapkgdir}/* %files doc %defattr(-,root,root,-) %doc doc/* %changelog * Sun Nov 7 2010 Michel Salim <salimma@fedoraproject.org> - 2.3-0.2.beta - Move scripts to %%{_bindir} - Remove unneeded dependencies * Thu Oct 1 2009 Michel Salim <salimma@fedoraproject.org> - 2.3-0.1.beta - Initial package