enable debug package, libluajit: require luajit, cleanups [release 2.0.5-2mamba;Thu Apr 02 2020]
This commit is contained in:
parent
2dc98a941f
commit
a0599b457f
87
luajit.spec
Normal file
87
luajit.spec
Normal file
@ -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 <ercole69@gmail.com>
|
||||
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 <silvan.calarco@mambasoft.it> 2.0.5-2mamba
|
||||
- enable debug package, libluajit: require luajit, cleanups
|
||||
|
||||
* Thu Apr 02 2020 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.0.5-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user