| |
@@ -2,14 +2,15 @@
|
| |
|
| |
%global luajit_version_major 2
|
| |
%global luajit_version_minor 1
|
| |
- %global luajit_version_patch 1707061634
|
| |
+ %global luajit_version_patch 1713773202
|
| |
%global luajit_version %{luajit_version_major}.%{luajit_version_minor}.%{luajit_version_patch}
|
| |
-
|
| |
+ %global abi_version 5.1
|
| |
|
| |
Name: luajit
|
| |
Version: %{luajit_version}
|
| |
%global apiver %(v=%{version}; echo ${v%.${v#[0-9].[0-9].}})
|
| |
Release: 2%{?dist}
|
| |
+ Provides: lua(abi) = %abi_version
|
| |
Summary: Just-In-Time Compiler for Lua
|
| |
License: MIT
|
| |
URL: http://luajit.org
|
| |
@@ -39,6 +40,20 @@
|
| |
The virtual machine (VM) is API- and ABI-compatible to the standard
|
| |
Lua interpreter and can be deployed as a drop-in replacement.
|
| |
|
| |
+ %package srpm-macros
|
| |
+ Summary: Source RPM macros for %{name}
|
| |
+
|
| |
+ %description srpm-macros
|
| |
+ This package contains source RPM macros for %{name}.
|
| |
+
|
| |
+
|
| |
+ %package rpm-macros
|
| |
+ Summary: RPM macros for %{name}
|
| |
+ Requires: rpm_macro(luajit_abi_version)
|
| |
+
|
| |
+ %description rpm-macros
|
| |
+ This package contains RPM macros for %{name}.
|
| |
+
|
| |
%package devel
|
| |
Summary: Development files for %{name}
|
| |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
@@ -70,6 +85,19 @@
|
| |
MULTILIB=%{_lib} \
|
| |
%{?_smp_mflags}
|
| |
|
| |
+ cat << EOF > macros.%{name}-srpm
|
| |
+ %%luajit_version_major %luajit_version_major
|
| |
+ %%luajit_version_minor %luajit_version_minor
|
| |
+ %%luajit_version_patch %luajit_version_patch
|
| |
+ %%luajit_version %luajit_version
|
| |
+ %%luajit_abi_version %abi_version
|
| |
+ EOF
|
| |
+
|
| |
+ cat << EOF > macros.%{name}
|
| |
+ %%luajit_libdir %%{_libdir}/lua/%%{luajit_abi_version}
|
| |
+ %%luajit_pkgdir %%{_datadir}/lua/%%{luajit_abi_version}
|
| |
+ EOF
|
| |
+
|
| |
%install
|
| |
# PREREL= - disable -betaX suffix
|
| |
# INSTALL_TNAME - executable name
|
| |
@@ -79,6 +107,9 @@
|
| |
rm -rf _tmp_html ; mkdir _tmp_html
|
| |
cp -a doc _tmp_html/html
|
| |
|
| |
+ install -Dm644 {,%{buildroot}%{rpmmacrodir}/}macros.%{name}-srpm
|
| |
+ install -Dm644 {,%{buildroot}%{rpmmacrodir}/}macros.%{name}
|
| |
+
|
| |
# Remove static .a
|
| |
find %{buildroot} -type f -name *.a -delete -print
|
| |
|
| |
@@ -96,6 +127,12 @@
|
| |
%{_mandir}/man1/%{name}.1*
|
| |
%{_datadir}/%{name}-%{luajit_version_major}.%{luajit_version_minor}/
|
| |
|
| |
+ %files srpm-macros
|
| |
+ %{rpmmacrodir}/macros.%{name}-srpm
|
| |
+
|
| |
+ %files rpm-macros
|
| |
+ %{rpmmacrodir}/macros.%{name}
|
| |
+
|
| |
%files devel
|
| |
%doc _tmp_html/html/
|
| |
%{_includedir}/%{name}-%{apiver}/
|
| |