diff --git a/mousepad-0.4.2.tar.bz2 b/mousepad-0.4.2.tar.bz2 new file mode 100644 index 0000000..6dbb6ef Binary files /dev/null and b/mousepad-0.4.2.tar.bz2 differ diff --git a/mousepad.appdata.xml b/mousepad.appdata.xml new file mode 100644 index 0000000..1763414 --- /dev/null +++ b/mousepad.appdata.xml @@ -0,0 +1,22 @@ + + + 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 new file mode 100644 index 0000000..81e567b --- /dev/null +++ b/mousepad.spec @@ -0,0 +1,84 @@ +Name: mousepad +Version: 0.4.2 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +BuildRequires: gcc +BuildRequires: dbus-glib-devel +BuildRequires: exo-devel +BuildRequires: glib2-devel +BuildRequires: gtksourceview3-devel +BuildRequires: libxfce4util-devel +BuildRequires: xfconf-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: intltool +BuildRequires: libappstream-glib + +%description +Mousepad aims to be an easy-to-use and fast editor. It's target is an editor for +quickly editing text files, not a development environment or an editor with a +huge bunch of plugins. + +Mousepad is based on Leafpad. The initial reason for Mousepad was to provide +printing support, which would have been difficult for Leafpad for various +reasons. + +Although some features are under development, currently Mousepad has following +the features: + * Complete support for UTF-8 text + * Cut/Copy/Paste and Select All text + * Search and Replace + * Font selecton + * Word Wrap + * Character coding selection + * Auto character coding detection (UTF-8 and some codesets) + * Manual codeset setting + * Infinite Undo/Redo by word + * Auto Indent + * Multi-line Indent + * Display line numbers + * Drag and Drop + * Printing + +%prep +%autosetup + +%build +%configure +%make_build + +%install +%make_install + +%find_lang %{name} + +desktop-file-install \ + --remove-category="Application" \ + --delete-original \ + --dir=%{buildroot}%{_datadir}/applications \ + %{buildroot}/%{_datadir}/applications/%{name}.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 +%license COPYING +%{_bindir}/mousepad +%{_metainfodir}/%{name}.appdata.xml +%{_datadir}/applications/%{name}.desktop +%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml +%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy + +%changelog +* Mon Jul 27 2020 Dillon Chen - 0.4.2-1 +- Init package