Files
mg/mg.spec
Tomasz Hołubowicz f39d272d6d Accepting request 1103706 from home:alternateved
- Update to version 3.7:
  * New command display-help-toggle, ensures the quick-help text is
  always shown in the status area, enabled by default
  * New command apply-macro-to-region-lines by Ben Scuron 
  * New command end-or-call-last-kbd-macro, used in key bindings
  * Map function keys F1-F4 + F10 to common functions:
  F1: Toggle quick help
  F2: Save current buffer
  F3: Start keyboard macro
  F4: End keyboard macro, or call latest macro from mark
  * Sync with OpenBSD as of April 21, 2023:
  Add command set-tab-width to change per-buffer tab width
  Sync manual changes: grammar, visual improvements
  * Drop support for disabling no-tab-mode when calling configure
  script. Simplifies code greatly and not needed anymore since it is
  enabled by default upstream
  * Fix Home/End key for builds both with and without curses
  * Fix bug where the current markline is not reset after being
  cleared, by Ben Scuron
  * Sync with OpenBSD as of April 21, 2023:
  Fixes to no-tab-mode. OpenBSD had previously removed this mode,
  relevant change in this fork: indent next line with spaces
  Fix buffer overflow when no match is found for a search

OBS-URL: https://build.opensuse.org/request/show/1103706
OBS-URL: https://build.opensuse.org/package/show/editors/mg?expand=0&rev=9
2023-08-13 17:01:26 +00:00

54 lines
1.5 KiB
RPMSpec

#
# spec file for package mg
#
# Copyright (c) 2022-2023 Tomasz Hołubowicz <alternateved@pm.me>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: mg
Version: 3.7
Release: 0
Summary: Micro GNU Emacs clone
License: Unlicense
Group: Productivity/Text/Editors
URL: https://man.troglobit.com/man1/mg.1.html
Source: https://github.com/troglobit/mg/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf automake
BuildRequires: ncurses-devel
%description
Mg is micro GNU Emacs clone without lisp interpreter.
%prep
%setup -q
%build
autoreconf -i
%configure
%make_build
%install
%make_install
mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
rm %{buildroot}/usr/share/mg/tutorial.gz
rm %{buildroot}/usr/share/doc/packages/mg/.mg
rm %{buildroot}/usr/share/doc/packages/mg/UNLICENSE
%files
%license UNLICENSE
%doc README.md ChangeLog.md tutorial
%doc %{_docdir}/mg/
%{_bindir}/mg
%{_mandir}/man1/mg.1%{?ext_man}
%changelog