Группа :: Development/Tools
Пакет: lua5.4-luarocks
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
#TODO:
# 1. check rpath is clear
%define oname luarocks
Name: lua5.4-luarocks
Version: 3.9.2
Release: alt1
Summary: A deployment and management system for Lua modules
License: MIT
Group: Development/Tools
Url: http://www.luarocks.org
BuildArch: noarch
#This is %%luarocks_dbdir_prefix-%current_lua_version
# which is defined in rpm-macros-lua package
Provides: %_prefix/lib/luarocks/rocks-5.4
Requires: chrpath wget p7zip unzip zip
Conflicts: rpm-macros-lua < 1.4
Provides: %oname = %EVR
Conflicts: %oname < %EVR
Conflicts: lua5.3-luarocks
Conflicts: lua5.1-luarocks
Source: http://luarocks.org/releases/%name-%version.tar
#.gz
Source1: %oname.filetrigger
Source2: %oname-files.req.list
BuildPreReq: rpm-macros-lua >= 1.4
BuildRequires: liblua5.4-devel unzip wget
%filter_from_requires /lua5.4(luarocks.test.)/d
%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.
This is the instance for lua 5.4
%prep
%setup
#disable Lua header version check
sed -i 's/^if .*header_version.*LUA_VERSION.*$/if [ OK ]/' configure
%build
./configure \
--prefix=%prefix \
--lua-version=5.4
%install
%makeinstall_std
# RPM triggers
mkdir -p %buildroot%_rpmlibdir/
install -m755 %SOURCE1 %buildroot%_rpmlibdir/%name.filetrigger
install -m644 %SOURCE2 %buildroot%_rpmlibdir/%name-files.req.list
%files
%dir %_sysconfdir/%oname
%config(noreplace) %_sysconfdir/%oname/*
%_bindir/%{oname}*
%_rpmlibdir/%{name}*
%lua_modulesdir_noarch/%{oname}
%doc COPYING README*
%changelog
…
Полный changelog можно просмотреть здесь
# 1. check rpath is clear
%define oname luarocks
Name: lua5.4-luarocks
Version: 3.9.2
Release: alt1
Summary: A deployment and management system for Lua modules
License: MIT
Group: Development/Tools
Url: http://www.luarocks.org
BuildArch: noarch
#This is %%luarocks_dbdir_prefix-%current_lua_version
# which is defined in rpm-macros-lua package
Provides: %_prefix/lib/luarocks/rocks-5.4
Requires: chrpath wget p7zip unzip zip
Conflicts: rpm-macros-lua < 1.4
Provides: %oname = %EVR
Conflicts: %oname < %EVR
Conflicts: lua5.3-luarocks
Conflicts: lua5.1-luarocks
Source: http://luarocks.org/releases/%name-%version.tar
#.gz
Source1: %oname.filetrigger
Source2: %oname-files.req.list
BuildPreReq: rpm-macros-lua >= 1.4
BuildRequires: liblua5.4-devel unzip wget
%filter_from_requires /lua5.4(luarocks.test.)/d
%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.
This is the instance for lua 5.4
%prep
%setup
#disable Lua header version check
sed -i 's/^if .*header_version.*LUA_VERSION.*$/if [ OK ]/' configure
%build
./configure \
--prefix=%prefix \
--lua-version=5.4
%install
%makeinstall_std
# RPM triggers
mkdir -p %buildroot%_rpmlibdir/
install -m755 %SOURCE1 %buildroot%_rpmlibdir/%name.filetrigger
install -m644 %SOURCE2 %buildroot%_rpmlibdir/%name-files.req.list
%files
%dir %_sysconfdir/%oname
%config(noreplace) %_sysconfdir/%oname/*
%_bindir/%{oname}*
%_rpmlibdir/%{name}*
%lua_modulesdir_noarch/%{oname}
%doc COPYING README*
%changelog
…
Полный changelog можно просмотреть здесь