forked from pool/lua-luafilesystem
- Switch to multibuild syntax to produce results for all lua flavors
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luafilesystem?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
4e8c2656b7
commit
6ce91aad17
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua52</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 13 16:19:59 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Switch to multibuild syntax to produce results for all lua flavors
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 4 15:40:43 UTC 2017 - eich@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lua-luafilesystem
|
||||
# spec file for package lua
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -14,23 +14,27 @@
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
%define trans() ( echo %{1} | sed -e "s#_#\\.#g" )
|
||||
%define vers_f() %(%trans)
|
||||
|
||||
%define mod_version 1_6_3
|
||||
|
||||
%define flavor @BUILD_FLAVOR@
|
||||
%define mod_name luafilesystem
|
||||
|
||||
Name: lua-luafilesystem
|
||||
Version: %{vers_f %mod_version}
|
||||
Name: lua51-luafilesystem
|
||||
Version: 1.6.3
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Filesystem support for Lua
|
||||
Url: http://keplerproject.github.com/luafilesystem
|
||||
License: MIT
|
||||
Group: Development/Libraries/Other
|
||||
Source: https://github.com/keplerproject/luafilesystem/archive/v_%{mod_version}.tar.gz
|
||||
BuildRequires: lua-devel >= %{lua_version}
|
||||
Requires: lua >= %{lua_version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Url: http://keplerproject.github.io/luafilesystem/
|
||||
Source: https://github.com/keplerproject/luafilesystem/archive/v_1_6_3.tar.gz#/luafilesystem-%{version}.tar.gz
|
||||
BuildRequires: %{flavor}-devel
|
||||
Requires: %{flavor}
|
||||
%if "%{flavor}" == "lua53"
|
||||
Provides: lua-%{_name} = %{version}
|
||||
Obsoletes: lua-%{_name} < %{version}
|
||||
%endif
|
||||
%if "%{flavor}" == ""
|
||||
ExclusiveArch: do_not_build
|
||||
%endif
|
||||
|
||||
%description
|
||||
LuaFileSystem is a Lua library developed to complement the set of functions
|
||||
@@ -40,19 +44,18 @@ LuaFileSystem offers a portable way to access the underlying directory
|
||||
structure and file attributes.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-v_%{mod_version}
|
||||
%setup -q -n %{mod_name}-v_1_6_3
|
||||
|
||||
sed -i 's|@@VERSION@@|%{version}|g' Makefile
|
||||
|
||||
%build
|
||||
export OPTFLAGS="%{optflags} -fPIC"
|
||||
make %{_smp_mflags}
|
||||
make -j1 CFLAGS="%{optflags} -fPIC -I%{lua_incdir}"
|
||||
|
||||
%install
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)/%{lua_archdir}/'
|
||||
%make_install LUA_LIBDIR='$(DESTDIR)%{lua_archdir}'
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc doc/us/*
|
||||
%dir %{lua_archdir}
|
||||
%{lua_archdir}/lfs.so
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user