119 lines
3.3 KiB
RPMSpec
119 lines
3.3 KiB
RPMSpec
%global minorversion 0.5
|
|
|
|
Name: mousepad
|
|
Version: 0.5.5
|
|
Release: 1
|
|
Summary: Simple text editor for Xfce desktop environment
|
|
License: GPLv2+
|
|
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)
|
|
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
|
|
|
|
%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
|
|
|
|
%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
|
|
|
|
desktop-file-install \
|
|
--remove-category="Application" \
|
|
--delete-original \
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
%{buildroot}/%{_datadir}/applications/%{name}-settings.desktop
|
|
|
|
mkdir -p %{buildroot}%{_metainfodir}
|
|
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml
|
|
|
|
%files -f %{name}.lang
|
|
%doc AUTHORS NEWS THANKS
|
|
%license COPYING
|
|
%{_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 <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
|
|
- Init package
|