fix(release): RPM spec use %{_topdir}/SOURCES; fix Firefox manifest for FF115

This commit is contained in:
2026-06-08 19:36:04 +08:00
parent c1434a0b61
commit b4de2dec7a
2 changed files with 5 additions and 8 deletions
+3 -3
View File
@@ -191,20 +191,20 @@ $description
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/local/bin
cp %{_sourcedir}/$pkg_name %{buildroot}/usr/local/bin/$pkg_name
cp %{_topdir}/SOURCES/$pkg_name %{buildroot}/usr/local/bin/$pkg_name
chmod 755 %{buildroot}/usr/local/bin/$pkg_name
SPEC
if [[ -n "$systemd_unit" && -f "$systemd_unit" ]]; then
cat >> "$spec_file" <<SPEC
mkdir -p %{buildroot}/lib/systemd/system
cp %{_sourcedir}/$(basename "$systemd_unit") %{buildroot}/lib/systemd/system/
cp %{_topdir}/SOURCES/$(basename "$systemd_unit") %{buildroot}/lib/systemd/system/
SPEC
fi
cat >> "$spec_file" <<SPEC
mkdir -p %{buildroot}/usr/share/doc/$pkg_name
cp -r %{_sourcedir}/README.md %{buildroot}/usr/share/doc/$pkg_name/ 2>/dev/null || true
cp -r %{_topdir}/SOURCES/README.md %{buildroot}/usr/share/doc/$pkg_name/ 2>/dev/null || true
%files
/usr/local/bin/$pkg_name