Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-fennel for openSUSE:Factory 
checked in at 2026-05-29 18:05:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-fennel (Old)
 and      /work/SRC/openSUSE:Factory/.lua-fennel.new.1937 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-fennel"

Fri May 29 18:05:25 2026 rev:6 rq:1355674 version:1.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-fennel/lua-fennel.changes    2025-11-10 
19:20:29.564275877 +0100
+++ /work/SRC/openSUSE:Factory/.lua-fennel.new.1937/lua-fennel.changes  
2026-05-29 18:07:37.519658968 +0200
@@ -1,0 +2,66 @@
+Thu May 28 15:55:16 UTC 2026 - Matej Cepl <[email protected]>
+
+- Keep man pages in the system man path and make the -doc package
+  conflict only with older lua-fennel builds, avoiding file ownership
+  conflicts with packages from before the documentation split.
+
+-------------------------------------------------------------------
+Wed May 27 20:32:16 UTC 2026 - Matej Cepl <[email protected]>
+
+- Resolve conflicts between the main package and -doc subpackage.
+
+-------------------------------------------------------------------
+Wed May 27 00:00:00 UTC 2026 - Matej Cepl <[email protected]>
+
+- Stop requiring the -doc subpackage from the default Lua flavor and
+  drop its lua-fennel conflict, so flavor install checks do not create
+  a self-conflicting dependency chain.
+
+-------------------------------------------------------------------
+Sat May 23 00:00:00 UTC 2026 - Matej Cepl <[email protected]>
+
+- Relax the -doc package conflict to older lua-fennel versions only,
+  so the default Lua flavor can satisfy its matching doc dependency.
+
+-------------------------------------------------------------------
+Thu May 14 14:54:36 UTC 2026 - Matej Cepl <[email protected]>
+
+- Add `Conflicts:      lua-fennel <= %{version}` to -doc
+  subpackage.
+
+-------------------------------------------------------------------
+Mon May 11 20:04:29 UTC 2026 - Matej Cepl <[email protected]>
+
+- Use proper shebang
+
+-------------------------------------------------------------------
+Wed May  6 20:11:16 UTC 2026 - Matej Cepl <[email protected]>
+
+- Don’t calculate macros we already have available in macros.lua.
+- Reorder macros so that `ExclusiveArch: do-not-build` is
+  potentially set early.
+- Generate -doc package only when the default Lua package is
+  generated.
+
+-------------------------------------------------------------------
+Tue Mar 17 08:51:45 UTC 2026 - Martin Jungblut Schreiner 
<[email protected]>
+
+- Improve libalternatives support.
+
+-------------------------------------------------------------------
+Fri Jan 23 21:38:01 UTC 2026 - Matej Cepl <[email protected]>
+
+- Enable lua55 build.
+
+-------------------------------------------------------------------
+Sat Jan 10 09:48:18 UTC 2026 - Matej Cepl <[email protected]>
+
+- It's %{lua_version}, not %{flavor}
+
+-------------------------------------------------------------------
+Wed Dec  3 18:31:43 UTC 2025 - Matej Cepl <[email protected]>
+
+- Proper multi-variant SPEC with properly set-up alternatives
+  Fixes: https://src.opensuse.org/pool/lua-fennel/issues/1
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lua-fennel.spec ++++++
--- /var/tmp/diff_new_pack.i86wOY/_old  2026-05-29 18:07:38.391695063 +0200
+++ /var/tmp/diff_new_pack.i86wOY/_new  2026-05-29 18:07:38.395695229 +0200
@@ -17,18 +17,44 @@
 #
 
 
-Name:           lua-fennel
+%define flavor @BUILD_FLAVOR@%{nil}
+%define mod_name fennel
+%if "%{flavor}" == ""
+Name:           lua-%{mod_name}
+ExclusiveArch:  do_not_build
+%else
+Name:           %{flavor}-%{mod_name}
+%endif
+%if 0%{?suse_version} > 1500
+%bcond_without libalternatives
+%else
+%bcond_with libalternatives
+%endif
 Version:        1.6.0
 Release:        0
 Summary:        Lisp dialect that compiles to Lua
 License:        MIT
-# FIXME: use correct group or remove it, see 
"https://en.opensuse.org/openSUSE:Package_group_guidelines";
 Group:          Development/Languages/Lua
 URL:            https://fennel-lang.org/
-Source0:        
https://git.sr.ht/~technomancy/fennel/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  lua
+Source0:        
https://git.sr.ht/~technomancy/fennel/archive/%{version}.tar.gz#/lua-%{mod_name}-%{version}.tar.gz
+BuildRequires:  %{flavor}
 BuildRequires:  lua-macros
 BuildArch:      noarch
+%{lua_provides}
+%if "%{flavor}" != ""
+Requires:       %{flavor}
+Obsoletes:      lua-%{mod_name}
+%if "%{lua_version}" == "%{lua_version_default}"
+Suggests:       lua-%{mod_name}-doc = %{version}
+%endif
+%endif
+%if %{with libalternatives}
+BuildRequires:  alts
+Requires:       alts
+%else
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+%endif
 
 %description
 Fennel is a lisp that compiles to Lua. Features include:
@@ -44,23 +70,83 @@
   Embed it in other programs to support runtime extensibility and
   interactive development.
 
+%if "%{lua_version}" == "%{lua_version_default}"
+%package -n lua-%{mod_name}-doc
+Summary:        Man pages for Fennel
+Group:          Documentation/Other
+BuildArch:      noarch
+Conflicts:      lua-fennel < %{version}-%{release}
+
+%description -n lua-%{mod_name}-doc
+Man pages and reference documentation for Fennel, a Lisp dialect
+that compiles to Lua. Includes pages covering the command-line
+interface, the Lua API, the language reference, and the tutorial.
+%endif
+
 %prep
 %autosetup -p1 -n fennel-%{version}
 
 %build
-%make_build %{?_make_output_sync} PREFIX=%{_prefix} LUA="lua%{lua_version}" 
fennel
+%make_build %{?_make_output_sync} PREFIX=%{_prefix} LUA="lua" fennel
 sed -i -e 's@#!%{_bindir}/env lua$@#!%{_bindir}/lua@' fennel
 
 %install
 %make_install %{?_make_output_sync} PREFIX=%{_prefix} install
+mv -v %{buildroot}%{_bindir}/fennel{,-%{lua_version}}
+chmod +x %{buildroot}%{_bindir}/fennel-%{lua_version}
+sed -i -e 's,# *\!%{_bindir}/.*lua.*$,#!'$(alts -t lua)',' \
+    %{buildroot}%{_bindir}/fennel-%{lua_version}
+
+%if "%{lua_version}" != "%{lua_version_default}"
+rm -rv %{buildroot}%{_mandir}
+%endif
+
+%if %{with libalternatives}
+# alternatives - create configuration file
+ln -sf %{_bindir}/alts %{buildroot}%{_bindir}/fennel
+mkdir -p %{buildroot}%{_datadir}/libalternatives/fennel
+cat > %{buildroot}%{_datadir}/libalternatives/fennel/%{lua_value}.conf <<EOF
+binary=%{_bindir}/fennel-%{lua_version}
+EOF
+%else
+# update-alternatives
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
+touch %{buildroot}%{_sysconfdir}/alternatives/fennel
+ln -sf %{_sysconfdir}/alternatives/fennel %{buildroot}%{_bindir}/fennel
+%endif
 
 %check
 %make_build %{?_make_output_sync} test
 
+%if %{without libalternatives}
+%post
+%{_sbindir}/update-alternatives --install %{_bindir}/fennel fennel \
+    %{_bindir}/fennel-%{lua_version} %{lua_value}
+
+%postun
+if [ "$1" = 0 ] ; then
+    %{_sbindir}/update-alternatives --remove fennel
+    %{_bindir}/fennel-%{lua_version}
+fi
+%endif
+
 %files
 %doc README.md api.md changelog.md reference.md tutorial.md
 %license LICENSE
+%if ! %{with libalternatives}
+%ghost %{_sysconfdir}/alternatives/fennel
+%else
+%dir %{_datadir}/libalternatives
+%dir %{_datadir}/libalternatives/fennel
+%{_datadir}/libalternatives/fennel/%{lua_value}.conf
+%endif
+
 %{_bindir}/fennel
+%{_bindir}/fennel-%{lua_version}
 %{lua_noarchdir}/fennel.lua
+
+%if "%{lua_version}" == "%{lua_version_default}"
+%files -n lua-%{mod_name}-doc
 %{_mandir}/man*/fennel*%{?ext_man}
+%endif
 

++++++ _multibuild ++++++
<multibuild>
<package>luajit</package>
<package>lua53</package>
<package>lua54</package>
<package>lua55</package>
</multibuild>

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.i86wOY/_old  2026-05-29 18:07:38.459697877 +0200
+++ /var/tmp/diff_new_pack.i86wOY/_new  2026-05-29 18:07:38.471698374 +0200
@@ -1,6 +1,6 @@
-mtime: 1762765985
-commit: a58053c3fabd93be2f1f678313079a5ed92ff13a9862683bc2eca67da36832d6
-url: https://src.opensuse.org/lua/lua-fennel.git
-revision: a58053c3fabd93be2f1f678313079a5ed92ff13a9862683bc2eca67da36832d6
+mtime: 1779983753
+commit: 92b097f88dd0faa2e7e77d1c24e3476845d05887a70cd441e8f83dd044f95126
+url: https://src.opensuse.org/lua/lua-fennel
+revision: 92b097f88dd0faa2e7e77d1c24e3476845d05887a70cd441e8f83dd044f95126
 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++
--- old/.gitignore      2025-11-10 10:13:24.000000000 +0100
+++ new/.gitignore      2026-05-28 17:55:53.000000000 +0200
@@ -1 +1,5 @@
-.osc
+*.obscpio
+*.osc
+_build.*
+.pbuild
+lua*-fennel-*-build

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-05-28 17:55:53.000000000 +0200
@@ -0,0 +1,5 @@
+*.obscpio
+*.osc
+_build.*
+.pbuild
+lua*-fennel-*-build

Reply via email to