mousepad/mousepad.spec

127 lines
3.5 KiB
RPMSpec
Raw Normal View History

%global minorversion 0.5
2020-07-27 19:25:17 +08:00
Name: mousepad
2023-01-09 11:51:59 +08:00
Version: 0.5.10
2020-07-27 19:25:17 +08:00
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
2020-07-27 19:25:17 +08:00
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
2020-07-27 19:25:17 +08:00
%prep
%autosetup
%build
%configure
%make_build
%install
%make_install
%find_lang %{name}
desktop-file-install \
--remove-category="Application" \
--delete-original \
--dir=%{buildroot}%{_datadir}/applications \
2022-06-23 11:58:11 +08:00
%{buildroot}/%{_datadir}/applications/org.xfce.%{name}.desktop
2020-07-27 19:25:17 +08:00
desktop-file-install \
--remove-category="Application" \
--delete-original \
--dir=%{buildroot}%{_datadir}/applications \
2022-06-23 11:58:11 +08:00
%{buildroot}/%{_datadir}/applications/org.xfce.%{name}-settings.desktop
2020-07-27 19:25:17 +08:00
mkdir -p %{buildroot}%{_metainfodir}
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/*.appdata.xml
%files -f %{name}.lang
2023-01-04 19:17:32 +08:00
%doc AUTHORS NEWS
2020-07-27 19:25:17 +08:00
%license COPYING
%{_bindir}/mousepad
2022-06-23 11:58:11 +08:00
%{_metainfodir}/org.xfce.%{name}.appdata.xml
%{_datadir}/applications/org.xfce.%{name}.desktop
%{_datadir}/applications/org.xfce.%{name}-settings.desktop
2022-06-23 04:09:47 +00:00
%{_datadir}/glib-2.0/schemas/
2020-07-27 19:25:17 +08:00
%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy
%{_datadir}/icons/hicolor/*/*/*.%{name}*
%files -n libmousepad0
%{_libdir}/libmousepad.*
%files devel
%{_libdir}/libmousepad.so
2020-07-27 19:25:17 +08:00
%changelog
2023-01-09 11:51:59 +08:00
* Mon Jan 09 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.5.10-1
- update to 0.5.10
2023-01-04 19:17:32 +08:00
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.5.9-1
- Update to 0.5.9
2022-06-23 11:58:11 +08:00
* Thu Jun 23 2022 Dillon Chen <dillon.chen@gmail.com> - 0.5.8-1
- Update to 0.5.8
* 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.
2020-07-27 19:25:17 +08:00
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.4.2-1
- Init package