Package init
This commit is contained in:
commit
08589cd27d
2
desktop-entry-mode-init.el
Normal file
2
desktop-entry-mode-init.el
Normal file
@ -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))
|
||||||
25
desktop-file-utils-0.23-add-pantheon.patch
Normal file
25
desktop-file-utils-0.23-add-pantheon.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 5b88c95c45e91781aed441c446210c6979350c3f Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Faure <faure@kde.org>
|
||||||
|
Date: Sat, 20 Aug 2016 10:36:57 +0200
|
||||||
|
Subject: Added Pantheon to the list of desktop environments
|
||||||
|
|
||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=97385
|
||||||
|
|
||||||
|
diff --git a/src/validate.c b/src/validate.c
|
||||||
|
index bd31fd5..d414a53 100644
|
||||||
|
--- a/src/validate.c
|
||||||
|
+++ b/src/validate.c
|
||||||
|
@@ -366,8 +366,9 @@ static DesktopKeyDefinition registered_action_keys[] = {
|
||||||
|
{ DESKTOP_STRING_TYPE, "Exec", TRUE, FALSE, FALSE, handle_exec_key }
|
||||||
|
};
|
||||||
|
|
||||||
|
+/* This should be the same list as in xdg-specs/menu/menu-spec.xml */
|
||||||
|
static const char *show_in_registered[] = {
|
||||||
|
- "GNOME", "KDE", "LXDE", "LXQt", "MATE", "Razor", "ROX", "TDE", "Unity", "XFCE", "Cinnamon", "EDE", "Old"
|
||||||
|
+ "GNOME", "KDE", "LXDE", "LXQt", "MATE", "Razor", "ROX", "TDE", "Unity", "XFCE", "EDE", "Cinnamon", "Pantheon", "Old"
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct {
|
||||||
|
--
|
||||||
|
cgit v0.10.2
|
||||||
|
|
||||||
30
desktop-file-utils-0.23-font-media.patch
Normal file
30
desktop-file-utils-0.23-font-media.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 16fa31708d6b6af047352d1a78a7eab823b63221 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Matthias Clasen <mclasen@redhat.com>
|
||||||
|
Date: Mon, 9 Apr 2018 17:06:37 -0400
|
||||||
|
Subject: [PATCH] Add font as valid media type
|
||||||
|
|
||||||
|
This was codified in RFC 8081, and some desktop apps are using
|
||||||
|
this now.
|
||||||
|
---
|
||||||
|
src/mimeutils.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/mimeutils.c b/src/mimeutils.c
|
||||||
|
index 0833fdb..bddc7a0 100644
|
||||||
|
--- a/src/mimeutils.c
|
||||||
|
+++ b/src/mimeutils.c
|
||||||
|
@@ -52,9 +52,9 @@ static const char *known_old_fdo_media_types[] = {
|
||||||
|
"x-directory"
|
||||||
|
};
|
||||||
|
|
||||||
|
-/* Defined in RFC 2045/2046 and RFC 2077 */
|
||||||
|
+/* Defined in RFC 2045/2046, RFC 2077 and RFC 8081 */
|
||||||
|
static const char *registered_discrete_media_types[] = {
|
||||||
|
- "application", "audio", "image", "model", "text", "video"
|
||||||
|
+ "application", "audio", "font", "image", "model", "text", "video"
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Defined in RFC 2045/2046 */
|
||||||
|
--
|
||||||
|
2.17.0
|
||||||
|
|
||||||
BIN
desktop-file-utils-0.23.tar.xz
Normal file
BIN
desktop-file-utils-0.23.tar.xz
Normal file
Binary file not shown.
64
desktop-file-utils.spec
Normal file
64
desktop-file-utils.spec
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
Name: desktop-file-utils
|
||||||
|
Version: 0.23
|
||||||
|
Release: 10
|
||||||
|
Summary: Desktop-file-utils contains utilities for manipulating desktop entries
|
||||||
|
License: GPLv2+
|
||||||
|
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
|
||||||
|
|
||||||
|
#patches from upstream
|
||||||
|
Patch0: desktop-file-utils-0.23-add-pantheon.patch
|
||||||
|
Patch1: desktop-file-utils-0.23-font-media.patch
|
||||||
|
|
||||||
|
BuildRequires: glib2-devel emacs
|
||||||
|
Requires: emacs-filesystem
|
||||||
|
Provides: emacs-%{name} = %{version}-%{release} emacs-%{name}-el = %{version}-%{release}
|
||||||
|
Obsoletes: emacs-%{name} < 0.20-3 emacs-%{name}-el < 0.20-3
|
||||||
|
|
||||||
|
%description
|
||||||
|
desktop-file-utils contains command line utilities for working with desktop entries, it contains:
|
||||||
|
desktop-file-validate:
|
||||||
|
validates a desktop file and prints warnings/errors about desktop entry specification violations.
|
||||||
|
desktop-file-install:
|
||||||
|
installs a desktop file to the applications directory, optionally munging it a bit in transit.
|
||||||
|
update-desktop-database:
|
||||||
|
updates the database containing a cache of MIME types handled by desktop files.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Help documents for desktop-file-utils
|
||||||
|
|
||||||
|
%description help
|
||||||
|
Help document for desktop-file-utils.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
install -d $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
|
||||||
|
mv $RPM_BUILD_ROOT%{_emacs_sitelispdir}/*.el* $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{name}
|
||||||
|
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
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS
|
||||||
|
%license COPYING
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_emacs_sitelispdir}/%{name}
|
||||||
|
%{_emacs_sitestartdir}/desktop-entry-mode-init.el
|
||||||
|
%ghost %{_emacs_sitestartdir}/desktop-entry-mode-init.elc
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc README NEWS
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 9 2019 yanzhihua <yanzhihua4@huawei.com> - 0.23-10
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user