[nawk/f13/master] Initial import (#638425)

mmckinst mmckinst at fedoraproject.org
Mon Oct 11 02:16:36 UTC 2010


commit 655077e3f8adedae7faef6ee51ff53710ab18399
Author: mmckinst <mmckinst at fedora13.fedroa.org>
Date:   Sun Oct 10 22:16:44 2010 -0400

    Initial import (#638425)

 .gitignore         |    1 +
 nawk-manpage.patch |   45 +++++++++++++++++++++++++++++++++++++++++
 nawk.spec          |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 4 files changed, 104 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c0bfd0d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/awk.tar.gz
diff --git a/nawk-manpage.patch b/nawk-manpage.patch
new file mode 100644
index 0000000..3ceb620
--- /dev/null
+++ b/nawk-manpage.patch
@@ -0,0 +1,45 @@
+diff -uNr ./nawk-20100523.orig/awk.1 nawk-20100523/awk.1
+--- ./nawk-20100523.orig/awk.1	2007-03-31 16:56:19.000000000 -0400
++++ nawk-20100523/awk.1	2010-09-20 21:49:16.840069318 -0400
+@@ -7,13 +7,11 @@
+ .fi
+ .ft 1
+ ..
+-awk
+-.TH AWK 1
+-.CT 1 files prog_other
++.TH NAWK 1
+ .SH NAME
+-awk \- pattern-directed scanning and processing language
++nawk \- pattern-directed scanning and processing language
+ .SH SYNOPSIS
+-.B awk
++.B nawk
+ [
+ .BI \-F
+ .I fs
+@@ -32,7 +30,7 @@
+ .I file ...
+ ]
+ .SH DESCRIPTION
+-.I Awk
++.I Nawk
+ scans each input
+ .I file
+ for lines that match any of a set of patterns specified literally in
+@@ -198,7 +196,6 @@
+ .BR atan2 
+ are built in.
+ Other built-in functions:
+-.TF length
+ .TP
+ .B length
+ the length of its argument
+@@ -407,7 +404,6 @@
+ do not combine with other patterns.
+ .PP
+ Variable names with special meanings:
+-.TF FILENAME
+ .TP
+ .B CONVFMT
+ conversion format used when converting numbers
diff --git a/nawk.spec b/nawk.spec
new file mode 100644
index 0000000..e34033b
--- /dev/null
+++ b/nawk.spec
@@ -0,0 +1,57 @@
+Name:		nawk
+Version:	20100523
+Release:	3%{?dist}
+Summary:	"The one true awk" descended from UNIX V7
+Group:		Applications/Text
+License:	MIT
+URL:		http://www.cs.princeton.edu/~bwk/btl.mirror/index.html
+# the author does not provide a way to download specifc versions
+Source0:	http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{pversion}-%{release}-root-%(%{__id_u} -n)
+# remove obsolete macros and change name from awk to nawk 
+Patch0:		nawk-manpage.patch
+BuildRequires:	bison
+
+%description
+This is the version of awk described in "The AWK Programming Language", by Al 
+Aho, Brian Kernighan, and Peter Weinberger. (Addison-Wesley, 1988, ISBN 
+0-201-07981-X).
+
+%prep
+%setup -q -c %{name}
+%patch0 -p1 -b .manpage
+
+%build
+make %{?_smp_mflags} CFLAGS="%{optflags}" YACC='bison -y' CC="%{__cc}"
+
+%install
+rm -rf %{buildroot}
+
+# the nawk binary is saved as a.out so we need to make our directory
+# and give the binary a good name
+mkdir -p %{buildroot}%{_bindir}
+cp a.out %{buildroot}%{_bindir}/nawk
+
+mkdir -p %{buildroot}%{_mandir}/man1/
+cp awk.1 %{buildroot}%{_mandir}/man1/nawk.1
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc FIXES README
+%{_bindir}/nawk
+%{_mandir}/man1/nawk.1.*
+
+%changelog
+* Thu Oct 7 2010 Mark McKinstry <mmckinst at nexcess.net> 20100523-3
+- define CC in the make
+
+* Tue Oct 5 2010 Mark McKinstry <mmckinst at nexcess.net> 20100523-2
+- don't compress the man page
+- remove un-needed optimization from the makefile
+- add comments explaining the patches
+
+* Tue Sep 28 2010 Mark McKinstry <mmckinst at nexcess.net> 20100523-1
+- initial build 
diff --git a/sources b/sources
index e69de29..a836387 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aca604d1b4c5429f089ecea59422f4dd  awk.tar.gz


More information about the scm-commits mailing list