r8511: initial import
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 14 Jan 2004 03:43:42 +0000 (03:43 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 14 Jan 2004 03:43:42 +0000 (03:43 +0000)
12 files changed:
LICENSE [new file with mode: 0644]
README [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/prerm [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/upload.sh [new file with mode: 0755]
package.lisp [new file with mode: 0644]
rlc.asd [new file with mode: 0644]

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..d1ed13b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+Copyright (c) 2004 Kevin Rosenberg
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND THERE ARE NEITHER EXPRESSED NOR
+IMPLIED WARRANTIES - THIS INCLUDES, BUT IS NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.IN
+NO WAY ARE THE AUTHORS LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE,
+DATA, OR PROFITS ; OR BUSINESS INTERRUPTION)
+
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..38fe39a
--- /dev/null
+++ b/README
@@ -0,0 +1,10 @@
+This library provides simulation for RLC (resistance, inductance,
+capacitance) circuits. Cases are provides for null (0 value)
+resistors, inductors, and capacitors.
+
+Rather than using iterative differential equation simulators, this
+programs uses analytic solutions derived using Laplace
+transformations.
+
+
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..fa1c80b
--- /dev/null
@@ -0,0 +1,5 @@
+cl-rlc (0.1-1) unstable; urgency=low
+
+  * Initial version
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Tue, 13 Jan 2004 20:18:21 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..3558a1d
--- /dev/null
@@ -0,0 +1,17 @@
+Source: cl-rlc
+Section: devel
+Priority: optional
+Maintainer: Kevin M. Rosenberg <kmr@debian.org>
+Build-Depends-Indep: debhelper (>> 4.0.0)
+Standards-Version: 3.6.1.0
+
+Package: cl-rlc
+Architecture: all
+Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-kmrcl, xgraph
+Description: Common Lisp RLC Circuit Simulator
+ cl-rlc provides a simulator for RLC (resistance, inductance, capacitance)
+ cicuits. It is written in Common Lisp and uses the xgraph package for
+ plotting.
+
+
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..8be682f
--- /dev/null
@@ -0,0 +1,30 @@
+Debian Copyright Section
+========================
+
+Upstream Source URL: http://files.b9.com/rlc/
+Upstream Authors: Kevin Rosenberg <kevin@rosenberg.net>
+Debian Maintainer:  Kevin M. Rosenberg <kmr@debian.org>
+
+Upstream Copyright Statement
+============================
+Copyright (c) 2004 Kevin Rosenberg
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED "AS IS" AND THERE ARE NEITHER EXPRESSED NOR
+IMPLIED WARRANTIES - THIS INCLUDES, BUT IS NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.IN
+NO WAY ARE THE AUTHORS LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE,
+DATA, OR PROFITS ; OR BUSINESS INTERRUPTION)
+
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..a72bfd2
--- /dev/null
@@ -0,0 +1,47 @@
+#! /bin/sh
+set -e
+
+LISP_PKG=rlc
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+       /usr/sbin/register-common-lisp-source ${LISP_PKG}
+
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/prerm b/debian/prerm
new file mode 100644 (file)
index 0000000..635c24f
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh
+set -e
+
+# package name according to lisp
+LISP_PKG=rlc
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+       /usr/sbin/unregister-common-lisp-source ${LISP_PKG}
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..f2c737c
--- /dev/null
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+
+pkg    := rlc
+debpkg  := cl-rlc
+
+
+clc-source     := usr/share/common-lisp/source
+clc-systems    := usr/share/common-lisp/systems
+clc-irc                := $(clc-source)/$(pkg)
+
+doc-dir                := usr/share/doc/$(debpkg)
+
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+       # Add here commands to compile the package.
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+       # Add here commands to clean up after the build process.
+       rm -f debian/cl-rlc.postinst.* debian/cl-rlc.prerm.*
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       # Add here commands to install the package into debian/rlc.
+       dh_installdirs $(clc-systems) $(clc-irc) $(doc-dir)
+       dh_install rlc.asd $(shell echo *.lisp) $(clc-irc)
+       dh_link $(clc-irc)/rlc.asd $(clc-systems)/rlc.asd
+
+# Build architecture-independent files here.
+binary-indep: build install
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+#      dh_installdebconf       
+       dh_installdocs README 
+       dh_installexamples
+#      dh_installmenu
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+#      dh_installcron
+#      dh_installman
+#      dh_installinfo
+#      dh_undocumented
+       dh_installchangelogs 
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_makeshlibs
+       dh_installdeb
+#      dh_perl
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
+
diff --git a/debian/upload.sh b/debian/upload.sh
new file mode 100755 (executable)
index 0000000..470cfd2
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+set -e
+
+dup rlc -Uftp.med-info.com -D/home/ftp/rlc -C"/home/kevin/bin/remove-old-versions rlc latest" -su $*
diff --git a/package.lisp b/package.lisp
new file mode 100644 (file)
index 0000000..039f46c
--- /dev/null
@@ -0,0 +1,15 @@
+;;;; -*- Mode: Lisp -*-
+;;;; Package definition for rlc
+;;;; $Id: $
+
+(in-package #:cl-user)
+(defpackage #:rlc 
+  (:use #:cl)
+  (:export
+   #:plot-series-rlc-current
+   #:series-rlc-current-formula
+   #:series-rlc-current-time
+   ))
+
+
+
diff --git a/rlc.asd b/rlc.asd
new file mode 100644 (file)
index 0000000..c128b20
--- /dev/null
+++ b/rlc.asd
@@ -0,0 +1,15 @@
+;;;; -*- Mode: Lisp -*-
+;;;; ASDF definition for rlc
+;;;; $Id: rlc.asd,v 1.1 2003/12/14 16:10:29 krosenberg Exp $
+
+(in-package #:cl-user)
+(defpackage #:rlc-system (:use #:cl #:asdf))
+(in-package #:rlc-system)
+
+(defsystem rlc
+    :depends-on (kmrcl)
+    :components ((:file "package")
+                (:file "main" :depends-on ("package"))))
+
+
+