parent
a28c8d48ab
commit
95e2ac7a00
25
Add_preferences_action_to_mousepad_desktop_file.patch
Normal file
25
Add_preferences_action_to_mousepad_desktop_file.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 9ff299810a9c4f6a7373c53d5f3496399910ed4b Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
|
||||||
|
Date: Wed, 12 May 2021 12:03:01 +0200
|
||||||
|
Subject: [PATCH] Add "preferences" action to `mousepad.desktop`
|
||||||
|
|
||||||
|
Fixes #130.
|
||||||
|
---
|
||||||
|
mousepad.desktop.in.in | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/mousepad.desktop.in.in b/mousepad.desktop.in.in
|
||||||
|
index 969d77e1..612572ea 100644
|
||||||
|
--- a/mousepad.desktop.in.in
|
||||||
|
+++ b/mousepad.desktop.in.in
|
||||||
|
@@ -10,6 +10,7 @@ StartupNotify=true
|
||||||
|
Type=Application
|
||||||
|
Categories=Utility;TextEditor;GTK;
|
||||||
|
MimeType=text/plain;
|
||||||
|
+Actions=preferences;
|
||||||
|
|
||||||
|
[Desktop Action preferences]
|
||||||
|
_Name=Mousepad Preferences
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
||||||
Binary file not shown.
BIN
mousepad-0.5.5.tar.bz2
Normal file
BIN
mousepad-0.5.5.tar.bz2
Normal file
Binary file not shown.
@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<application>
|
|
||||||
<id type="desktop">mousepad.desktop</id>
|
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
|
||||||
<summary>Simple Text editor for Xfce Desktop Environment</summary>
|
|
||||||
<description>
|
|
||||||
<p>Mousepad is a simple, fast and easy-to-use text editor, designed to be
|
|
||||||
an application for the quick editing of text files. Mousepad has many
|
|
||||||
features, including: search and replace, font selection, word wrapping,
|
|
||||||
multi-line indenting, auto indenting, line number display and the
|
|
||||||
ability to print your text files.
|
|
||||||
</p>
|
|
||||||
</description>
|
|
||||||
<url type="homepage">http://git.xfce.org/apps/mousepad/</url>
|
|
||||||
<url type="bugtracker">https://bugzilla.xfce.org/describecomponents.cgi?product=mousepad</url>
|
|
||||||
|
|
||||||
<screenshots>
|
|
||||||
<screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mousepad/a.png</screenshot>
|
|
||||||
</screenshots>
|
|
||||||
|
|
||||||
<updatecontact>xfce4-dev@xfce.org</updatecontact>
|
|
||||||
</application>
|
|
||||||
@ -1,14 +1,15 @@
|
|||||||
|
%global minorversion 0.5
|
||||||
|
|
||||||
Name: mousepad
|
Name: mousepad
|
||||||
Version: 0.4.2
|
Version: 0.5.5
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Simple text editor for Xfce desktop environment
|
Summary: Simple text editor for Xfce desktop environment
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
#Group: Development/Libraries
|
URL: https://git.xfce.org/apps/mousepad/about/
|
||||||
URL: http://xfce.org/
|
Source0: http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
|
||||||
Source0: http://archive.xfce.org/src/apps/%{name}/0.4/%{name}-%{version}.tar.bz2
|
Patch0: Add_preferences_action_to_mousepad_desktop_file.patch
|
||||||
Source1: %{name}.appdata.xml
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
#BuildArch: noarch
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: dbus-glib-devel
|
BuildRequires: dbus-glib-devel
|
||||||
BuildRequires: exo-devel
|
BuildRequires: exo-devel
|
||||||
@ -47,6 +48,23 @@ the features:
|
|||||||
* Drag and Drop
|
* Drag and Drop
|
||||||
* Printing
|
* Printing
|
||||||
|
|
||||||
|
%package -n libmousepad0
|
||||||
|
Summary: Mousepad plugin provider
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: %{name} >= %{version}
|
||||||
|
|
||||||
|
%description -n libmousepad0
|
||||||
|
A plugin provider for the Mousepad text editor
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for Mousepad
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: libmousepad0 >= %{version}
|
||||||
|
|
||||||
|
%Description devel
|
||||||
|
Development files for Mousepad plugin development
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup
|
%autosetup
|
||||||
|
|
||||||
@ -65,20 +83,36 @@ desktop-file-install \
|
|||||||
--dir=%{buildroot}%{_datadir}/applications \
|
--dir=%{buildroot}%{_datadir}/applications \
|
||||||
%{buildroot}/%{_datadir}/applications/%{name}.desktop
|
%{buildroot}/%{_datadir}/applications/%{name}.desktop
|
||||||
|
|
||||||
|
desktop-file-install \
|
||||||
|
--remove-category="Application" \
|
||||||
|
--delete-original \
|
||||||
|
--dir=%{buildroot}%{_datadir}/applications \
|
||||||
|
%{buildroot}/%{_datadir}/applications/%{name}-settings.desktop
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_metainfodir}
|
mkdir -p %{buildroot}%{_metainfodir}
|
||||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_metainfodir}
|
|
||||||
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml
|
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%doc AUTHORS NEWS README TODO THANKS
|
%doc AUTHORS NEWS THANKS
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_bindir}/mousepad
|
%{_bindir}/mousepad
|
||||||
%{_metainfodir}/%{name}.appdata.xml
|
%{_metainfodir}/%{name}.appdata.xml
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_datadir}/applications/%{name}-settings.desktop
|
||||||
%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
|
||||||
%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy
|
%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy
|
||||||
|
%{_datadir}/icons/hicolor/*/*/*.%{name}*
|
||||||
|
|
||||||
|
%files -n libmousepad0
|
||||||
|
%{_libdir}/libmousepad.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libmousepad.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.5.5-1
|
||||||
|
- Update to 0.5.5
|
||||||
|
- Split out devel and libmousepad0 library for plugins.
|
||||||
|
|
||||||
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.4.2-1
|
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.4.2-1
|
||||||
- Init package
|
- Init package
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user