]>
Commit | Line | Data |
---|---|---|
1 | Summary: Just-in-Time compiler for Lua | |
2 | Summary(pl.UTF-8): Kompilator JIT dla języka Lua | |
3 | Name: luajit | |
4 | Version: 2.0.3 | |
5 | Release: 3 | |
6 | License: MIT | |
7 | Group: Libraries | |
8 | # Source0Download: http://luajit.org/download.html | |
9 | Source0: http://luajit.org/download/LuaJIT-%{version}.tar.gz | |
10 | # Source0-md5: f14e9104be513913810cd59c8c658dc0 | |
11 | URL: http://luajit.org/ | |
12 | BuildRequires: sed >= 4.0 | |
13 | ExclusiveArch: %{ix86} %{x8664} arm mips ppc | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define lua_abi 5.1 | |
17 | ||
18 | %description | |
19 | LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming | |
20 | language. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | LuaJIT to działający w locie (Just-In-Time) kompilator języka Lua. | |
24 | ||
25 | %package devel | |
26 | Summary: Header files for LuaJIT library | |
27 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LuaJIT | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header files for LuaJIT library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Pliki nagłówkowe biblioteki LuaJIT. | |
36 | ||
37 | %package static | |
38 | Summary: Static LuaJIT library | |
39 | Summary(pl.UTF-8): Statyczna biblioteka LuaJIT | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | Static LuaJIT library. | |
45 | ||
46 | %description static -l pl.UTF-8 | |
47 | Statyczna biblioteka LuaJIT. | |
48 | ||
49 | %prep | |
50 | %setup -q -n LuaJIT-%{version} | |
51 | ||
52 | # preserve timestamps | |
53 | sed -i -e '/install -m/s/-m/-p -m/' Makefile | |
54 | ||
55 | %build | |
56 | # Q= - enable verbose output | |
57 | # E= @: - disable @echo messages | |
58 | # NOTE: we use amalgamated build as per documentation suggestion doc/install.html | |
59 | %{__make} \ | |
60 | PREFIX=%{_prefix} \ | |
61 | MULTILIB=%{_lib} \ | |
62 | CC="%{__cc}" \ | |
63 | CCOPT="%{rpmcflags} -fomit-frame-pointer" \ | |
64 | CCOPT_x86= \ | |
65 | MULTILIB=%{_lib} \ | |
66 | E="@:" \ | |
67 | Q= \ | |
68 | amalg | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | %{__make} install \ | |
73 | DESTDIR=$RPM_BUILD_ROOT \ | |
74 | PREFIX=%{_prefix} \ | |
75 | MULTILIB=%{_lib} \ | |
76 | LDCONFIG="/sbin/ldconfig -n" | |
77 | ||
78 | %clean | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %post -p /sbin/ldconfig | |
82 | %postun -p /sbin/ldconfig | |
83 | ||
84 | %files | |
85 | %defattr(644,root,root,755) | |
86 | %doc COPYRIGHT README | |
87 | %attr(755,root,root) %{_bindir}/luajit | |
88 | %attr(755,root,root) %{_bindir}/luajit-%{version} | |
89 | %attr(755,root,root) %{_libdir}/libluajit-%{lua_abi}.so.*.*.* | |
90 | %attr(755,root,root) %ghost %{_libdir}/libluajit-%{lua_abi}.so.2 | |
91 | %{_datadir}/luajit-%{version} | |
92 | %{_mandir}/man1/luajit.1* | |
93 | # lua module dirs (shared with lua interpreters) | |
94 | %dir %{_libdir}/lua | |
95 | %dir %{_libdir}/lua/%{lua_abi} | |
96 | %dir %{_datadir}/lua | |
97 | %dir %{_datadir}/lua/%{lua_abi} | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %doc doc/* | |
102 | %attr(755,root,root) %{_libdir}/libluajit-%{lua_abi}.so | |
103 | %{_includedir}/luajit-2.0 | |
104 | %{_pkgconfigdir}/luajit.pc | |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libluajit-%{lua_abi}.a |