diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-05-11 11:04:20 +0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-05-11 11:04:20 +0700 |
commit | 459c5e924b547421f92f00204307835d758392f2 (patch) | |
tree | 7a1bbe2fec2b8033aab1800401a119e8681d9ec2 | |
parent | a9be37f22073c724c8ccf79f278d4588c09d5937 (diff) | |
download | specs-459c5e924b547421f92f00204307835d758392f2.tar.gz specs-459c5e924b547421f92f00204307835d758392f2.tar.xz specs-459c5e924b547421f92f00204307835d758392f2.zip |
Update luarocks spec to fully support RHEL
-rw-r--r-- | funpl/luarocks.spec | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/funpl/luarocks.spec b/funpl/luarocks.spec index 89e3554..a5beda8 100644 --- a/funpl/luarocks.spec +++ b/funpl/luarocks.spec @@ -1,19 +1,36 @@ %global luaver 5.1 +%global luanext 5.2 %global luapkgdir %{_datadir}/lua/%{luaver} +%if 0%{?el5} +# For some reason find-debuginfo.sh is still triggered on RHEL 5, despite +# BuildArch being noarch -- the script then fails. Explicitly disable it +%global debug_package %{nil} +%endif + Name: luarocks Version: 2.0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A deployment and management system for Lua modules License: MIT +%if 0%{?rhel} +# RHEL 5's rpm requires this field +# RHEL 6's rpmlint warns if it is unspecified +Group: Development/Tools +%endif URL: http://luarocks.org Source0: http://luarocks.org/releases/luarocks-%{version}.tar.gz BuildArch: noarch BuildRequires: lua-devel +%if 0%{?fedora} >= 16 Requires: lua(abi) = %{luaver} +%else # for RHEL 5 and 6 +Requires: lua >= %{luaver} +Requires: lua < %{luanext} +%endif %description LuaRocks allows you to install Lua modules as self-contained packages @@ -42,7 +59,9 @@ make %install +%if 0%{?el5} rm -rf $RPM_BUILD_ROOT +%endif make install DESTDIR=$RPM_BUILD_ROOT @@ -56,5 +75,8 @@ make install DESTDIR=$RPM_BUILD_ROOT %changelog +* Fri May 11 2012 Michel Salim <salimma@fedoraproject.org> - 2.0.8-2 +- Add support for RHEL's older lua packaging + * Tue May 8 2012 Michel Salim <salimma@fedoraproject.org> - 2.0.8-1 - Initial package |