SHA256
11
0
forked from pool/lua-macros
Files
lua-macros/lua-macros.changes
Matěj Cepl 984b4bf4f2 feat: Rework Lua version and path macros using RPM Lua blocks
The `%lua_version`, `%lua_version_nodots`, and `%lua_noarchdir`
macros have been refactored to use the RPM internal Lua
interpreter blocks (`%{lua:...}`) instead of relying solely on
shell command execution (`%()`).

This change offers several benefits:
1. Consistency: Standardizes the approach, as other macros like
   `%lua_version_default` already use RPM Lua blocks.
2. Robustness: Improves path handling by explicitly trimming
   whitespace/newlines from the `pkgconf` output in
   `%lua_noarchdir`.
3. Clarity: Simplifies the logic for extracting the version
   number and calculating the no-dots version.

The `%lua_noarchdir` logic was also improved to correctly handle
a failure of the `pkgconf` command (e.g., when the package isn't
installed) by checking for `f == nil`.

A comment was also added to `%lua_provides` to clarify the
required definition of `%mod_name`.
2025-10-12 01:17:14 +02:00

88 lines
3.1 KiB
Plaintext

-------------------------------------------------------------------
Sat Oct 11 16:45:06 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Rework Lua version and path macros using RPM Lua blocks.
-------------------------------------------------------------------
Fri Oct 10 10:56:01 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make %{lua_noarchdir} work even without lua-devel installed.
-------------------------------------------------------------------
Thu Oct 9 22:44:04 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make definition of variables dynamic based on pkgconf output.
-------------------------------------------------------------------
Tue Aug 5 14:05:41 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- On Factory BR lua-interpreter.
-------------------------------------------------------------------
Fri Nov 25 19:15:41 UTC 2022 - Michal Suchanek <msuchanek@suse.com>
- Make macros usable with older releases (boo#1205611).
-------------------------------------------------------------------
Fri Sep 2 15:13:06 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Add LuaRocks macros:
* %luarocks_build
* %luarocks_install
* %luarocks_treedir
-------------------------------------------------------------------
Sat Aug 28 09:42:55 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Change usage of math to string.gsub to prevent extra decimal
places causing issues
-------------------------------------------------------------------
Fri Aug 27 10:07:01 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add %lua_version_default, %lua_version_default_nodots
and %ifluadefault: to allow to separate what flavour builds
the documentation
- Bump version to 20210827
-------------------------------------------------------------------
Thu Jun 10 16:58:39 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add -n (name) option to %lua_provides
- Use lua instead of perl for %lua_version_nodots
-------------------------------------------------------------------
Fri Apr 9 10:03:41 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add %lua_version_nodots to equal package naming
-------------------------------------------------------------------
Fri Feb 26 15:54:56 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add -e (exclude) option to %lua_provides
-------------------------------------------------------------------
Wed Jan 27 15:51:37 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
- Add lua_provides macro for default lua naming
-------------------------------------------------------------------
Sun Apr 12 13:22:39 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Modify lua_incdir to work even on Fedora/RHEL
-------------------------------------------------------------------
Sun Apr 12 13:14:02 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Install into /usr/lib/ not libexec
-------------------------------------------------------------------
Tue Jul 11 08:24:18 UTC 2017 - tchvatal@suse.com
- Add lua_incdir macro to declare the lua includedir
-------------------------------------------------------------------
Mon Jul 10 11:26:37 UTC 2017 - tchvatal@suse.com
- Split out from main lua packages to keep just one version for all