1 Star 0 Fork 32

xujialing/luajit

forked from src-openEuler/luajit 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
luajit.spec 2.17 KB
一键复制 编辑 原始数据 按行查看 历史
xjl15151150045 提交于 2021-08-18 18:29 . ,,,
%global apiver %(v=2.1.0; echo ${v%.${v#[0-9].[0-9].}})
Name: luajit
Version: 2.1.0
Release: 3
Summary: Just-In-Time Compiler for Lua
License: MIT
URL: http://luajit.org/
Source0: http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
Patch0: CVE-2020-15890.patch
Patch1: CVE-2020-24372-1.patch
Patch2: CVE-2020-24372-2.patch
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 riscv64
BuildRequires: gcc
BuildRequires: make
%description
LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language. Lua is a powerful, dynamic and
light-weight programming language. It may be embedded or used as a general-purpose, stand-alone language.
%package devel
Summary: Development files for luajit
Requires: luajit = 2.1.0-%{release}
%description devel
This package contains development files for luajit.
%package help
Summary: Documents for luajit
%description help
Man pages and other related documents for luajit.
%prep
%autosetup -n LuaJIT-2.1.0-beta3 -p1
sed -i -e '/install -m/s/-m/-p -m/' Makefile
%build
%make_build amalg Q= E=@: PREFIX=%{_prefix} TARGET_STRIP=: \
CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" \
MULTILIB=%{_lib}
%install
%make_install PREFIX=%{_prefix} \
MULTILIB=%{_lib}
rm -rf _tmp_html ; mkdir _tmp_html
cp -a doc _tmp_html/html
ln -s luajit-2.1.0-beta3 %{buildroot}%{_bindir}/luajit
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc README COPYRIGHT
%{_bindir}/%{name}
%{_bindir}/%{name}-2.1.0-beta3
%{_libdir}/lib%{name}-*.so.*
%{_datadir}/%{name}-2.1.0-beta3/
%files devel
%doc _tmp_html/html/
%{_includedir}/%{name}-%{apiver}/
%{_libdir}/lib%{name}-*.so
%{_libdir}/pkgconfig/%{name}.pc
%exclude %{_libdir}/*.a
%files help
%{_mandir}/man1/%{name}.1*
%changelog
* Wed Jun 30 2021 liuyumeng <[email protected]> - 2.1.0-3
- add BuildRequires: gcc
* Mon Feb 8 2021 zhanghua <[email protected]> - 2.1.0-2
- fix CVE-2020-24372
* Mon Jan 11 2021 zhangatao <[email protected]> - 2.1.0-1
- fix CVE-2020-15890
* Sun Mar 15 2020 zhangatao <[email protected]> - 2.1.0-0.8beta3
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sticky-rice-wine/luajit.git
[email protected]:sticky-rice-wine/luajit.git
sticky-rice-wine
luajit
luajit
master

搜索帮助