commit b85e44c68b889f1eac09db0f75060e4df1ea25c9 Author: MSVSphere Packaging Team Date: Tue Nov 26 15:49:24 2024 +0300 import desktop-file-utils-0.26-13.el10 diff --git a/.desktop-file-utils.metadata b/.desktop-file-utils.metadata new file mode 100644 index 0000000..596409a --- /dev/null +++ b/.desktop-file-utils.metadata @@ -0,0 +1 @@ +9fd94cb7de302163015fcbc0e157c61323b1205d SOURCES/desktop-file-utils-0.26.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6282bb1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/desktop-file-utils-0.26.tar.xz diff --git a/SOURCES/desktop-entry-mode-init.el b/SOURCES/desktop-entry-mode-init.el new file mode 100644 index 0000000..3ce2f79 --- /dev/null +++ b/SOURCES/desktop-entry-mode-init.el @@ -0,0 +1,2 @@ +(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t) +(add-to-list 'auto-mode-alist '("\\.desktop\\(\\.in\\)?$" . desktop-entry-mode)) diff --git a/SOURCES/desktop-file-utils-0.26-support-1.5.patch b/SOURCES/desktop-file-utils-0.26-support-1.5.patch new file mode 100644 index 0000000..1e350ed --- /dev/null +++ b/SOURCES/desktop-file-utils-0.26-support-1.5.patch @@ -0,0 +1,83 @@ +From 48586dd1a755a80ec8ce0e8151b3ba236d81502f Mon Sep 17 00:00:00 2001 +From: David King +Date: Tue, 15 Feb 2022 10:54:40 +0000 +Subject: [PATCH 1/2] Add support for SingleMainWindow key from 1.5 + +Fixes https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/issues/59 +--- + src/validate.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/validate.c b/src/validate.c +index 62406ab..ebb03b5 100644 +--- a/src/validate.c ++++ b/src/validate.c +@@ -326,6 +326,9 @@ static DesktopKeyDefinition registered_desktop_keys[] = { + /* Since 1.4 */ + { DESKTOP_BOOLEAN_TYPE, "PrefersNonDefaultGPU", FALSE, FALSE, FALSE, NULL }, + ++ /* Since 1.5 */ ++ { DESKTOP_BOOLEAN_TYPE, "SingleMainWindow", FALSE, FALSE, FALSE, NULL }, ++ + /* Keys reserved for KDE */ + + /* since 0.9.4 */ +-- +2.34.1 + + +From e3e21bccfe257aa2a34d64a68582dcc2363c2606 Mon Sep 17 00:00:00 2001 +From: David King +Date: Tue, 15 Feb 2022 10:56:04 +0000 +Subject: [PATCH 2/2] validate: Support version 1.5 + +Bump CURRENT_SPEC_VERSION to 1.5. +--- + man/desktop-file-validate.1 | 2 +- + src/validate.c | 3 +++ + src/validate.h | 2 +- + 3 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/man/desktop-file-validate.1 b/man/desktop-file-validate.1 +index 8e17411..ce87c47 100644 +--- a/man/desktop-file-validate.1 ++++ b/man/desktop-file-validate.1 +@@ -9,7 +9,7 @@ desktop-file-validate \- Validate desktop entry files + .B desktop-file-validate [\-\-no-hints] [\-\-no-warn-deprecated] [\-\-warn-kde] FILE... + .SH DESCRIPTION + The \fIdesktop-file-validate\fP program is a tool to validate desktop +-entry files according to the Desktop Entry specification 1.4. ++entry files according to the Desktop Entry specification 1.5. + .PP + The specification describes a file format to provide information such as + name, icon and description for an application. Such a file can then be +diff --git a/src/validate.c b/src/validate.c +index ebb03b5..f9eedee 100644 +--- a/src/validate.c ++++ b/src/validate.c +@@ -961,6 +961,9 @@ handle_version_key (kf_validator *kf, + const char *locale_key, + const char *value) + { ++ if (!strcmp (value, "1.5")) ++ return TRUE; ++ + if (!strcmp (value, "1.4")) + return TRUE; + +diff --git a/src/validate.h b/src/validate.h +index e6efd93..a7952cd 100644 +--- a/src/validate.h ++++ b/src/validate.h +@@ -30,7 +30,7 @@ + + #include + +-#define CURRENT_SPEC_VERSION "1.4" ++#define CURRENT_SPEC_VERSION "1.5" + + #define GROUP_KDE_DESKTOP_ENTRY "KDE Desktop Entry" + #define GROUP_DESKTOP_ACTION "Desktop Action " +-- +2.34.1 + diff --git a/SPECS/desktop-file-utils.spec b/SPECS/desktop-file-utils.spec new file mode 100644 index 0000000..99ab90a --- /dev/null +++ b/SPECS/desktop-file-utils.spec @@ -0,0 +1,441 @@ +Summary: Utilities for manipulating .desktop files +Name: desktop-file-utils +Version: 0.26 +Release: 13%{?dist} +URL: https://www.freedesktop.org/software/desktop-file-utils +Source0: https://www.freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz +Source1: desktop-entry-mode-init.el +# https://bugzilla.redhat.com/show_bug.cgi?id=2053905 +Patch0: desktop-file-utils-0.26-support-1.5.patch +License: GPL-2.0-or-later + +BuildRequires: gcc +BuildRequires: glib2-devel +BuildRequires: emacs +BuildRequires: meson +Requires: emacs-filesystem + +%description +.desktop files are used to describe an application for inclusion in +GNOME or KDE menus. This package contains desktop-file-validate which +checks whether a .desktop file complies with the specification at +http://www.freedesktop.org/standards/, and desktop-file-install +which installs a desktop file to the standard directory, optionally +fixing it up in the process. + + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install + +mkdir -p $RPM_BUILD_ROOT%{_emacs_sitelispdir}/desktop-file-utils +mv $RPM_BUILD_ROOT%{_emacs_sitelispdir}/*.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/desktop-file-utils +install -Dpm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.el +touch $RPM_BUILD_ROOT%{_emacs_sitestartdir}/desktop-entry-mode-init.elc + +%transfiletriggerin -- %{_datadir}/applications +update-desktop-database &> /dev/null || : + +%transfiletriggerpostun -- %{_datadir}/applications +update-desktop-database &> /dev/null || : + +%files +%doc AUTHORS README NEWS +%license COPYING +%{_bindir}/* +%{_mandir}/man1/desktop-file-install.1* +%{_mandir}/man1/desktop-file-validate.1* +%{_mandir}/man1/update-desktop-database.1* +%{_mandir}/man1/desktop-file-edit.1* +%{_emacs_sitestartdir}/desktop-entry-mode-init.el +%ghost %{_emacs_sitestartdir}/desktop-entry-mode-init.elc +%{_emacs_sitelispdir}/desktop-file-utils/ + +%changelog +* Tue Nov 26 2024 MSVSphere Packaging Team - 0.26-13 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 0.26-13 +- Bump release for June 2024 mass rebuild + +* Mon Feb 12 2024 Tomas Popela - 0.26-12 +- Build for the SPDX license format change + +* Wed Jan 24 2024 Fedora Release Engineering - 0.26-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.26-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 0.26-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 0.26-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 0.26-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Feb 15 2022 David King - 0.26-6 +- Support files conforming to 1.5 of the specification (#2053905) + +* Thu Jan 20 2022 Fedora Release Engineering - 0.26-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.26-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0.26-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.26-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jun 24 2020 Kalev Lember - 0.26-1 +- Update to 0.26 +- Switch to the meson build system +- Avoid hardcoding man page extensions +- Drop old emacs-desktop-file-utils obsoletes/provides + +* Tue Jan 28 2020 Fedora Release Engineering - 0.24-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Aug 14 2019 Kalev Lember - 0.24-1 +- Update to 0.24 + +* Wed Jul 24 2019 Fedora Release Engineering - 0.23-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.23-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 0.23-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Apr 09 2018 Adam Williamson - 0.23-8 +- Add 'font' as a valid media type (#1564650, fdo#105785) + +* Wed Feb 07 2018 Fedora Release Engineering - 0.23-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Feb 05 2018 Rex Dieter - 0.23-6 +- scriplets: silence output, ignore errors +- %%license COPYING +- drop deprecated Group: tag + +* Wed Aug 02 2017 Fedora Release Engineering - 0.23-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.23-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 0.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sat Dec 31 2016 Kevin Kofler - 0.23-2 +- Add Pantheon to the list of desktop environments (#1333550, fdo#97385) + +* Fri Jul 01 2016 Michael Catanzaro - 0.23-1 +- Update to 0.23 + +* Wed Feb 03 2016 Fedora Release Engineering - 0.22-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Aug 14 2015 Matthias Clasen - 0.22-6 +- Add file triggers for desktop file mime extraction + +* Wed Jun 17 2015 Fedora Release Engineering - 0.22-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Feb 21 2015 Till Maas - 0.22-4 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + +* Sat Aug 16 2014 Fedora Release Engineering - 0.22-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Aug 29 2013 Kalev Lember - 0.22-1 +- Update to 0.22 + +* Sat Aug 03 2013 Fedora Release Engineering - 0.21-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Oct 19 2012 Kalev Lember - 0.21-1 +- Update to 0.21 + +* Thu Sep 06 2012 Dan Mashal 0.20-4 +- Update F17 to 0.20 (#847097). + +* Sat Aug 11 2012 Ville Skyttä - 0.20-3 +- Fold emacs-* subpackages into main (#690264). + +* Wed Jul 18 2012 Fedora Release Engineering - 0.20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri May 18 2012 Matthias Clasen - 0.20-1 +- Update to 0.20 + +* Fri Jan 13 2012 Fedora Release Engineering - 0.19-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Dec 23 2011 Matthias Clasen - 0.19-5 +- Fix up locale lists just like other lists + +* Tue Dec 20 2011 Matthias Clasen - 0.19-1 +- Update to 0.19: support for Unity as desktop env, and support + for Keywords + +* Mon Jul 04 2011 Adam Williamson - 0.18-4 +- add unity.patch from upstream: add Unity to list of registered + environments + +* Tue Feb 08 2011 Fedora Release Engineering - 0.18-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Jan 30 2011 Ville Skyttä - 0.18-2 +- Add desktop-entry-mode-init.el, fix emacs site-start dir ownership. + +* Thu Jan 13 2011 Matthias Clasen - 0.18-1 +- Update to 0.18 + +* Fri Nov 5 2010 Matthias Clasen - 0.16-3 +- Don't warn about x-scheme-handler pseudo-mime-types + +* Sat Sep 25 2010 Parag Nemade - 0.16-2 +- Merge-review cleanup (#225681) + +* Thu Apr 1 2010 Matthias Clasen 0.16-1 +- Update to 0.16 + +* Fri Jul 24 2009 Fedora Release Engineering - 0.15-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 0.15-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 04 2009 Richard Hughes - 0.15-6 +- Panu seems to be shipping the prov file in rpmbuild. Remove it here until we + work out where it belongs. + +* Wed Feb 04 2009 Richard Hughes - 0.15-5 +- Panu merged the rpm bits for this feature, but we've got a new provides + filename. Respin this package with the new name. + +* Thu Jan 22 2009 Richard Hughes - 0.15-4 +- Rename desktop-mime-type.prov to desktop_mime_type.prov and add the tiny + macros.desktop_mime_type file so that we can trivially patch rpm to enable + this new functionality. + +* Fri May 02 2008 Richard Hughes - 0.15-3 +- Add desktop-mime-type.prov so that we can automatically + generate mimetype provides for packages at build time. + This lets us do some cool things with PackageKit in the future. + +* Wed Mar 19 2008 Ray Strode - 0.15-2 +- Drop old unneeded obsoletes on desktop-file-validator +(bug 225681) + +* Tue Mar 4 2008 Matthias Clasen - 0.15-1 +- Update to 0.15 +- Drop upstreamed patch + +* Tue Feb 19 2008 Fedora Release Engineering - 0.14-3 +- Autorebuild for GCC 4.3 + +* Thu Dec 6 2007 Ray Strode 0.14-2 +- make icon extension a warning not an error + +* Fri Nov 30 2007 Christopher Stone 0.14-1 +- Upstream sync +- Remove no longer needed short option patch + +* Wed Aug 15 2007 Matthias Clasen - 0.13-3 +- Make the -m option work (#232761) + +* Mon Aug 6 2007 Matthias Clasen - 0.13-2 +- Update license field + +* Tue Jun 5 2007 Matthias Clasen - 0.13-1 +- Update to 0.13, which features a completely rewritten validator + +* Thu Mar 08 2007 Florian La Roche - 0.12-4 +- remove empty post/preun scripts completely + +* Tue Nov 28 2006 Ray Strode - 0.12-3 +- drop some rm -f cruft +- don't call update-desktop-database from %%post or %%postun + +* Tue Nov 28 2006 Ray Strode - 0.12-2 +- make --vendor optional + +* Tue Nov 28 2006 Ray Strode - 0.12-1 +- Update to 0.12 + +* Fri Oct 27 2006 Ray Strode - 0.11-4 +- commit the fix attempted in 0.11-2 and 0.11-3 to the right + function... + +* Fri Oct 27 2006 Ray Strode - 0.11-3 +- actually apply the patch written in 0.11-2 + +* Thu Oct 26 2006 Ray Strode - 0.11-2 +- make desktop file validation non-fatal until we + add support for categories beginning with X- and clean up + our menu system to not require invalid categories + (bug 212048) + +* Mon Oct 23 2006 Matthias Clasen - 0.11-1 +- Update to 0.11 + +* Wed Jul 26 2006 Jesse Keating - 0.10-7 +- rebuild + +* Fri Feb 10 2006 Jesse Keating - 0.10-6.1 +- bump again for double-long bug on ppc(64) + +* Fri Feb 10 2006 Ray Strode - 0.10-6 +- call update-desktop-database in %%preun (bug 180898) +- don't fail if update-desktop-database fails +- don't use %%makeinstall + +* Fri Feb 10 2006 Ray Strode - 0.10-5 +- call update-desktop-database in %%post (bug 180898) + +* Tue Feb 07 2006 Jesse Keating - 0.10-4.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Sun Jan 22 2006 Ray Strode - 0.10-4 +- don't use uninitialized memory (bug 178591) + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Wed Aug 31 2005 Ray Strode - 0.10-3 +- bump build requires for glib to 2.2.0 (bug #146585). + +* Thu May 12 2005 Ray Strode - 0.10-2 +- Add build requires for emacs (bug #141297). + +* Wed Jan 26 2005 Matthias Clasen - 0.10-1 +- Update to 0.10 + +* Mon Oct 18 2004 Miloslav Trmac - 0.9-2 +- Output error message instead of assertion failure (#134934) + +* Tue Sep 28 2004 Mark McLoughlin 0.9-1 +- Update to 0.9, remove upstreamed patches + +* Mon Sep 27 2004 Ray Strode 0.8-6 +- Swap if and else in egg_desktop_entries_get_locale_encoding + to prevent allocating massive amounts of unneeded ram. + +* Mon Sep 27 2004 Ray Strode 0.8-5 +- Swap if and else in egg_desktop_entries_get_locale_country + to prevent allocating massive amounts of unneeded ram. + +* Thu Sep 23 2004 Ray Strode 0.8-4 +- Fix the fix for --remove-show-in option + +* Thu Sep 23 2004 Ray Strode 0.8-3 +- Fix --remove-show-in option + +* Mon Sep 13 2004 Dan Williams 0.8-2 +- Fix RH #131983 (annoying log message about "entries != NULL") + +* Fri Sep 3 2004 Mark McLoughlin 0.8-1 +- Update to 0.8 + +* Sat Jul 31 2004 Dan Williams 0.7-1 +- Update to 0.7 + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Mon Mar 1 2004 Dan Williams 0.4-2 +- Fix RH #117201, initial comment fails validation +- Add in, but do not use, Frederic Crozat's freedesktop.org + menu-spec 0.8 patch + +* Thu Feb 19 2004 Mark McLoughlin 0.4-1 +- Update to 0.4 + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Wed Sep 3 2003 Havoc Pennington 0.3-10 +- fix for #103276 (int/size_t issue) from twoerner + +* Mon Jul 7 2003 Alexander Larsson 0.3-9 +- Rebuild + +* Mon Jun 23 2003 Havoc Pennington 0.3-8 +- rebuild + +* Thu Jun 5 2003 Jonathan Blandford 0.3-6 +- Backport patch to allow @MODIFIER in locale keys + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Fri Dec 6 2002 Havoc Pennington +- rebuild + +* Tue Aug 6 2002 Havoc Pennington +- fix more error messages + +* Tue Aug 6 2002 Havoc Pennington +- remove old symlinks before creating new ones, chills out + a lot of error messages + +* Tue Aug 6 2002 Havoc Pennington +- version 0.3 + +* Wed Jul 24 2002 Havoc Pennington +- 0.2.95 cvs snap, should fix OnlyShowIn + +* Mon Jul 22 2002 Havoc Pennington +- 0.2.94 cvs snap, adds --print-available + +* Tue Jul 9 2002 Havoc Pennington +- 0.2.93 cvs snap with a crash fixed, and corrects [KDE Desktop Entry] + +* Fri Jun 21 2002 Havoc Pennington +- 0.2.92 cvs snap with --remove-key and checking for OnlyShowIn + and missing trailing semicolons on string lists + +* Fri Jun 21 2002 Havoc Pennington +- 0.2.91 cvs snap with --copy-name-to-generic-name and + --copy-generic-name-to-name + +* Sun Jun 16 2002 Havoc Pennington +- 0.2.90 cvs snap with --delete-original fixed + +* Fri Jun 07 2002 Havoc Pennington +- rebuild in different environment + +* Wed Jun 5 2002 Havoc Pennington +- 0.2 + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Thu May 09 2002 Havoc Pennington +- rebuild in different environment + +* Thu May 9 2002 Havoc Pennington +- initial build