From d4adaff61681538e4c0c96f17fe99f2982d6dcf136fcb7fb084f96fb05e5a15b Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Wed, 6 Oct 2010 20:40:38 +0000 Subject: [PATCH] Accepting request 49876 from editors checked in (request 49876) OBS-URL: https://build.opensuse.org/request/show/49876 OBS-URL: https://build.opensuse.org/package/show/editors/nano?expand=0&rev=14 --- nano-2.2.2.tar.bz2 | 3 +++ nano-2.2.5.tar.bz2 | 3 --- nano-no-build-date.patch | 14 -------------- nano.changes | 27 --------------------------- nano.spec | 36 ++++++++++++++++-------------------- 5 files changed, 19 insertions(+), 64 deletions(-) create mode 100644 nano-2.2.2.tar.bz2 delete mode 100644 nano-2.2.5.tar.bz2 delete mode 100644 nano-no-build-date.patch diff --git a/nano-2.2.2.tar.bz2 b/nano-2.2.2.tar.bz2 new file mode 100644 index 0000000..8b6efc4 --- /dev/null +++ b/nano-2.2.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8e8f02a76d76eacac889ed2c63d5d95751f5f6daa55c28fa90f1e9428adadb3 +size 992006 diff --git a/nano-2.2.5.tar.bz2 b/nano-2.2.5.tar.bz2 deleted file mode 100644 index 480d221..0000000 --- a/nano-2.2.5.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c8a81b0ae733e223fd319a58aa69c02b0b51def17331680d7b52b528dd338be -size 1050654 diff --git a/nano-no-build-date.patch b/nano-no-build-date.patch deleted file mode 100644 index 61219a7..0000000 --- a/nano-no-build-date.patch +++ /dev/null @@ -1,14 +0,0 @@ -Index: src/nano.c -=================================================================== ---- src/nano.c.orig 2010-04-14 01:07:06.000000000 -0400 -+++ src/nano.c 2010-08-30 23:06:00.830692326 -0400 -@@ -935,8 +935,7 @@ void usage(void) - * it was compiled with. */ - void version(void) - { -- printf(_(" GNU nano version %s (compiled %s, %s)\n"), VERSION, -- __TIME__, __DATE__); -+ printf(_(" GNU nano version %s\n"), VERSION); - printf(" (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,\n"); - printf(" 2008, 2009 Free Software Foundation, Inc.\n"); - printf( diff --git a/nano.changes b/nano.changes index 984807e..5db43c6 100644 --- a/nano.changes +++ b/nano.changes @@ -1,30 +1,3 @@ -------------------------------------------------------------------- -Tue Aug 31 03:24:22 UTC 2010 - cristian.rodriguez@opensuse.org - -- Update to version 2.2.5 - * This release includes slightly less restrictive checkng - when writing files in strange environments - * Also included are some syntax highlighting updated -- Do not provide build dates in binaries - -------------------------------------------------------------------- -Thu Apr 15 22:19:02 UTC 2010 - pascal.bleser@opensuse.org - -- update to 2.2.4: - * security fixes due to an assessment of nano's vulnerability to - symlink attacks on open files; the CVEs fixed with this release - are CVE-2010-1160 and CVE-2010-1161 - * fixes for various crash modes when using the spell checker on - new files in multibuffer mode - * fix for the 'file was modified' message when saving to a new - filename - * fixes to page up/down due to the soft wrapping code - * new syntax higlighting definition for cmake-related files - -- changes from 2.2.3: - * fix for paging up/down with smooth scrolling causing the cursor - position not being preserved due to a bug in 2.2.2 - ------------------------------------------------------------------- Sun Jan 24 14:52:35 UTC 2010 - bitshuffler@opensuse.org diff --git a/nano.spec b/nano.spec index 7b5bb87..e3546a9 100644 --- a/nano.spec +++ b/nano.spec @@ -1,5 +1,5 @@ # -# spec file for package nano (Version 2.2.4) +# spec file for package nano (Version 2.2.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -18,28 +18,26 @@ # norootforbuild %define nano_extraver %{nil} - + Name: nano BuildRequires: ncurses-devel Url: http://www.nano-editor.org/ License: GPLv3+ Group: Productivity/Editors/Other +AutoReqProv: on Summary: Pico Editor Clone with Enhancements -Version: 2.2.5 +Version: 2.2.2 Release: 1 -# http://www.nano-editor.org/dist/v2.2/nano-%{version}%{nano_extraver}.tar.gz Source: %{name}-%{version}%{nano_extraver}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires(post): %install_info_prereq -Requires(postun): %install_info_prereq -Patch: nano-no-build-date.patch +PreReq: %install_info_prereq + %description GNU nano is a small and friendly text editor. It aims to emulate the Pico text editor while also offering a few enhancements. - Authors: -------- Chris Allegretta @@ -50,41 +48,39 @@ Authors: Rocco Corsi David Benbennick + %lang_package %prep -%setup -q -n "%{name}-%{version}%{nano_extraver}" -%patch +%setup -q -n %{name}-%{version}%{nano_extraver} + %build %configure --disable-rpath --enable-utf8 %__make %{?_smp_mflags} %install -%__make install DESTDIR="%{buildroot}" +%__make install DESTDIR=$RPM_BUILD_ROOT %find_lang %{name} --with-man --all-name %check %__make check %clean -%{?buildroot:%__rm -rf "%{buildroot}"} +%__rm -rf $RPM_BUILD_ROOT %post -%install_info --info-dir=%_infodir %_infodir/%name.info%{ext_info} +%install_info --info-dir=%_infodir %_infodir/%name.info.gz %postun -%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-, root, root) %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO UPGRADE %dir %{_mandir}/fr -%{_bindir}/nano -%{_bindir}/rnano +%{_mandir}/man?/*.* +%{_bindir}/* +%{_infodir}/*.gz %{_datadir}/nano -%doc %{_infodir}/nano.info%{ext_info} -%doc %{_mandir}/man1/nano.1%{ext_man} -%doc %{_mandir}/man1/rnano.1%{ext_man} -%doc %{_mandir}/man5/nanorc.5%{ext_man} %files lang -f %{name}.lang