diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-05-11 23:06:13 +0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2012-05-11 23:06:13 +0700 |
commit | 8e85eafb5da3f48660e8f638fff79ca8a4e0092b (patch) | |
tree | 3c2e063f2fcc8e88a7f9317f6a2558e4fe5f67ac | |
parent | 781a8f6a168a4d1fcfe9fc0b4f2acb94b30082b7 (diff) | |
download | specs-8e85eafb5da3f48660e8f638fff79ca8a4e0092b.tar.gz specs-8e85eafb5da3f48660e8f638fff79ca8a4e0092b.tar.xz specs-8e85eafb5da3f48660e8f638fff79ca8a4e0092b.zip |
luarocks: review done
-rw-r--r-- | funpl/luarocks.spec | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/funpl/luarocks.spec b/funpl/luarocks.spec deleted file mode 100644 index 807279d..0000000 --- a/funpl/luarocks.spec +++ /dev/null @@ -1,85 +0,0 @@ -%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: 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 -%if 0%{?el5} -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -%endif - -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 -called "rocks", which also contain version dependency -information. This information is used both during installation, so -that when one rock is requested all rocks it depends on are installed -as well, and at run time, so that when a module is required, the -correct version is loaded. LuaRocks supports both local and remote -repositories, and multiple local rocks trees. - - -%prep -%setup -q -# Remove DOS line endings -for file in COPYING_7z; do - sed "s|\r||g" $file > $file.new && \ - touch -r $file $file.new && \ - mv $file.new $file -done - - -%build -./configure --prefix=%{_prefix} -#{?_smp_mflags} -- luarocks makefile is not thread-safe -make - - -%install -%if 0%{?el5} -rm -rf $RPM_BUILD_ROOT -%endif -make install DESTDIR=$RPM_BUILD_ROOT - - -%files -%doc COPYING* README.md -%dir %{_sysconfdir}/luarocks -%config(noreplace) %{_sysconfdir}/luarocks/config.lua -%{_bindir}/luarocks -%{_bindir}/luarocks-admin -%{luapkgdir}/luarocks - - -%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 |