2017-07-14 11:21:31 +00:00
|
|
|
#
|
2017-07-14 11:28:49 +00:00
|
|
|
# spec file for package lua-zlib
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
2020-07-06 19:08:20 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-07-06 19:08:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-14 11:28:49 +00:00
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
|
|
%define mod_name zlib
|
|
|
|
Version: 1.1
|
2017-07-14 11:21:31 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple streaming interface to zlib for Lua
|
2017-07-14 11:28:49 +00:00
|
|
|
License: MIT OR X11
|
2017-07-14 11:21:31 +00:00
|
|
|
Group: Productivity/Archiving/Compression
|
2020-07-06 19:08:20 +00:00
|
|
|
URL: https://github.com/brimworks/lua-zlib
|
2017-07-14 11:28:49 +00:00
|
|
|
Source: https://github.com/brimworks/lua-zlib/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{flavor}-devel
|
2017-07-14 11:21:31 +00:00
|
|
|
BuildRequires: zlib-devel
|
2017-07-14 11:28:49 +00:00
|
|
|
Requires: %{flavor}
|
2021-02-18 17:28:58 +00:00
|
|
|
%lua_provides
|
2017-07-14 11:28:49 +00:00
|
|
|
%if "%{flavor}" == ""
|
2017-07-15 07:33:57 +00:00
|
|
|
Name: lua-%{mod_name}
|
2017-07-14 11:28:49 +00:00
|
|
|
ExclusiveArch: do_not_build
|
2017-07-15 07:33:57 +00:00
|
|
|
%else
|
|
|
|
Name: %{flavor}-%{mod_name}
|
2017-07-14 11:21:31 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
lua-zlib is a simple streaming interface to zlib for Lua.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n lua-zlib-%{version}
|
|
|
|
|
|
|
|
%build
|
2020-07-09 20:05:00 +00:00
|
|
|
%make_build linux \
|
2017-07-14 11:35:25 +00:00
|
|
|
INCDIR="-I%{lua_incdir}" \
|
2017-07-14 11:28:49 +00:00
|
|
|
LUAPATH="%{lua_noardir}" \
|
|
|
|
LUACPATH="%{lua_archdir}" \
|
2017-07-14 11:37:49 +00:00
|
|
|
CFLAGS="%{optflags} -fPIC"
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-14 11:35:25 +00:00
|
|
|
mkdir -p %{buildroot}/%{lua_archdir}
|
|
|
|
%make_install LUACPATH="%{buildroot}%{lua_archdir}"
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README
|
2017-07-14 11:28:49 +00:00
|
|
|
%{lua_archdir}/zlib.so
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%changelog
|