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/
#
- Update to version 4.0: * An overlong line is no longer automatically hard-wrapped. * Smooth scrolling (one line at a time) has become the default. * A newline character is no longer automatically added at end of buffer. * The line below the title bar is by default part of the editing space. * Option --breaklonglines (-b) turns automatic hard-wrapping back on. * Option --jumpyscrolling (-j) gives the chunky, half-screen scrolling. * Option --finalnewline (-f) brings back the automatic newline at EOF. * Option --emptyline (-e) leaves the line below the title bar unused. * <Alt+Up> and <Alt+Down> now do a linewise scroll instead of a findnext. * Any number of justifications can be undone (like all other operations). * When marked text is justified, it becomes a single, separate paragraph. * Option --guidestripe=<number> draws a vertical bar at the given column. * Option --fill=<number> no longer turns on automatic hard-wrapping. * When a line continues offscreen, it now ends with a highlighted ">". * The halfs of a split two-column character are shown as "[" and "]". * A line now scrolls horizontally one column earlier. * The bindable functions 'cutwordleft' and 'cutwordright' were renamed to 'chopwordleft' and 'chopwordright' as they don't use the cutbuffer. * The paragraph-jumping functions were moved from Search to Go-to-Line. * Option --rebinddelete is able to compensate for more misbindings. * Options --morespace and --smooth are obsolete and thus ignored. * The --disable-wrapping-as-root configure option was removed. OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=101
2019-03-26 09:52:59 +01:00
%define _version 4
Name: nano
Version: 4.9.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