diff --git a/nano-2.0.6.patch b/nano-2.0.6.patch new file mode 100644 index 0000000..85649c8 --- /dev/null +++ b/nano-2.0.6.patch @@ -0,0 +1,20 @@ +--- src/files.c ++++ src/files.c +@@ -1518,7 +1518,7 @@ + } + + if (f_open == NULL) { +- fd_source = open(realname, O_RDONLY | O_CREAT); ++ fd_source = open(realname, O_RDONLY); + + if (fd_source != -1) { + f_source = fdopen(fd_source, "rb"); +@@ -1637,7 +1637,7 @@ + int fd_source; + FILE *f_source = NULL; + +- fd_source = open(tempname, O_RDONLY | O_CREAT); ++ fd_source = open(tempname, O_RDONLY); + + if (fd_source != -1) { + f_source = fdopen(fd_source, "rb"); diff --git a/nano.changes b/nano.changes index c6969ff..f8dcfb0 100644 --- a/nano.changes +++ b/nano.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Dec 6 16:47:35 CET 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 3 13:30:59 CEST 2007 - cthiel@suse.de diff --git a/nano.spec b/nano.spec index 132648e..4190f0a 100644 --- a/nano.spec +++ b/nano.spec @@ -12,14 +12,15 @@ Name: nano BuildRequires: ncurses-devel -URL: http://www.nano-editor.org/ -License: GNU General Public License (GPL) +Url: http://www.nano-editor.org/ +License: GPL v2 or later Group: Productivity/Editors/Other -Autoreqprov: on +AutoReqProv: on Summary: Pico Editor Clone with Enhancements Version: 2.0.6 -Release: 1 +Release: 38 Source: %{name}-%{version}.tar.bz2 +Patch: %{name}-%{version}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -40,6 +41,7 @@ Authors: %prep %setup -q +%patch %build %configure --enable-all @@ -64,6 +66,10 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/nano %changelog +* 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 - update to version 2.0.6 * GNU nano 2.0.6 "that was quick" is released. This release fixes a