From 466635d06c04f1211b4fbbbbd880e88effe9018da9df49947509cd339b6f0c82 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 25 Feb 2008 16:30:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nano?expand=0&rev=9 --- nano.changes | 6 +++++ nano.spec | 65 ++++++++++++++++++++++++++++++---------------------- 2 files changed, 44 insertions(+), 27 deletions(-) diff --git a/nano.changes b/nano.changes index f35e5c1..840601f 100644 --- a/nano.changes +++ b/nano.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 24 05:57:43 CET 2008 - crrodriguez@suse.de + +- use find_lang macro +- add missing calls to install_info_* macros + ------------------------------------------------------------------- Fri Dec 21 12:02:41 CET 2007 - cthiel@suse.de diff --git a/nano.spec b/nano.spec index 261aeea..5525a22 100644 --- a/nano.spec +++ b/nano.spec @@ -1,7 +1,7 @@ # # spec file for package nano (Version 2.0.7) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -10,6 +10,7 @@ # norootforbuild + Name: nano BuildRequires: ncurses-devel Url: http://www.nano-editor.org/ @@ -18,10 +19,11 @@ Group: Productivity/Editors/Other AutoReqProv: on Summary: Pico Editor Clone with Enhancements Version: 2.0.7 -Release: 1 +Release: 14 Source: %{name}-%{version}.tar.bz2 Patch: %{name}-2.0.6.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: %install_info_prereq %description GNU nano is a small and friendly text editor. It aims to emulate the @@ -45,28 +47,37 @@ Authors: %build %configure --enable-all -make +%{__make} %{?jobs:-j%jobs} %install make install DESTDIR=$RPM_BUILD_ROOT +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%files +%post +%install_info --info-dir=%_infodir %_infodir/%name.info.gz + +%postun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz + +%files -f %{name}.lang %defattr(-, root, root) %doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO UPGRADE -%dir %{_mandir}/fr -%dir %{_mandir}/fr/man? +%{_mandir}/fr +%{_mandir}/fr/man? %{_mandir}/man?/*.* %{_mandir}/*/man?/*.* -%{_prefix}/bin/* -%{_prefix}/share/locale/*/*/* +%{_bindir}/* %{_infodir}/*.gz %{_datadir}/nano %changelog -* Fri Dec 21 2007 - cthiel@suse.de +* Sun Feb 24 2008 crrodriguez@suse.de +- use find_lang macro +- add missing calls to install_info_* macros +* Fri Dec 21 2007 cthiel@suse.de * update to version 2.0.7 * nano 2.0.7 keeps its balance. This release fixes several bugs, among others: a segfault and several cursor positioning problems when @@ -85,16 +96,16 @@ rm -rf $RPM_BUILD_ROOT GNU GPL version 3 or later, and its documentation is now dual-licensed under the GNU GPL version 3 or later and the GNU FDL version 1.2 or later. Have fun. -* Thu Dec 06 2007 - cthiel@suse.de +* Thu Dec 06 2007 cthiel@suse.de - added nano-2.0.6.patch to fix error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments -* Thu May 03 2007 - cthiel@suse.de +* Thu May 03 2007 cthiel@suse.de - update to version 2.0.6 * GNU nano 2.0.6 "that was quick" is released. This release fixes a potential segfault after justifying text marked from the bottom up. It also adds one more minor documentation update. Enjoy. -* Mon Apr 23 2007 - cthiel@suse.de +* Mon Apr 23 2007 cthiel@suse.de - update to version 2.0.5 * GNU nano 2.0.5 braces for impact. Among other things, this release fixes various problems (including a segfault) when trying to open or @@ -107,21 +118,21 @@ rm -rf $RPM_BUILD_ROOT and Shift-Cancel keys. It also improves several color syntaxes to highlight trailing whitespace, just as the Java syntax does, and adds yet more minor documentation updates. Have fun. -* Sat Apr 07 2007 - cthiel@suse.de +* Sat Apr 07 2007 cthiel@suse.de - update to version 2.0.4 * GNU nano 2.0.4 heralds the dawn. This release contains proper support for the Ctrl-[arrow key], Shift-[arrow key], and F13-F16 keys under Xfce's Terminal. It also adds still more minor documentation updates. Enjoy. -* Thu Mar 29 2007 - cthiel@suse.de +* Thu Mar 29 2007 cthiel@suse.de - fixed build by adding BuildRequires: ncurses-devel -* Mon Jan 29 2007 - cthiel@suse.de +* Mon Jan 29 2007 cthiel@suse.de - update to version 2.0.3 * GNU nano 2.0.3 flows toward its ending. This release contains several minor optimizations to make the executable a little smaller under some circumstances, some translation updates, improvements to the color syntax for Python, and still more minor documentation updates. -* Thu Dec 21 2006 - cthiel@suse.de +* Thu Dec 21 2006 cthiel@suse.de - update to version 2.0.2 * GNU nano 2.0.2 forges ahead. This release fixes a segfault when trying to save in a nonexistent directory; fixes handling of strings containing @@ -129,7 +140,7 @@ rm -rf $RPM_BUILD_ROOT Directory" prompts; fixes several minor memory leaks; fixes two more potential compilation warnings; adds a few translation updates; and adds a few more minor documentation updates. Enjoy. -* Mon Nov 20 2006 - cthiel@suse.de +* Mon Nov 20 2006 cthiel@suse.de - update to version 2.0.1 * GNU nano 2.0.1 emerges from its cocoon. This release contains several bugfixes: saving one file over another will now always warn about @@ -138,7 +149,7 @@ rm -rf $RPM_BUILD_ROOT highlighted properly when nano is built without regular expression support. It also adds several minor documentation updates. Have fun with it. -* Sun Nov 12 2006 - cthiel@suse.de +* Sun Nov 12 2006 cthiel@suse.de - update to version 2.0.0 * GNU nano 2.0.0 does its little dance. This release adds documentation updates and a few cosmetic tweaks. For those who haven't been following @@ -152,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT a ton of translation updates and new translations, as well as new color syntaxes. See the UPGRADE file for more information, and enjoy the new stable release. -* Mon Jun 26 2006 - cthiel@suse.de +* Mon Jun 26 2006 cthiel@suse.de - update to version 1.3.12 * This release contains the last new features that nano will have before 2.0: copying text into the cutbuffer without cutting it, indenting lines @@ -166,7 +177,7 @@ rm -rf $RPM_BUILD_ROOT the right place; double-column characters are now properly displayed when past the right edge of the screen; invalid multi-line color regexes are now ignored; and so on. -* Thu May 25 2006 - cthiel@suse.de +* Thu May 25 2006 cthiel@suse.de - update to version 1.3.11 * This release focuses mostly on bugfixes, which include better handling of the cursor at the statusbar prompt, support for certain combinations @@ -178,17 +189,17 @@ rm -rf $RPM_BUILD_ROOT as the ability to set the characters used as brackets when searching for matching brackets, and tab completion of directories at the "Go To Directory" prompt. -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Sat Dec 24 2005 - cthiel@suse.de +* Sat Dec 24 2005 cthiel@suse.de - update to version 1.3.10 -* Tue Oct 25 2005 - cthiel@suse.de +* Tue Oct 25 2005 cthiel@suse.de - update to version 1.3.9 -* Tue Sep 13 2005 - cthiel@suse.de +* Tue Sep 13 2005 cthiel@suse.de - specfile cleanup -* Fri Jul 01 2005 - cthiel@suse.de +* Fri Jul 01 2005 cthiel@suse.de - update to version 1.3.8 -* Wed Jun 29 2005 - cthiel@suse.de +* Wed Jun 29 2005 cthiel@suse.de - update to version 1.3.7 -* Mon Jun 06 2005 - cthiel@suse.de +* Mon Jun 06 2005 cthiel@suse.de - initial package (1.2.5)