Sync from SUSE:ALP:Source:Standard:1.0 lua-luafilesystem revision 7259c18f50c2874f56c5465460d6d49c

This commit is contained in:
Adrian Schröter 2023-06-07 08:11:29 +02:00
commit fd57c20c9e
5 changed files with 199 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

5
_multibuild Normal file
View File

@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua53</package>
<package>lua54</package>
</multibuild>

99
lua-luafilesystem.changes Normal file
View File

@ -0,0 +1,99 @@
-------------------------------------------------------------------
Thu Mar 16 17:29:32 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Change upstream homepage to the current one at Lunar Modules.
-------------------------------------------------------------------
Wed Jan 25 10:52:05 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
- Opencode %make_build to prevent build failure when not defined.
-------------------------------------------------------------------
Tue Jan 3 16:52:00 UTC 2023 - Egbert Eich <eich@suse.com>
- Handle Leap 15 / SLE-15 where %lua_provides is not supported.
-------------------------------------------------------------------
Wed Jan 27 15:54:42 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Use %lua_provides macro
-------------------------------------------------------------------
Mon Jul 6 19:05:20 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Add lua54 as new build target
-------------------------------------------------------------------
Thu Apr 23 09:01:18 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Update to 1.8.0:
- Lua 5.4 support
- lfs.link and lfs.symlinkattributes now work on Windows
- MACOSX_DEPLOYMENT_TARGET is configurable in the Makefile
- Fallback to _POSIX_PATH_MAX when MAXPATHLEN is not avaliable
- Fixed memory leak in case of realloc failure
-------------------------------------------------------------------
Sun Dec 24 19:30:26 UTC 2017 - avindra@opensuse.org
- Fix target folder name in tarball
-------------------------------------------------------------------
Tue Nov 7 02:22:08 UTC 2017 - aavindraa@gmail.com
- Update to version 1.7.0:
* symlinkattributes function now provides 'target' field,
containing name of the file that the symlink points to.
* attributes, symlinkattributes, touch, mkdir, and rmdir functions
now return system-dependent error code as the third value on error.
* Fixed detection of closed files for Lua 5.2+ in setmode, lock,
and unlock functions.
* Fixed various compiler warnings.
-------------------------------------------------------------------
Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com
- do not build for Lua 5.2
-------------------------------------------------------------------
Fri Aug 11 15:51:51 UTC 2017 - eich@suse.com
- Add defines for the version number and a version number string
with '_' (underscores) to keep these close together and in sync.
-------------------------------------------------------------------
Thu Aug 10 14:52:56 UTC 2017 - eich@suse.com
- Fix provides/obsoletes for the old package name.
-------------------------------------------------------------------
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
- Replaced 'makeinstall' by 'make_install'.
-------------------------------------------------------------------
Mon Oct 17 13:30:22 UTC 2016 - eich@suse.com
- Setting 'download_files' service to mode='localonly'
and adding source tarball. (Required for Factory).
-------------------------------------------------------------------
Tue Oct 11 17:12:41 UTC 2016 - eich@suse.com
- Update to version 1.6.3:
* Lua 5.3 support.
* Assorted bugfixes.
- Use source services
- Make use of lua macros
- Add Requires for lua
- Add -fPIC compiler flag
-------------------------------------------------------------------
Wed Jan 29 14:14:50 UTC 2014 - kianseong@gmail.com
- Initial Version

69
lua-luafilesystem.spec Normal file
View File

@ -0,0 +1,69 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@
%define mod_name luafilesystem
%define pversion 1.8.0
%define _pversion 1_8_0
%if %{undefined lua_provides}
%define lua_provides \
Provides: lua-%{mod_name} = %{version}-%{release} \
Obsoletes: lua-%{mod_name} < %{version}-%{release}
%endif
Version: %{pversion}
Release: 0
Summary: Filesystem support for Lua
License: MIT
Group: Development/Libraries/Other
URL: https://lunarmodules.github.io/luafilesystem/
Source: https://github.com/lunarmodules/luafilesystem/archive/v%{_pversion}.tar.gz#/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-devel
Requires: %{flavor}
%lua_provides
%if "%{flavor}" == ""
Name: lua-%{mod_name}
ExclusiveArch: do_not_build
%else
Name: %{flavor}-%{mod_name}
%endif
%description
LuaFileSystem is a Lua library developed to complement the set of functions
related to file systems offered by the standard Lua distribution.
LuaFileSystem offers a portable way to access the underlying directory
structure and file attributes.
%prep
%setup -q -n %{mod_name}-%{_pversion}
sed -i 's|@@VERSION@@|%{version}|g' Makefile
%build
make %{?_make_output_sync} CFLAGS="%{optflags} -fPIC -I%{lua_incdir}"
%install
%make_install LUA_LIBDIR='%{lua_archdir}'
%files
%doc doc/us/*
%{lua_archdir}/lfs.so
%changelog

BIN
luafilesystem-1.8.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.