xedit/xedit.spec
Filipe Rosset 20bdfa1dd8 switch from autotools to meson build system
Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>
2026-07-10 00:47:43 -03:00

56 lines
1.3 KiB
RPMSpec

Name: xedit
Version: 1.2.5
Release: %autorelease
Summary: Simple text editor for X
URL: https://xorg.freedesktop.org
Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
Source1: %{name}.desktop
License: MIT AND BSD-3-Clause
BuildRequires: desktop-file-utils
BuildRequires: gcc
BuildRequires: libXaw-devel
BuildRequires: meson
BuildRequires: xorg-x11-util-macros
Patch: xedit-hunspell.patch
Requires: xorg-x11-xbitmaps
Requires: hunspell
Requires: hunspell-en
Requires: grep
Requires: words
Requires: ctags
Requires: xorg-x11-fonts-misc
Requires: xorg-x11-fonts-75dpi
Requires: xorg-x11-fonts-100dpi
%description
Xedit provides a simple text editor for X.
%prep
%autosetup -p1
cp lisp/README README.lisp
cp lisp/re/README README.re
%build
%meson -Dlispdir=%{_datadir}/X11/%{name}
%meson_build
%install
%meson_install
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%meson_test
%files
%license COPYING
%doc AUTHORS ChangeLog README README.lisp README.re
%{_bindir}/%{name}
%{_datadir}/X11/%{name}
%{_datadir}/X11/app-defaults/Xedit
%{_datadir}/X11/app-defaults/Xedit-color
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/xedit.1*
%changelog
%autochangelog