public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - generate application() provides from .desktop files (for gnome-software)
Date: Mon, 23 Nov 2026 09:28:28 GMT	[thread overview]
Message-ID: <179542610899.1.14701269788975082856.rpms-rpm-944d93e50438@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 944d93e50438d2ec898b6ca66cdac1f2bb5c5770
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2013-10-14T11:37:00+03:00
Stats  : +34/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/944d93e50438d2ec898b6ca66cdac1f2bb5c5770?branch=pmatilai-v6

Log:
- generate application() provides from .desktop files (for gnome-software)

---
diff --git a/rpm-4.11.1-application-provides.patch b/rpm-4.11.1-application-provides.patch
new file mode 100644
index 0000000..8cb4263
--- /dev/null
+++ b/rpm-4.11.1-application-provides.patch
@@ -0,0 +1,28 @@
+commit 4775f07b5108f61a3910ca3110315c1543c109b5
+Author: Michael Schroeder <mls@suse.de>
+Date:   Wed Oct 2 15:02:18 2013 +0200
+
+    Add application() and application(filename) provides for desktop files.
+    
+    Gnome software center needs to know what package to deinstall if it
+    needs to deinstall a desktop application. Looking up provides it much
+    cheaper than looking up which package owns a file.
+    
+    We also add an empty application() provides to make it easy to
+    enumerate all packages containing desktop applications.
+    
+    Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
+
+diff --git a/scripts/desktop-file.prov b/scripts/desktop-file.prov
+index 5b159ae..54b7280 100755
+--- a/scripts/desktop-file.prov
++++ b/scripts/desktop-file.prov
+@@ -11,6 +11,8 @@ while read instfile ; do
+ 	*.desktop)
+ 		if ! grep -q '^Type=Application$' "$instfile"; then continue; fi
+ 		if ! grep -q '^Exec=' "$instfile"; then continue; fi
++		echo "application()"
++		echo "application(${instfile##*/applications/})"
+ 		mime=`grep '^MimeType=' "$instfile" | cut -d'=' -f2`
+ 		IFS=';'
+ 		for type in $mime ; do

diff --git a/rpm.spec b/rpm.spec
index 8f3580e..90d04fa 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -21,7 +21,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}8%{?dist}
+Release: %{?snapver:0.%{snapver}.}9%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.11.x/%{name}-%{srcver}.tar.bz2
@@ -54,6 +54,7 @@ Patch103: rpm-4.11.1-file-triplet-check.patch
 Patch104: rpm-4.11.1-caps-double-free.patch
 Patch105: rpm-4.11.1-empty-lua-script.patch
 Patch106: rpm-4.11.1-ppc64le.patch
+Patch107: rpm-4.11.1-application-provides.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -259,6 +260,7 @@ packages on a system.
 %patch104 -p1 -b .caps-double-free
 %patch105 -p1 -b .empty-lua-script
 %patch106 -p1 -b .ppc64le
+%patch107 -p1 -b .application-provides
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -515,6 +517,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Mon Oct 14 2013 Panu Matilainen <pmatilai@redhat.com> - 4.11.1-9
+- generate application() provides for gnome-software
+
 * Tue Oct 01 2013 Panu Matilainen <pmatilai@redhat.com> - 4.11.1-8
 - add support for ppc64le architecture
 

                 reply	other threads:[~2026-11-23  9:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542610899.1.14701269788975082856.rpms-rpm-944d93e50438@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox