SHA256
1
0
forked from pool/nano
nano/nano.spec

84 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nano
#
# Copyright (c) 2020 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 823380 from home:polslinux:branches:editors - GNU nano 5.0: * With --indicator (or -q or 'set indicator') nano will show a kind of scrollbar on the righthand side of the screen to indicate where in the buffer the viewport is located and how much it covers. * With <Alt+Insert> any line can be "tagged" with an anchor, and <Alt+PageUp> and <Alt+PageDown> will jump to the nearest anchor. When using line numbers, an anchor is shown as "+" in the margin. * The Execute Command prompt is now directly accessible from the main menu (with ^T, replacing the Spell Checker). The Linter, Formatter, Spell Checker, Full Justification, Suspension, and Cut-Till-End functions are available in this menu too. * On terminals that support at least 256 colors, nine new color names are available: pink, purple, mauve, lagoon, mint, lime, peach, orange, and latte. These do not have lighter versions. * For the color names red, green, blue, yellow, cyan, magenta, white, and black, the prefix 'light' gives a brighter color. Prefix 'bright' is deprecated, as it means both bold AND light. * All color names can be preceded with "bold," and/or "italic," (in that order) to get a bold and/or italic typeface. * With --bookstyle (or -O or 'set bookstyle') nano considers any line that begins with whitespace as the start of a paragraph. * Refreshing the screen with ^L now works in every menu. * In the main menu, ^L also centers the line with the cursor. * Toggling the help lines with M-X now works in all menus except in the help viewer and the linter. * At a filename prompt, the first <Tab> lists the possibilities, and these are listed near the bottom instead of near the top. * Bindable function 'curpos' has been renamed to 'location'. * Long option --tempfile has been renamed to --saveonexit. * Short option -S is now a synonym of --softwrap. * The New Buffer toggle (M-F) has become non-persistent. Options --multibuffer and 'set multibuffer' still make it default to on. * Backup files will retain their group ownership (when possible). * Data is synced to disk before "... lines written" is shown. * The raw escape sequences for F13 to F16 are no longer recognized. * Distro-specific syntaxes, and syntaxes of less common languages, have been moved down to subdirectory syntax/extra/. The affected distros and others may wish to move wanted syntaxes one level up. Syntaxes for Markdown, Haskell, and Ada were added. OBS-URL: https://build.opensuse.org/request/show/823380 OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=130
2020-07-29 14:31:24 +02:00
%define _version 5
Name: nano
Version: 5.2
Release: 0
Summary: Pico editor clone with enhancements
License: GPL-3.0-or-later
Group: Productivity/Text/Editors
URL: https://nano-editor.org/
Source0: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz
Source1: https://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.xz.asc
Source2: https://savannah.gnu.org/people/viewgpg.php?user_id=42085#/%{name}.keyring
BuildRequires: file-devel
BuildRequires: groff-full
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(zlib)
Requires(post): info
Requires(preun): info
%description
GNU nano is a small and friendly text editor. It aims to emulate
the Pico text editor while also offering a few enhancements.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-rpath \
--enable-utf8
%make_build
%install
%make_install
# Move documents to a proper directory.
mkdir -p %{buildroot}%{_docdir}/
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
%find_lang %{name} --with-man --all-name
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
%files
%license COPYING COPYING.DOC
%doc AUTHORS ChangeLog* IMPROVEMENTS NEWS README THANKS TODO doc/sample.nanorc
%doc %{_docdir}/nano/
%{_bindir}/nano
%{_bindir}/rnano
%{_datadir}/nano/
%{_infodir}/nano.info%{?ext_info}
%{_mandir}/man1/nano.1%{?ext_man}
%{_mandir}/man1/rnano.1%{?ext_man}
%{_mandir}/man5/nanorc.5%{?ext_man}
%files lang -f %{name}.lang
%changelog