2024-01-21 20:20:17 +03:00
|
|
|
%define luaver 5.3
|
|
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
|
|
%define luapkgdir %{_datadir}/lua/%{luaver}
|
|
|
|
|
|
|
|
Summary: Simple streaming interface to zlib for Lua
|
|
|
|
Name: lua-zlib
|
|
|
|
Version: 1.2
|
2025-02-03 19:47:54 +00:00
|
|
|
Release: 3
|
2024-01-21 20:20:17 +03:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Other
|
|
|
|
URL: https://github.com/brimworks/lua-zlib
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
2024-01-21 17:47:25 +00:00
|
|
|
BuildRequires: cmake
|
2024-01-21 20:20:17 +03:00
|
|
|
BuildRequires: pkgconfig(lua)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README
|
|
|
|
%{lualibdir}/zlib.so
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DLUA_INCLUDE_DIR=%{_inacludedir} \
|
|
|
|
-DUSE_LUA_VERSION=%{luaver} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%{buildroot} \
|
|
|
|
-DLUA_LIBDIR=%{lualibdir} \
|
|
|
|
-DLUA_DIR=%{luapkgdir} \
|
|
|
|
-DLUA_CPATH=%{lualibdir} \
|
|
|
|
-DINSTALL_CMOD:PATH=%{buildroot}%{lualibdir}
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall -C build
|