85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
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 <dillon.chen@turbolinux.com.cn> - 0.4.2-1
|
|
- Init package
|