public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ristretto] f43: Modernize %install and %files sections
@ 2026-06-12 23:24 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-12 23:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ristretto
            Branch : f43
            Commit : 49ac4eff006df7b885f990c600465f8c1a1dcd18
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-03-14T13:31:24-03:00
            Stats  : +5/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ristretto/c/49ac4eff006df7b885f990c600465f8c1a1dcd18?branch=f43

            Log:
            Modernize %install and %files sections

- Switch to appstreamcli validate
- Use more specific file paths in %files
- Add comments and use modern macros

---
diff --git a/ristretto.spec b/ristretto.spec
index 38de308..d245acc 100644
--- a/ristretto.spec
+++ b/ristretto.spec
@@ -52,6 +52,7 @@ Desktop-Umgebung.
 
 %find_lang %{name}
 
+# Add missing MIME types to the desktop file
 desktop-file-install \
         --dir %{buildroot}%{_datadir}/applications \
         --add-mime-type=image/x-bmp \
@@ -62,15 +63,16 @@ desktop-file-install \
         --delete-original \
         %{buildroot}%{_datadir}/applications/org.xfce.%{name}.desktop
 
-appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml
+# Validate AppData file
+appstreamcli validate --no-net %{buildroot}%{_metainfodir}/*.appdata.xml
 
 %files -f %{name}.lang
 %license COPYING
 %doc AUTHORS NEWS
 %{_bindir}/%{name}
-%{_datadir}/applications/*%{name}.desktop
+%{_datadir}/applications/org.xfce.%{name}.desktop
 %{_datadir}/icons/hicolor/*/*/*
-%{_metainfodir}/*.appdata.xml
+%{_metainfodir}/org.xfce.%{name}.appdata.xml
 
 %changelog
 %autochangelog

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-12 23:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-12 23:24 [rpms/ristretto] f43: Modernize %install and %files sections Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox