public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedora-release] f45: Properly import Lua script
@ 2026-08-10 9:34 Stephen Gallagher
0 siblings, 0 replies; only message in thread
From: Stephen Gallagher @ 2026-08-10 9:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fedora-release
Branch : f45
Commit : 96290a77304b2bfc5ac1efa4b28a69efa1aeaddc
Author : Stephen Gallagher <sgallagh@redhat.com>
Date : 2016-03-08T19:56:11-05:00
Stats : +11/-10 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fedora-release/c/96290a77304b2bfc5ac1efa4b28a69efa1aeaddc?branch=f45
Log:
Properly import Lua script
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
---
diff --git a/fedora-release.spec b/fedora-release.spec
index 3262dc7..f31ee77 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -10,6 +10,7 @@ License: MIT
Group: System Environment/Base
URL: http://fedoraproject.org
Source: %{name}-%{version}.tar.bz2
+Source1: convert-to-edition.lua
Obsoletes: redhat-release
Provides: redhat-release
Provides: system-release
@@ -208,7 +209,7 @@ mkdir -p $RPM_BUILD_ROOT/%{_prefix}/sbin/
install -m 0744 convert-to-edition $RPM_BUILD_ROOT/%{_prefix}/sbin/
%post -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
-- On initial installation, we'll at least temporarily put the non-product
-- symlinks in place. It will be overridden by fedora-release-$EDITION
-- %%post sections because we don't write the /usr/lib/variant file until
@@ -228,7 +229,7 @@ if read_variant() == "nonproduct" then
end
%posttrans -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
-- If we get to %%posttrans and nothing created /usr/lib/variant, set it to
-- nonproduct.
if posix.stat(VARIANT_FILE) == nil then
@@ -236,35 +237,35 @@ if posix.stat(VARIANT_FILE) == nil then
end
%post atomichost -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
install_edition("atomichost")
%preun atomichost -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
uninstall_edition("atomichost")
%post cloud -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
install_edition("cloud")
%preun cloud -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
uninstall_edition("cloud")
%post server -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
install_edition("server")
%preun server -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
uninstall_edition("server")
%post workstation -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
install_edition("workstation")
%preun workstation -p <lua>
-%include convert-to-edition.lua
+%include %{_sourcedir}/convert-to-edition.lua
uninstall_edition("workstation")
%postun workstation
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-10 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-10 9:34 [rpms/fedora-release] f45: Properly import Lua script Stephen Gallagher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox