Compare commits

...

3 Commits

Author SHA256 Message Date
Takashi Iwai
bdf2536ac4 Remove stale *.rpmmoved directories (bsc#1244458) 2025-07-21 17:47:23 +02:00
Takashi Iwai
6f6d0c4323 Fix zypper conflict about directory -> symlink workaround (bsc#1244458) 2025-06-12 10:04:27 +02:00
Takashi Iwai
19967e19b2 Add workaround for directory/symlink changes (bsc#1243843) 2025-06-05 12:45:00 +02:00
5 changed files with 58 additions and 10 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Jul 21 15:47:23 UTC 2025 - Takashi Iwai <tiwai@suse.com>
- Remove stale *.rpmmoved directories (bsc#1244458)
-------------------------------------------------------------------
Thu Jun 12 07:05:23 UTC 2025 - Takashi Iwai <tiwai@suse.com>
- Fix zypper conflict about directory -> symlink workaround (bsc#1244458)
-------------------------------------------------------------------
Thu Jun 5 10:45:00 UTC 2025 - Takashi Iwai <tiwai@suse.com>
- Add workaround for directory/symlink changes (bsc#1243843)
-------------------------------------------------------------------
Mon May 19 19:09:24 UTC 2025 - Takashi Iwai <tiwai@suse.com>

View File

@@ -30,10 +30,11 @@ License: GPL-2.0-or-later AND SUSE-Firmware
Group: System/Kernel
URL: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
Source0: %{name}-%{version}.tar.xz
Source1: https://github.com/openSUSE/kernel-firmware-tools/archive/refs/tags/20250425.tar.gz#/kernel-firmware-tools-20250425.tar.gz
Source1: https://github.com/openSUSE/kernel-firmware-tools/archive/refs/tags/20250721.tar.gz#/kernel-firmware-tools-20250721.tar.gz
Source2: %{name}-rpmlintrc
Source3: git_id
Source10: aliases
Source11: post
BuildRequires: suse-module-tools
Requires(post): %{_bindir}/mkdir
Requires(post): %{_bindir}/touch
@@ -168,14 +169,26 @@ scripts/install-licenses.sh nvidia %{buildroot}%{_licensedir}/%{name}
install -c -D -m 0644 WHENCE %{buildroot}%{_licensedir}/%{name}/WHENCE
install -c -D -m 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md
%post
%{?regenerate_initrd_post}
%postun
%{?regenerate_initrd_post}
%pretrans -p <lua>
paths = {"ad103", "ad104", "ad106", "ad107"}
for i = 1, 4 do
path = "%{_firmwaredir}/nvidia/" .. paths[i]
st = posix.stat(path)
if st and st.type == "directory" then
path2 = path .. ".rpmmoved"
if not os.rename(path, path2) then
print("Cannot rename " .. path .. " to " .. path2)
os.exit(1)
end
end
end
%posttrans
%{?regenerate_initrd_posttrans}
for f in ad103 ad104 ad106 ad107; do
if test -d %{_firmwaredir}/nvidia/$f.rpmmoved; then
rm -rf %{_firmwaredir}/nvidia/$f.rpmmoved
fi
done
%files
%doc %{_docdir}/%{name}

BIN
kernel-firmware-tools-20250425.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
kernel-firmware-tools-20250721.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

20
post Normal file
View File

@@ -0,0 +1,20 @@
%pretrans -p <lua>
paths = {"ad103", "ad104", "ad106", "ad107"}
for i = 1, 4 do
path = "%{_firmwaredir}/nvidia/" .. paths[i]
st = posix.stat(path)
if st and st.type == "directory" then
path2 = path .. ".rpmmoved"
if not os.rename(path, path2) then
print("Cannot rename " .. path .. " to " .. path2)
os.exit(1)
end
end
end
%posttrans
for f in ad103 ad104 ad106 ad107; do
if test -d %{_firmwaredir}/nvidia/$f.rpmmoved; then
rm -rf %{_firmwaredir}/nvidia/$f.rpmmoved
fi
done