2006-12-21 13:32:37 +01:00
|
|
|
#
|
2011-03-01 04:15:35 +01:00
|
|
|
# spec file for package nano
|
2006-12-21 13:32:37 +01:00
|
|
|
#
|
2016-01-14 16:26:45 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-21 13:32:37 +01:00
|
|
|
#
|
2008-08-27 01:56:32 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-03-01 10:01:41 +01:00
|
|
|
|
- Update to version 2.6.0:
* fixes more than fifty little bugs -- and some of them not so
little.
* It improves moving about in the file browser, corrects failings
of the internal spell checker, adds a new feature
(comment/uncomment lines, with default binding M-3), makes some
error messages clearer, shows more of a file when positionlog
is used and the cursor is near the end, displays all error
messages at startup if there are multiple ones, does not
misinterpret keystrokes when typing very fast, is less eager
to trim the filename on narrow terminals, speeds up
case-insensitive searches, and allows to abort re-searches.
OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=43
2016-06-18 14:57:05 +02:00
|
|
|
%define _version 2.6
|
2006-12-21 13:32:37 +01:00
|
|
|
Name: nano
|
- Update to version 2.6.0:
* fixes more than fifty little bugs -- and some of them not so
little.
* It improves moving about in the file browser, corrects failings
of the internal spell checker, adds a new feature
(comment/uncomment lines, with default binding M-3), makes some
error messages clearer, shows more of a file when positionlog
is used and the cursor is near the end, displays all error
messages at startup if there are multiple ones, does not
misinterpret keystrokes when typing very fast, is less eager
to trim the filename on narrow terminals, speeds up
case-insensitive searches, and allows to abort re-searches.
OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=43
2016-06-18 14:57:05 +02:00
|
|
|
Version: 2.6.0
|
2013-03-26 12:38:18 +01:00
|
|
|
Release: 0
|
2015-03-25 17:24:29 +01:00
|
|
|
Summary: Pico editor clone with enhancements
|
2013-03-26 12:38:18 +01:00
|
|
|
License: GPL-3.0+
|
2011-01-02 16:58:17 +01:00
|
|
|
Group: Productivity/Editors/Other
|
2015-03-25 17:24:29 +01:00
|
|
|
Url: http://nano-editor.org/
|
|
|
|
Source0: http://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.gz
|
2015-04-01 16:21:18 +02:00
|
|
|
Source1: http://nano-editor.org/dist/v%{_version}/%{name}-%{version}.tar.gz.asc
|
|
|
|
Source2: %{name}.keyring
|
2011-03-01 04:15:35 +01:00
|
|
|
BuildRequires: file-devel
|
2015-03-25 17:24:29 +01:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: pkg-config
|
2016-02-13 16:50:19 +01:00
|
|
|
BuildRequires: zlib-devel
|
2015-03-25 17:24:29 +01:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-09-17 06:19:58 +02:00
|
|
|
%if 0%{?suse_version} > 1230
|
|
|
|
BuildRequires: groff-full
|
|
|
|
%else
|
|
|
|
BuildRequires: groff
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
%else
|
|
|
|
BuildRequires: texinfo
|
|
|
|
%endif
|
2011-03-01 04:15:35 +01:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%description
|
2015-03-25 17:24:29 +01:00
|
|
|
GNU nano is a small and friendly text editor. It aims to emulate
|
|
|
|
the Pico text editor while also offering a few enhancements.
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2011-03-01 10:01:41 +01:00
|
|
|
%lang_package
|
2013-03-26 12:38:18 +01:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%prep
|
2011-03-01 04:15:35 +01:00
|
|
|
%setup -q
|
2011-05-12 21:32:34 +02:00
|
|
|
|
2015-03-25 17:24:29 +01:00
|
|
|
# Remove build time references so build-compare can do its work.
|
2011-05-12 21:32:34 +02:00
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/nano.c
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/nano.c
|
2010-10-06 22:40:38 +02:00
|
|
|
|
2006-12-21 13:32:37 +01:00
|
|
|
%build
|
2015-03-25 17:24:29 +01:00
|
|
|
%configure \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-utf8
|
2013-03-26 12:38:18 +01:00
|
|
|
make %{?_smp_mflags}
|
2006-12-21 13:32:37 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-25 17:24:29 +01:00
|
|
|
%make_install
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2015-03-25 17:24:29 +01:00
|
|
|
# Move documents to a proper directory.
|
|
|
|
mkdir -p %{buildroot}%{_docdir}/
|
|
|
|
mv -f %{buildroot}%{_datadir}/doc/%{name}/ %{buildroot}%{_docdir}/%{name}/
|
2011-03-01 04:15:35 +01:00
|
|
|
|
|
|
|
%find_lang %{name} --with-man --all-name
|
2008-09-13 05:55:48 +02:00
|
|
|
|
2008-02-25 17:30:35 +01:00
|
|
|
%post
|
2015-03-25 17:24:29 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
2011-03-01 10:01:41 +01:00
|
|
|
|
2011-03-01 04:15:35 +01:00
|
|
|
%preun
|
2015-03-25 17:24:29 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{?ext_info}
|
2008-02-25 17:30:35 +01:00
|
|
|
|
2010-02-18 16:42:56 +01:00
|
|
|
%files
|
2015-03-25 17:24:29 +01:00
|
|
|
%defattr(-,root,root)
|
- Update to version 2.6.0:
* fixes more than fifty little bugs -- and some of them not so
little.
* It improves moving about in the file browser, corrects failings
of the internal spell checker, adds a new feature
(comment/uncomment lines, with default binding M-3), makes some
error messages clearer, shows more of a file when positionlog
is used and the cursor is near the end, displays all error
messages at startup if there are multiple ones, does not
misinterpret keystrokes when typing very fast, is less eager
to trim the filename on narrow terminals, speeds up
case-insensitive searches, and allows to abort re-searches.
OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=43
2016-06-18 14:57:05 +02:00
|
|
|
%doc AUTHORS ChangeLog ChangeLog.pre-2.1 COPYING COPYING.DOC NEWS README THANKS TODO
|
2015-03-25 17:24:29 +01:00
|
|
|
%doc %{_docdir}/nano/
|
|
|
|
%exclude %{_docdir}/%{name}/*/
|
2010-10-06 22:40:39 +02:00
|
|
|
%{_bindir}/nano
|
|
|
|
%{_bindir}/rnano
|
2011-03-01 04:15:35 +01:00
|
|
|
%{_datadir}/nano/
|
2015-03-25 17:24:29 +01:00
|
|
|
%{_infodir}/nano.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/nano.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/rnano.1%{?ext_man}
|
|
|
|
%{_mandir}/man5/nanorc.5%{?ext_man}
|
2006-12-21 13:32:37 +01:00
|
|
|
|
2010-02-18 16:42:56 +01:00
|
|
|
%files lang -f %{name}.lang
|
2015-03-25 17:24:29 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/%{name}/*/
|
2010-02-18 16:42:56 +01:00
|
|
|
|
2007-03-29 18:21:59 +02:00
|
|
|
%changelog
|