diff --git a/Add_preferences_action_to_mousepad_desktop_file.patch b/Add_preferences_action_to_mousepad_desktop_file.patch new file mode 100644 index 0000000..557d914 --- /dev/null +++ b/Add_preferences_action_to_mousepad_desktop_file.patch @@ -0,0 +1,25 @@ +From 9ff299810a9c4f6a7373c53d5f3496399910ed4b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= +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 + diff --git a/mousepad-0.4.2.tar.bz2 b/mousepad-0.4.2.tar.bz2 deleted file mode 100644 index 6dbb6ef..0000000 Binary files a/mousepad-0.4.2.tar.bz2 and /dev/null differ diff --git a/mousepad-0.5.5.tar.bz2 b/mousepad-0.5.5.tar.bz2 new file mode 100644 index 0000000..09b5ba1 Binary files /dev/null and b/mousepad-0.5.5.tar.bz2 differ diff --git a/mousepad.appdata.xml b/mousepad.appdata.xml deleted file mode 100644 index 1763414..0000000 --- a/mousepad.appdata.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - mousepad.desktop - CC0-1.0 - Simple Text editor for Xfce Desktop Environment - -

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. -

-
- http://git.xfce.org/apps/mousepad/ - https://bugzilla.xfce.org/describecomponents.cgi?product=mousepad - - - https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mousepad/a.png - - - xfce4-dev@xfce.org -
diff --git a/mousepad.spec b/mousepad.spec index 81e567b..b361597 100644 --- a/mousepad.spec +++ b/mousepad.spec @@ -1,14 +1,15 @@ +%global minorversion 0.5 + Name: mousepad -Version: 0.4.2 +Version: 0.5.5 Release: 1 Summary: Simple text editor for Xfce desktop environment License: GPLv2+ -#Group: Development/Libraries -URL: http://xfce.org/ -Source0: http://archive.xfce.org/src/apps/%{name}/0.4/%{name}-%{version}.tar.bz2 -Source1: %{name}.appdata.xml +URL: https://git.xfce.org/apps/mousepad/about/ +Source0: http://archive.xfce.org/src/apps/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2 +Patch0: Add_preferences_action_to_mousepad_desktop_file.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -#BuildArch: noarch BuildRequires: gcc BuildRequires: dbus-glib-devel BuildRequires: exo-devel @@ -47,6 +48,23 @@ the features: * Drag and Drop * 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 %autosetup @@ -65,20 +83,36 @@ desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{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} -install -p -m 644 %{SOURCE1} %{buildroot}%{_metainfodir} appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml %files -f %{name}.lang -%doc AUTHORS NEWS README TODO THANKS +%doc AUTHORS NEWS THANKS %license COPYING -%{_bindir}/mousepad +%{_bindir}/mousepad %{_metainfodir}/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop +%{_datadir}/applications/%{name}-settings.desktop %{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml %{_datadir}/polkit-1/actions/org.xfce.mousepad.policy +%{_datadir}/icons/hicolor/*/*/*.%{name}* + +%files -n libmousepad0 +%{_libdir}/libmousepad.* + +%files devel +%{_libdir}/libmousepad.so %changelog +* Fri Jun 18 2021 zhanglin - 0.5.5-1 +- Update to 0.5.5 +- Split out devel and libmousepad0 library for plugins. + * Mon Jul 27 2020 Dillon Chen - 0.4.2-1 - Init package