[newlisp/f15] Initial Import (#724859).

ndowens ndowens at fedoraproject.org
Tue Jul 26 17:48:57 UTC 2011


commit 58889202532b143bc6782897484daf9bd740397f
Author: Nathan Owe <ndowens at revan.linux>
Date:   Tue Jul 26 12:48:37 2011 -0500

    Initial Import (#724859).

 .gitignore                                         |    1 +
 newlisp-0002-Allow-to-override-CFLAGS.patch        |   40 ++++++++++++
 ...isp-0003-Don-t-strip-the-resulting-binary.patch |   38 ++++++++++++
 newlisp.spec                                       |   63 ++++++++++++++++++++
 newlispdoc.1                                       |   51 ++++++++++++++++
 sources                                            |    1 +
 6 files changed, 194 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6736571 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/newlisp-10.3.2.tgz
diff --git a/newlisp-0002-Allow-to-override-CFLAGS.patch b/newlisp-0002-Allow-to-override-CFLAGS.patch
new file mode 100644
index 0000000..2cd17dc
--- /dev/null
+++ b/newlisp-0002-Allow-to-override-CFLAGS.patch
@@ -0,0 +1,40 @@
+From f1a1f39234076f15e243bdddf48ffc654037a6a5 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Sun, 24 Jul 2011 12:57:38 +0400
+Subject: [PATCH 2/3] Allow to override CFLAGS
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ makefile_linuxLP64_utf8 |    2 +-
+ makefile_linux_utf8     |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/makefile_linuxLP64_utf8 b/makefile_linuxLP64_utf8
+index abccae3..9458501 100644
+--- a/makefile_linuxLP64_utf8
++++ b/makefile_linuxLP64_utf8
+@@ -6,7 +6,7 @@
+ OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \
+ 	nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o
+ 
+-CFLAGS = -fPIC -m64 -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX
++CFLAGS ?= -fPIC -m64 -Wall -pedantic -Wno-uninitialized -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DNEWLISP64 -DLINUX
+ 
+ CC = gcc
+ 
+diff --git a/makefile_linux_utf8 b/makefile_linux_utf8
+index 21ec7bd..e05cdcc 100644
+--- a/makefile_linux_utf8
++++ b/makefile_linux_utf8
+@@ -6,7 +6,7 @@
+ OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \
+ 	nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o
+ 
+-CFLAGS = -m32 -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DLINUX
++CFLAGS ?= -m32 -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DLINUX
+ 
+ CC = gcc
+ 
+-- 
+1.7.6
+
diff --git a/newlisp-0003-Don-t-strip-the-resulting-binary.patch b/newlisp-0003-Don-t-strip-the-resulting-binary.patch
new file mode 100644
index 0000000..a0aa3ea
--- /dev/null
+++ b/newlisp-0003-Don-t-strip-the-resulting-binary.patch
@@ -0,0 +1,38 @@
+From 77cd198d691ee28e3efb097850120e74b3b403b4 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Sun, 24 Jul 2011 13:20:06 +0400
+Subject: [PATCH 3/3] Don't strip the resulting binary
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ makefile_linuxLP64_utf8 |    1 -
+ makefile_linux_utf8     |    1 -
+ 2 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/makefile_linuxLP64_utf8 b/makefile_linuxLP64_utf8
+index 9458501..6171efe 100644
+--- a/makefile_linuxLP64_utf8
++++ b/makefile_linuxLP64_utf8
+@@ -15,7 +15,6 @@ default: $(OBJS)
+ #	$(CC) $(OBJS) -m64 -g -lm -ldl -lreadline -ltermcap -o newlisp # slackware
+ #	$(CC) $(OBJS) -m64 -g -lm -ldl -lreadline -lncurses -o newlisp # other Linux Dist
+ #	$(CC) $(OBJS) -m64 -g -lm -ldl -o newlisp # without readline support
+-	strip newlisp
+ 
+ .c.o:
+ 	$(CC) $(CFLAGS) $<
+diff --git a/makefile_linux_utf8 b/makefile_linux_utf8
+index e05cdcc..7a30291 100644
+--- a/makefile_linux_utf8
++++ b/makefile_linux_utf8
+@@ -15,7 +15,6 @@ default: $(OBJS)
+ #	$(CC) $(OBJS) -m32 -g -lm -ldl -lreadline -ltermcap -o newlisp # slackware
+ #	$(CC) $(OBJS) -m32 -g -lm -ldl -lreadline -lncurses -o newlisp # other Linux Dist
+ #	$(CC) $(OBJS) -m32 -g -lm -ldl -o newlisp # without readline support
+-	strip newlisp
+ 
+ .c.o:
+ 	$(CC) $(CFLAGS) $<
+-- 
+1.7.6
+
diff --git a/newlisp.spec b/newlisp.spec
new file mode 100644
index 0000000..aa1db75
--- /dev/null
+++ b/newlisp.spec
@@ -0,0 +1,63 @@
+Name:           newlisp
+Version:        10.3.2
+Release:        3%{?dist}
+Summary:        Lisp-like general purpose scripting
+
+License:        GPLv3+
+URL:            http://www.newlisp.org
+Source0:        http://www.newlisp.org/downloads/%{name}-%{version}.tgz
+Source1:	http://www.newlisp.org/downloads/development/inprogress/newlispdoc.1
+Patch2:         newlisp-0002-Allow-to-override-CFLAGS.patch
+Patch3:         newlisp-0003-Don-t-strip-the-resulting-binary.patch
+BuildRequires:  readline-devel  
+       
+
+%description
+Lisp-like general purpose scripting language. %{name} is well suited for 
+applications in AI, web search. It also can be used for embedded systems
+applications.
+
+%prep
+%setup -q
+#Install fixed Man page
+install -Dm644 %{SOURCE1} doc/newlispdoc.1
+
+#Non-exec file has shebang
+sed -i 's|#!/usr/bin/newlisp||g' modules/json.lsp
+sed -i 's|#!/usr/bin/newlisp||g' util/syntax.cgi
+
+# Allow to override CFLAGS (Fedora-specific mostly)
+%patch2 -p1 -b .override_cflags
+# Don't strip the resulting binary (Fedora-specific)
+%patch3 -p1 -b .dont_strip
+
+
+%build
+%configure
+# -pedantic -Wno-strict-aliasing -Wno-long-long
+CFLAGS="%{optflags} -c -DREADLINE -DSUPPORT_UTF8 -DLINUX" make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make install_home HOME=%{buildroot}/usr/
+
+
+%files
+%doc %{_datadir}/doc/*
+%doc %{_datadir}/%{name}/init.lsp.example
+%{_bindir}/%{name}
+%{_bindir}/newlispdoc
+%{_mandir}/man1/*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/modules
+%{_datadir}/%{name}/util
+
+
+
+%changelog
+* Sun Jul 24 2011 Nathan Owe <ndowens04 at yahoo.com> 10.3.2-3
+- Updated License field to the correct license
+* Sun Jul 24 2011 Nathan Owe <ndowens04 at yahoo.com> 10.3.2-2
+- Added fixed Man page from SCM 
+* Thu Jul 21 2011 Nathan Owe <ndowens04 at yahoo.com> 10.3.2-1
+- Initial package
diff --git a/newlispdoc.1 b/newlispdoc.1
new file mode 100644
index 0000000..1b613df
--- /dev/null
+++ b/newlispdoc.1
@@ -0,0 +1,51 @@
+.TH newlispdoc 1 "July 2011" "version 3.1" "Commandline Parameters"
+.SH NAME
+.B newlispdoc
+\- generate documentation from newLISP source comments
+.SH SYNOPSIS
+.B newlispdoc 
+[\-s] [\-d] lisp\-file1 [lisp\-file2 ...]
+
+.B newlispdoc
+[\-s] [\-d] [\-url] urls-file
+.SH DESCRIPTION
+newlispdoc is a commandline utility written in newLISP to generate HTML documentation from comments written in newLISP source files. Consult /usr/share/doc/newlisp/newLISPdoc.html for a detailed description on how to write comments usable for newlispdoc. The newlispdoc command should be executed from inside the directory where the newLISP source files can be found. The generated documetation files will have .html added to the name of the source file. An index.html page is generated, which is listing for each file links to all the documented functions. If the current directory contains the file newlispdoc.css, it will be used for formatting HTML output. For a sample see util/newlispdoc.css in the source distribution.
+.SH OPTIONS
+.TP
+\-s
+this option causes newlispdoc to also generate a syntax highlighted HTML file of the source. A link to this file will be present in the HTML documentation of this file. The generated file will have the added extension .src.html.
+.TP
+\-d
+also generate a link to the raw unformatted sourcefile.
+.TP
+lisp\-file
+is a commented newLISP source file from which a documentation file will be generated.
+.TP
+\-url
+this option is used to retrieve newLISP source files for documentation from remote locations.
+.TP
+urls-file
+is a file containing urls of newLISP source files, one url per line.
+.SH EXAMPLES
+.TP
+Generate all documentation form files in the current directory.
+.B newlispdoc
+afile.lsp bfile.lsp
+.PP
+.TP
+Generate documentation and syntax highlighted HTML versions from all lisp files in the current directory and also supply a download link.
+.B newlispdoc
+\-s -d *.lsp
+.TP
+Retrieve source files for documentation from remote locations. Each file is specified on one line in urls.txt with its http:// address.
+.B newlispdoc
+\-s \-url urls.txt
+.SH EXIT STATUS
+newlispdoc returns a zero exit status for normal exit or writes a usage message if not enough paramneters are supplied.
+.SH AUTHOR
+Lutz Mueller <lutz at nuevatec.com>
+.SH SEE ALSO
+newlisp(1) \- newlisp man page
+
+http://www.newlisp.org/ \-  the newLISP home page
+
diff --git a/sources b/sources
index e69de29..05413a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+91aede51dc31fc1997d6c52adac3568a  newlisp-10.3.2.tgz


More information about the scm-commits mailing list