From a0599b457f4257f448c3d6d278ffda2cfe6e526a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:32:06 +0100 Subject: [PATCH] enable debug package, libluajit: require luajit, cleanups [release 2.0.5-2mamba;Thu Apr 02 2020] --- README.md | 2 ++ luajit.spec | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 luajit.spec diff --git a/README.md b/README.md index 97954c2..395c5b0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # luajit +A Just-In-Time Compiler for Lua + diff --git a/luajit.spec b/luajit.spec new file mode 100644 index 0000000..0940695 --- /dev/null +++ b/luajit.spec @@ -0,0 +1,87 @@ +%define libpath %(echo %{_libdir} | cut -d/ -f 3) +Name: luajit +Version: 2.0.5 +Release: 2mamba +Summary: a Just-In-Time Compiler for Lua +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Ercole 'ercolinux' Carpanetto +URL: https://luajit.org/luajit.html +Source: https://luajit.org/download/LuaJIT-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libgcc +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A Just-In-Time Compiler for Lua + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q -n LuaJIT-%{version} + +%build +%make amalg PREFIX=/usr DESTDIR=%{buildroot} TARGET_STRIP=: MULTILIB=%{libpath} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall PREFIX=/usr DESTDIR=%{buildroot} MULTILIB=%{libpath} + + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/luajit +%{_bindir}/luajit-%{version} +%dir %{_datadir}/luajit-%{version} +%dir %{_datadir}/luajit-%{version}/jit +%{_mandir}/man1/%{name}* + +%files -n lib%{name} +%defattr(-,root,root) +%{_datadir}/luajit-%{version}/jit/*.lua +%{_libdir}/libluajit-5.1.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/luajit-2.0 +%{_includedir}/luajit-2.0/*.h +%{_includedir}/luajit-2.0/lua.hpp +%{_libdir}/libluajit-5.1.a +%{_libdir}/pkgconfig/luajit.pc + +%changelog +* Thu Apr 02 2020 Silvan Calarco 2.0.5-2mamba +- enable debug package, libluajit: require luajit, cleanups + +* Thu Apr 02 2020 Ercole 'ercolinux' Carpanetto 2.0.5-1mamba +- package created using the webbuild interface