mirror of
https://abf.rosa.ru/djam/lua-zlib.git
synced 2025-02-23 22:02:52 +00:00
Imported from SRPM
This commit is contained in:
commit
6c2efa767c
2 changed files with 42 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
lua-zlib-1.2.tar.gz: 4005d0fc08258742558a8993fa4479307b3771dc
|
40
lua-zlib.spec
Normal file
40
lua-zlib.spec
Normal file
|
@ -0,0 +1,40 @@
|
|||
%define luaver 5.3
|
||||
%define lualibdir %{_libdir}/lua/%{luaver}
|
||||
%define luapkgdir %{_datadir}/lua/%{luaver}
|
||||
%define oname luasql
|
||||
|
||||
Summary: Simple streaming interface to zlib for Lua
|
||||
Name: lua-zlib
|
||||
Version: 1.2
|
||||
Release: 1
|
||||
License: MIT
|
||||
Group: Development/Other
|
||||
URL: https://github.com/brimworks/lua-zlib
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
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
|
Loading…
Add table
Reference in a new issue