diff --git a/gawk-3.1.8.diff b/gawk-3.1.8.diff index a52c55d..e6252fd 100644 --- a/gawk-3.1.8.diff +++ b/gawk-3.1.8.diff @@ -1,6 +1,6 @@ --- doc/gawk.texi.orig +++ doc/gawk.texi -@@ -1406,7 +1406,7 @@ and +@@ -1549,7 +1549,7 @@ and Chuck Toporek. @cindex Berry, Karl @@ -9,16 +9,16 @@ @c @cindex Texinfo Robert J.@: Chassell provided much valuable advice on the use of Texinfo. -@@ -23713,7 +23713,7 @@ did the initial work to convert @command - GNU Automake and @code{gettext}. +@@ -27180,7 +27180,7 @@ did the initial work to convert @command + GNU Automake and GNU @code{gettext}. @item -@cindex Broder, Alan J.@: +@cindex Broder, Alan J. Alan J.@: Broder - provided the initial version of the @code{asort} function - as well as the code for the new optional third argument to the ---- builtin.c + provided the initial version of the @code{asort()} function + as well as the code for the optional third argument to the +--- builtin.c.orig +++ builtin.c @@ -29,7 +29,6 @@ #include @@ -28,22 +28,21 @@ #include "floatmagic.h" #ifndef CHAR_BIT -@@ -55,12 +54,6 @@ - #define SIZE_MAX ((size_t) -1) - #endif +@@ -60,11 +59,6 @@ + static size_t mbc_byte_count(const char *ptr, size_t numchars); + static size_t mbc_char_count(const char *ptr, size_t numbytes); --/* can declare these, since we always use the random shipped with gawk */ --extern char *initstate P((unsigned long seed, char *state, long n)); --extern char *setstate P((char *state)); --extern long random P((void)); --extern void srandom P((unsigned long seed)); -- - extern NODE **fields_arr; - extern int output_is_tty; +-/* Can declare these, since we always use the random shipped with gawk */ +-extern char *initstate(unsigned long seed, char *state, long n); +-extern char *setstate(char *state); +-extern long random(void); +-extern void srandom(unsigned long seed); ---- Makefile.am + extern NODE **args_array; + extern int max_args; +--- Makefile.am.orig +++ Makefile.am -@@ -103,11 +103,7 @@ +@@ -103,11 +103,7 @@ base_sources = \ msg.c \ node.c \ protos.h \ diff --git a/gawk-3.1.8.tar.bz2 b/gawk-3.1.8.tar.bz2 deleted file mode 100644 index bec5a1c..0000000 --- a/gawk-3.1.8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3900175021e85e92f879ab1f4432d6c94e3594d6dce676d968dd391d4cd3d0e2 -size 1984127 diff --git a/gawk-4.0.0.tar.bz2 b/gawk-4.0.0.tar.bz2 new file mode 100644 index 0000000..c4075ea --- /dev/null +++ b/gawk-4.0.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60ade732b46c6318acd183cfee843e00167e22d8f119889012f1c77d613e5a6b +size 2063647 diff --git a/gawk.changes b/gawk.changes index d0e9720..d9f3356 100644 --- a/gawk.changes +++ b/gawk.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Aug 10 03:58:24 UTC 2011 - crrodriguez@opensuse.org + +- Update to version 4.0.0 , important changes + * The special files /dev/pid, /dev/ppid, /dev/pgrpid and /dev/user are + now completely gone. Use PROCINFO instead. + * The POSIX 2008 behavior for `sub' and `gsub' are now the default. + * In POSIX mode, string comparisons use strcoll/wcscoll. + * Gawk now treats ranges of the form [d-h] as if they were in the C + + ------------------------------------------------------------------- Tue Apr 19 13:46:32 CEST 2011 - dmueller@suse.de diff --git a/gawk.spec b/gawk.spec index 822f9c2..6ce7c30 100644 --- a/gawk.spec +++ b/gawk.spec @@ -25,11 +25,11 @@ Provides: awk AutoReqProv: on BuildRequires: update-alternatives PreReq: %{install_info_prereq} update-alternatives -Version: 3.1.8 +Version: 4.0.0 Release: 1 Summary: GNU awk Source: gawk-%{version}.tar.bz2 -Patch: gawk-%{version}.diff +Patch: gawk-3.1.8.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -58,9 +58,7 @@ rm -f doc/*.info %build AUTOPOINT=true autoreconf --force --install -./configure CFLAGS="$RPM_OPT_FLAGS" \ - --prefix=/usr --libexecdir=%{_libdir} \ - --mandir=%{_mandir} --infodir=%{_infodir} +%configure --libexecdir=%{_libdir} %if %do_profiling make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS %cflags_profile_generate" make check @@ -112,6 +110,7 @@ fi %endif %doc AUTHORS COPYING FUTURES LIMITATIONS NEWS POSIX.STD PROBLEMS README /bin/gawk +%{_bindir}/dgawk %{_bindir}/gawk %{_bindir}/igawk %{_bindir}/pgawk