debian/0000775000000000000000000000000012323566347007203 5ustar debian/tclspice.dirs0000664000000000000000000000006611745535471011677 0ustar usr/lib/tcltk/ngspice usr/share/doc/tclspice/examples debian/ngspice-doc.dirs0000664000000000000000000000011211755403136012245 0ustar usr/share/doc/ngspice-doc/html usr/share/doc/ngspice-doc/examples/xspice1 debian/copyright0000664000000000000000000003450311767305407011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://ngspice.sourceforge.net Files: doc/* Copyright: 1996 The Regents of the University of California License: SPICEDOC Files: manual/* Copyright: 2010, Paolo Nenzi, Holger Vogt License: SPICEDOC Files: src/* Copyright: Alan Gillespie Al Davis AMAKAWA Shuhei Andrew Tuckey 1989 Anthony E. Parker Antony Wilson 2000 Arno Peters Beorn Johnson Cecil Aswell Charles D.H. Williams Chris Inbody Daniele Foci David A. Gates 1989 David J. Skellern Dietmar Warning Emmanuel Rouat 1984-2006 Free Software Foundation, Inc. Gary W. Ng 2002 Georg Post 1991 Georgia Tech Research Corporation Giles C. Billingsley Glao S. Dezai Gordon M. Jacobs 2003 STARC (Hiroshima University STARC IGFET Model) Hitoshi Tanaka 2008 Holger Vogt Hong June Park Jaijeet S. Roychowdhury Jean-Marc Routure Jeffrey M. Hsu JianHui Huang Jon Engelbert 1993 K. Lee Kanwar Jit Singh Kartikeya Mayaram Kenneth H. Keller 1985-1990 Kenneth S. Kundert 1993 M. Shur Manfred Metzger Mansun Chan 1994-1996 Macquarie University, Sydney Australia Mathew Lew Michael Widlok Min-Chie Jeng 2003-2008 Multigig Ltd Noah Friedman 2003-2009 Paolo Nenzi 1990-2006 Regents of the University of California Richard D. McRoberts Robert Lindsell Serban-Mihai Popescu S. Hwang Stefan Jones Steven Borley Steve Tell Stuart Brorson 1993 T. Ytterdal 1993 T. A. Fjeldly Takayasu Sakurai 1985 Thomas L. Quarles 2000 owned by the United Kingdom Secretary of State for Defence 1990 University of California, Berkeley Vera Albrecht Wayne A. Christopher Weidong Liu Wolfgang Muees License: MIT_MODERN Files: src/spicelib/devices/adms/admst/* Copyright: 2011 Noovela - Author Laurent Lemaitre License: GPL-2+ Files: src/spicelib/devices/adms/admst/prengspice.xml src/spicelib/devices/adms/admst/ngspice.xml Copyright: 2011 Noovela - Author Laurent Lemaitre License: NOOVELA This code IS to be used for non-commercial usage ONLY. Note: publishing technical papers with the affiliation of a commercial company which results are produced by the tool are typical commercial usage of the tool. Commercial usage are subject to special fees. Contact: r29173@noovela.com or www.noovela.com Files: src/spicelib/devices/adms/psp102/* Copyright: 2007, All Rights Reserved, NXP Semiconductors License: None No license found, only copyright Files: src/spicelib/devices/adms/mextram/* Copyright: 2006 Delft University of Technology License: ECL-1.0 Files: src/ciderlib/* Copyright: 1991 Regents of the University of California License: CIDER_LICENSE Files: src/frontend/numparam/* Copyright: 2002 Georg Post License: LGPL-2+ Files: src/maths/sparse/* Copyright: 1985-1990 Kenneth S. Kundert and the University of California License: MIT_SPARSE Files: src/xspice/* Copyright: 1991 Georgia Tech Research Corporation Atlanta, Georgia 30332 License: XSPICE_LICENSE Files: src/tclspice.c Copyright: 2003-2008 Multigig Ltd License: LGPL-2 Files: debian/* Copyright: 2008-2012 Gudjon I. Gudjonsson License: GPL-2 License: SPICEDOC Copyright 1996 The Regents of the University of California. . Permission to use, copy, modify, and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice, this paragraph and the following thdree paragraphs appear in all copies. . This software program and documentation are copyrighted by The Regents of the University of California. The software program and documentation are supplied "as is", without any accompanying services from The Regents. The Regents does not warrant that the operation of the program will be uninterrupted or error-free. The end-user understands that the program was developed for research purposes and is advised not to rely exclusively on the program for any reason. . IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. License: XSPICE_LICENSE THE SOFTWARE PROGRAMS BELOW ARE IN THE PUBLIC DOMAIN AND ARE PROVIDED FREE OF ANY CHARGE. THE GEORGIA TECH RESEARCH CORPORATION, THE GEORGIA INSTITUTE OF TECHNOLOGY, AND/OR OTHER PARTIES PROVIDE THIS SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH THE USER. SHOULD THE PROGRAM PROVE DEFECTIVE, THE USER ASSUMES THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IN NO EVENT WILL THE GEORGIA TECH RESEARCH CORPORATION, THE GEORGIA INSTITUTE OF TECHNOLOGY, AND/OR OTHER PARTIES PROVIDING THE PROGRAMS BELOW BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS). License: MIT_SPARSE Permission to use, copy, modify, and distribute this software and ts documentation for any purpose and without fee is hereby granted, provided that the copyright notices appear in all copies and supporting documentation and that the authors and the University of California are properly credited. The authors and the University of California make no representations as to the suitability of this software for any purpose. It is provided `as is', without express or implied warranty. License: MIT_MODERN Copyright © 1985-1991 The Regents of the University of California. All rights reserved. . Permission is hereby granted, without written agreement and without license or royalty fees, to use, copy, modify, and distribute this software and its documentation for any purpose, provided that the above copyright notice and the following two paragraphs appear in all copies of this software. . IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. . THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. License: CIDER_LICENSE RESEARCH SOFTWARE AGREEMENT . This file specifies the terms under which the software and documentation provided with this distribution are provided. . Software is distributed as is, completely without warranty or service support. The University of California and its employ- ees are not liable for the condition or performance of the software. . The University does not warrant that it owns the copyright or other proprietary rights to all software and documentation provided under this agreement, notwithstanding any copyright notice, and shall not be liable for any infringement of copyright or proprietary rights brought by third parties against the reci- pient of the software and documentation provided under this agreement. . THE UNIVERSITY OF CALIFORNIA HEREBY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE UNIVERSITY IS NOT LIABLE FOR ANY DAMAGES INCURRED BY THE RECIPIENT IN USE OF THE SOFTWARE AND DOCUMENTATION, INCLUDING DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES. . The University of California grants the recipient the right to modify, copy, and redistribute the software and documentation, both within the recipient's organization and externally, subject to the following restrictions: . (a) The recipient agrees not to charge for the University of California code itself. The recipient may, however, charge for additions, extensions, or support. . (b) In any product based on the software, the recipient agrees to acknowledge the research group that developed the software. This acknowledgement shall appear in the product documentation. . © The recipient agrees to obey all U.S. Government restric- tions governing redistribution or export of the software and documentation. License: ECL-1.0 Educational Community License version 1.0 . This Original Work, including software, source code, documents, or other related items, is being provided by the copyright holder(s) subject to the terms of the Educational Community License. By obtaining, using and/or copying this Original Work, you agree that you have read, understand, and will comply with the following terms and conditions of the Educational Community License: . Permission to use, copy, modify, merge, publish, distribute, and sublicense this Original Work and its documentation, with or without modification, for any purpose, and without fee or royalty to the copyright holder(s) is hereby granted, provided that you include the following on ALL copies of the Original Work or portions thereof, including modifications or derivatives, that you make: . The full text of the Educational Community License in a location viewable to users of the redistributed or derivative work. . Any pre-existing intellectual property disclaimers, notices, or terms and conditions. . Notice of any changes or modifications to the Original Work, including the date the changes were made. . Any modifications of the Original Work must be distributed in such a manner as to avoid any confusion with the Original Work of the copyright holders. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. . The name and trademarks of copyright holder(s) may NOT be used in advertising or publicity pertaining to the Original or Derivative Works without specific, written prior permission. Title to copyright in the Original Work and any associated documentation will at all times remain with the copyright holders. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 or any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: LGPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation version 2. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. License: LGPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation version 2 or any later version. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2'. debian/source/0000775000000000000000000000000011745535471010504 5ustar debian/source/format0000664000000000000000000000001411745535471011712 0ustar 3.0 (quilt) debian/ngspice.manpages0000664000000000000000000000012011767305407012340 0ustar debian/manpages/cmpp.1 debian/manpages/ngmakeidx.1 debian/manpages/ngproc2mod.1 debian/changelog0000664000000000000000000001372012323566347011060 0ustar ngspice (24-1.1ubuntu2) trusty; urgency=medium * debian/patches/ppc64el-support.patch: Patch configure and libtool. -- Adam Conrad Wed, 16 Apr 2014 21:48:11 +0100 ngspice (24-1.1ubuntu1) trusty; urgency=medium * debian/{control,rules}: Change build-deps to use default tcl/tk. * debian/patches/tcl_interp-result.patch: Port tcl_interp changes. -- Adam Conrad Wed, 16 Apr 2014 19:30:03 +0100 ngspice (24-1.1) unstable; urgency=low * Non-maintainer upload. * Link to libBLT explicitly because otherwise libspice.so can't be loaded into wish with undefined symbol Blt_GetVector. * Replace obsolete dependencies on Tcl/Tk 8.4 by Tcl/Tk 8.5 (closes: #737279). -- Sergei Golovan Fri, 14 Feb 2014 09:43:18 +0400 ngspice (24-1) unstable; urgency=low * New upstream release * Bump standards version to 3.9.3 * Move /usr/lib/spice to /usr/lib/ngspice and /usr/lib/tcltk to /usr/lib/tcltk/ngspice reflecting changes in upstream * Move install of tclspice prior to ngspice, both will install spinit but the one from ngspice is the correct. * Add tclspice binary dependency on ngspice * Remove patch 02_fix_spelling.patch. Fixed in upstream * Refreshed patch 01_fix_manpages * Create patch 02_fix_tcl_examples * Exclude .tcl and .cir files in examples from compression * Change configure parameters * Change readline dependency to libedit-dev * Make tcl examples executable * Add src/xspice/examples to ngspice examples * Remove tclspice-dev package and move content to tclspice Add Break and Replaces on tclspice-dev * Started making copyright file machine readable * Make tclspice examples executable * Add manpage for cmpp, ngmakeidx and ngproc2mod * Remove examples/TransImpedanceAmp and exampless/tclspice\tcl-testbench3 because of incompatiple licenses * Add install-indep/arch stansas to rules file * Add dependency on texlive-generic-recommended * Add Build-Depends-Indep to control file -- Gudjon I. Gudjonsson Mon, 04 Jun 2012 22:34:18 +0000 ngspice (23-1) unstable; urgency=low * New upstream release * Change standards version to 3.9.2 * Change debhelper dependency to 8 * Add a line to rules to remove dependency_libs field from tclspice-dev * Remove override files * Create build-arch and build-indep targets * Add patch 02_fix_spelling * Change texlive dependencies to texlive, texlive-latex-extra, texlive-lang-greek -- Gudjon I. Gudjonsson Sun, 19 Jun 2011 04:44:19 +0200 ngspice (22-1) unstable; urgency=low * New upstream release * Source package renamed to ngspice * Add patches 01_fix_manpages 02_fix_spelling * Change/fix get-orig-source target * Add overrides files * Made the extended description of tclspice a bit longer * Fix watch file, look for ngspice instead of ng-spice-rework -- Gudjon I. Gudjonsson Mon, 21 Mar 2011 13:58:58 +0100 ng-spice-rework (21-2) UNRELEASED; urgency=low * Bump standards version to 3.9.1 * Remove unneeded section fields in control file * Fix short description of tclspice-dev * Change (C) to © in copyright file -- Gudjon I. Gudjonsson Tue, 03 Aug 2010 22:59:00 +0200 ng-spice-rework (21-1) unstable; urgency=low * New upstream release * Bump standards version to 3.9.0 * Rewrite get-orig-source * Switch to dpkg-source 3.0 (quilt) format * Add build dependency on lyx, elyxer and texlive-full * Fix compilation of doc in rules file * Add build dependency on imagemagick * Remove machine generated file src/frontend/parse-bison.c in clean target * Remove README.source * Remove all patches, fixed in upstream -- Gudjon I. Gudjonsson Sun, 25 Jul 2010 17:17:32 +0200 ng-spice-rework (20-1) unstable; urgency=low [ Gudjon I. Gudjonsson ] * New upstream release * Correct the Vcs fields [ Andreas Tille ] * Group maintenance in Debian Science team with permission of maintainer -- Andreas Tille Fri, 20 Nov 2009 11:15:21 +0100 ng-spice-rework (19-2) UNRELEASED; urgency=low * Add XS-Autobuild tag * Bump standards version to 3.8.3, no changes needed * Add README.source file * Add misc dependency on tclspice-dev * Add ngspice dependency on dpkg (>= 1.15.4) | install-info * Remove debian/tmp/usr/share/dir file -- Gudjon I. Gudjonsson Sun, 15 Nov 2009 00:00:02 +0100 ng-spice-rework (19-1) unstable; urgency=low * New upstream release * Remove all patches since they are already in upstream * Remove call to autogen and --enable experimental option when building * Fix watch file * Not removing getopt files, since they are BSD now * Change /usr/share/ng-spice-rework to /usr/share/ngspice * Remove quilt dependency * Fix get-orig-source target * Create patch 01_fix_bashism.diff to fix bashism (Closes: #530986) * Add quilt dependency -- Gudjon I. Gudjonsson Sun, 07 Jun 2009 10:11:42 +0200 ng-spice-rework (18-1) unstable; urgency=low * Initial release (Closes: #489768) [ أحمد المحمودي (Ahmed El-Mahmoudy) ] * debian/rules: add -XCOPYING to dh_installdocs for contrib. * debian/rules, debian/control: Use quilt. * Added 01_manpages-hyphen.diff patch which fixes the hyphens in ngnutmeg.1 & ngspice.1 manpages. * debian/rules: added get-orig-source target. * Added one target package: ngspice-doc. * debian/docs: Added ANALYSES, BUGS & DEVICES. [ Gudjon I. Gudjonsson ] * Add the documentation license to the copyright file * Package moved to non-free * Remove getopt*.{c,h} incompatible licenses, add empty files instead * Add patch 02_fix_getopt.diff to include system getopt.h * Add patch 03_fix_libdir.diff that fixes libdir in configure.in Thanks to Ahmed * Let rules run ./autogen.sh in build/tclspice * Add dependencies on automake -- Gudjon I. Gudjonsson Mon, 20 Apr 2009 19:51:11 +0200 debian/compat0000664000000000000000000000000211745535471010402 0ustar 7 debian/ngspice-doc.doc-base0000664000000000000000000000050211745535471012773 0ustar Document: ngspice Title: Debian ngspice Manual Author: Many authors Abstract: NgSpice, a spice circuit simulator. Section: Science/Electronics Format: postscript Files: /usr/share/doc/ngspice-doc/ngspice.ps.gz Format: HTML Index: /usr/share/doc/ngspice-doc/html/manual.html Files: /usr/share/doc/ngspice-doc/html/*.html debian/rules0000775000000000000000000001403312323547445010262 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else CROSS= --build $(DEB_BUILD_GNU_TYPE) endif config.status: config.status-stamp configure config.status-stamp: dh_testdir # Make build dir for ngspice mkdir -p build/ngspice cp -Rl `ls . |grep -v build|grep -v debian` build/ngspice cp -f /usr/share/misc/config.sub build/ngspice/config.sub cp -f /usr/share/misc/config.guess build/ngspice/config.guess #cp -f /usr/share/misc/config.sub build/ngspice/doc/config.sub #cp -f /usr/share/misc/config.guess build/ngspice/doc/config.guess cp -a manual build/ # Make build dir for tclspice mkdir -p build/tclspice cp -Rl `ls . |grep -v build|grep -v debian` build/tclspice cp -f /usr/share/misc/config.sub build/tclspice/config.sub cp -f /usr/share/misc/config.guess build/tclspice/config.guess # Configure ngspice (cd build/ngspice;\ ./configure $(CROSS) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --enable-maintainer-mode \ --with-editline=yes \ --enable-xspice \ --enable-cider \ --disable-debug \ CFLAGS="$(CFLAGS)") #LDFLAGS="-Wl,-z,defs") # Configure tclspice (cd build/tclspice;\ ./configure $(CROSS) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --libdir=/usr/lib/tcltk \ --enable-shared=yes \ --enable-maintainer-mode \ --with-editline=no \ --enable-xspice \ --enable-cider \ --disable-debug \ --disable-x \ --with-tcl=/usr/lib \ CFLAGS="$(CFLAGS)") touch $@ build: build-arch build-indep build-arch: config.status dh_testdir cd build/ngspice && $(MAKE) cd build/tclspice && $(MAKE) touch $@ build-indep: config.status # Build documentation dh_testdir cd build/manual && lyx --export ps manual.lyx cd build/manual && lyx --export html manual.lyx touch $@ clean: dh_testdir dh_testroot rm -f build-stamp rm -f config.status-stamp rm -rf build rm -f src/frontend/parse-bison.c rm -f src/frontend/parse-bison.h rm -f config.guess rm -f config.sub rm -f *-indep *-arch dh_clean install-arch: build-arch dh_testdir dh_testroot dh_prep dh_installdirs # Make ngspice and tclspice # tclspice must be installed prior to ngspice. Some files will be overwritten by ngspice # but the ngspice are the correct ones. cd build/tclspice && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install cd build/ngspice && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install # The code model files must be stripped ifneq ("nostrip","$(findstring nostrip,$(DEB_BUILD_OPTIONS))") strip $(CURDIR)/debian/tmp/usr/lib/ngspice/*.cm strip $(CURDIR)/debian/tmp/usr/lib/tcltk/ngspice/*.cm endif # Remove empty dirs: find $(CURDIR)/debian/tclspice -type d -empty -delete touch $@ install-indep: build-indep # Documentation for ngspice, the same as for tclspice mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html cp -a build/manual/manual.html.LyXconv/* \ $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/html install -o root -g root -m 644 build/manual/manual.ps \ $(CURDIR)/debian/tmp/usr/share/doc/ngspice-doc/ngspice.ps # Removing /usr/share/info directory rm -rf $(CURDIR)/debian/tmp/usr/share/info chmod a-x $(CURDIR)/build/tclspice/examples/tclspice/*/*.tcl chmod a+x $(CURDIR)/build/tclspice/examples/tclspice/tcl-testbench*/tcl-testbench*.tcl \ $(CURDIR)/build/tclspice/examples/tclspice/tcl/test_vectoblt.tcl mkdir -p build/ngspice/examples/xspice1/ cp -a src/xspice/examples/* build/ngspice/examples/xspice1/ find build/ngspice/examples/xspice1/ -name Makefile -exec rm -f {} \; find build/ngspice/examples/xspice1/ -type f -exec chmod a-x {} \; touch $@ # Build architecture-independent files here. binary-indep: install-indep dh_testdir -i dh_testroot -i dh_installdocs -i dh_install -i --sourcedir=debian/tmp dh_installman -i dh_installexamples -i -pngspice-doc build/ngspice/examples/* -Xtclspice dh_installchangelogs ChangeLog -i dh_compress -i --exclude=.tcl --exclude=.cir dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i # Build architecture-dependent files here. binary-arch: install-arch dh_testdir -a dh_testroot -a dh_installchangelogs ChangeLog -a dh_installdocs -pngspice contrib -XCOPYING -a dh_installdocs dh_installexamples -ptclspice build/tclspice/examples/tclspice/* -a dh_install --sourcedir=debian/tmp -a sed -i "/dependency_libs/ s/'.*'/''/" \ "$(CURDIR)/debian/tclspice/usr/lib/tcltk/libspice.la" dh_installman -a dh_link -a dh_strip -a dh_compress -a --exclude=.tcl --exclude=.cir dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch #DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | grep '^Version:' | sed -e 's/Version: \(.*\)-\(.*\)\.*/\1/') get-orig-source: VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-+~]+).*,\1,p'); \ set -e;\ wget -q http://sourceforge.net/projects/ngspice/files/ng-spice-rework/$$VER/ngspice-$$VER.tar.gz; \ tar xzf ngspice-$$VER.tar.gz --exclude=CVS --exclude=xgraph; \ rm -f ngspice-$$VER/config.sub ;\ rm -f ngspice-$$VER/config.guess ;\ rm -rf ngspice-$$VER/examples/TransImpedanceAmp ;\ rm -rf ngspice-$$VER/examples/tclspice\tcl-testbench3 ;\ tar czf ngspice_$$VER.orig.tar.gz ngspice-$$VER; \ rm -f ngspice-$$VER.tar.gz; \ rm -rf ngspice-$$VER; \ wget -q http://sourceforge.net/projects/ngspice/files/ng-spice-rework/$$VER/ngspice-doc-$$VER.tar.gz; \ tar xzf ngspice-doc-$$VER.tar.gz --exclude=\*.pdf; \ mv ngspice-doc-$$VER ngspice-$$VER; \ tar czf ngspice_$$VER.orig-manual.tar.gz ngspice-$$VER; \ rm -f ngspice-doc-$$VER.tar.gz; \ rm -rf ngspice-$$VER # find ${DIRNAME} -name .cvsignore -exec rm -f {} \; ;\ .PHONY: build clean binary-indep binary-arch binary install debian/ngspice.dirs0000664000000000000000000000011111745535471011510 0ustar usr/bin usr/lib/ngspice #usr/share/info usr/share/man usr/share/ngspice debian/ngspice.install0000664000000000000000000000012211745535471012217 0ustar usr/bin/* usr/lib/ngspice/* #usr/share/info/* usr/share/man/* usr/share/ngspice/* debian/dirs0000664000000000000000000000001011745535471010057 0ustar usr/bin debian/control0000664000000000000000000000427212323546117010604 0ustar Source: ngspice Section: non-free/electronics Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Science Team Uploaders: Gudjon I. Gudjonsson , Andreas Tille Build-Depends: debhelper (>= 8), automake, libtool, libxaw7-dev, flex, bison, gfortran, libedit-dev, libncurses5-dev, texinfo, tcl-dev, tcl, tk-dev, tk, blt-dev Build-Depends-Indep: lyx, elyxer, texlive, texlive-latex-extra, texlive-lang-greek, texlive-generic-recommended, imagemagick Standards-Version: 3.9.3 Homepage: http://ngspice.sourceforge.net Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/ng-spice-rework/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/ng-spice-rework/trunk DM-Upload-Allowed: yes XS-Autobuild: yes Package: ngspice Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dpkg (>= 1.15.4) | install-info Description: Spice circuit simulator NGspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. . NGspice is part of gEDA project, a full GPL'd suite of Electronic Design Automation tools. Package: tclspice Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ngspice, blt, tcl8.5, tk8.5 Replaces: tclspice-dev Breaks: tclspice-dev Description: NGspice library for Tcl TclSpice brings NGspice simulation engine into your Tcl-scripts. All spice directives are available as Tcl functions and it features some new commands that are useful for the integration into the Tcl environment. It includes XSpice. GUI is handled by Tk using BLT vectors. Package: ngspice-doc Section: non-free/doc Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Description: Documentation for the NGspice circuit simulator NGspice is a mixed-level/mixed-signal circuit simulator. Its code is based on three open source software packages: Spice3f5, Cider1b1 and Xspice. . NGspice is part of gEDA project, a full GPL'd suite of Electronic Design Automation tools. . This package contains the html, postscript and pdf documentation. debian/ngspice-doc.docs0000664000000000000000000000006211745535471012247 0ustar NEWS BUGS FAQ README README.adms ANALYSES DEVICES debian/manpages/0000775000000000000000000000000011767305407010775 5ustar debian/manpages/ngproc2mod.10000664000000000000000000000263511767305407013137 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH NGPROC2MOD 1 "2012-06-04" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME ngprog2mod \- program to process BSIM1 and BSIM2 files. .SH SYNOPSIS .B ngprog2mod .SH DESCRIPTION This manual page documents briefly the .B ngprog2mod command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBngprog2mod\fP is a program that changes a BSIM1 or BSIM2 process file to an ngspice model file. .SH OPTIONS The program doesn't support any command lines arguments. Just run the program and it will ask for input. .br .SH AUTHOR ngprog2mod was written at the University of California. .PP This manual page was written by Gudjon I. Gudjonsson , for the Debian project (and may be used by others). debian/manpages/ngmakeidx.10000664000000000000000000000264411767305407013034 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH ngmakeidx 1 "2012-06-02" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME ngmakeidx \- Changes .txt files to .idx .SH SYNOPSIS .B ngmakeidx .RI -o foo.idx foo.txt .br .SH DESCRIPTION This manual page documents briefly the .B ngmakeidx command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBngmakeidx\fP reformats some type of .txt files and writes them as .idx files. .SH OPTIONS This program does not support normal command line options. It must be used in the following way: ngmakeidx \-o foo.idx foo.txt .SH AUTHOR ngmakeidx was written at the University of California. .PP This manual page was written by Gudjon I. Gudjonsson , for the Debian project (and may be used by others). debian/manpages/cmpp.10000664000000000000000000000300511767305407012014 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH CMPP 1 "2012-06-02" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME cmpp \- Code Model PreProcessor .SH SYNOPSIS .B cmpp .RI [-ifs] [-mod []] [-lst] .br .SH DESCRIPTION This manual page documents briefly the .B cmpp command. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBcmpp\fP is a is a code model preprocessor for the XSpice program. .SH OPTIONS All options for this program start with two dashes (`-'). A summary of options is included below. .TP .B \-\-ifs Process Interface Specification File .TP .B \-\-mod filename Process Model Definition File .TP .B \-\-lst Process Pathname List Files .br .SH AUTHOR cmpp was written by Bill Kuhn and Steve Tynor. .PP This manual page was written by Gudjon I. Gudjonsson , for the Debian project (and may be used by others). debian/ngspice-doc.install0000664000000000000000000000003411755403136012755 0ustar usr/share/doc/ngspice-doc/* debian/tclspice.install0000664000000000000000000000006111755403136012370 0ustar usr/lib/tcltk/libspice.* usr/lib/tcltk/ngspice/* debian/watch0000664000000000000000000000011211745535471010227 0ustar version=3 http://sf.net/ngspice/ngspice-([0-9].*)\.tar\.gz debian uupdate debian/README.Debian0000664000000000000000000000145711745535471011254 0ustar ng-spice-rework for Debian -------------------------- This is the non-free version of ngspice. The cider and documentation licenses are considered to be non-free. getopt.c, getopt1.c and getopt.h are removed since their GPL license is incompatible with the rest. The rules file installs empty files in their place. Xgraph has been removed from ngspice but it depends on the Debian Xgraph package. Xgraph is removed because of licensing reasons but it is not enough to make ngspice DFSG compatible. The old documentation is included in this package but new is being written. Please take a look at the homepage: http://ngspice.sourceforge.net The directory /usr/share/doc/ngspice/contrib contains some scripts that might be useful. -- Gudjon I. Gudjonsson Sun, 14 Sep 2008 10:04:35 +0200 debian/docs0000664000000000000000000000004111745535471010052 0ustar BUGS FAQ NEWS README README.adms debian/patches/0000775000000000000000000000000012323566414010625 5ustar debian/patches/tcl_interp-result.patch0000664000000000000000000000140412323555060015317 0ustar Description: Port tcl_interp changes. Author: Adam Conrad --- ngspice-24.orig/src/tclspice.c +++ ngspice-24/src/tclspice.c @@ -1353,7 +1353,7 @@ static int delta TCL_CMDPROCARGS(clientD (ft_curckt->ci_ckt)->CKTdelta = atof(argv[1]); } /*Ok, as log as string less than 200 chars*/ - sprintf(interp->result,"%G",(ft_curckt->ci_ckt)->CKTdelta); + sprintf(Tcl_GetStringResult(interp),"%G",(ft_curckt->ci_ckt)->CKTdelta); return TCL_OK; } @@ -1378,7 +1378,7 @@ static int maxstep TCL_CMDPROCARGS(clien job->TRANmaxStep = atof(argv[1]); } /*Ok, as log as string less than 200 chars*/ - sprintf(interp->result,"%G",job->TRANmaxStep); + sprintf(Tcl_GetStringResult(interp),"%G",job->TRANmaxStep); return TCL_OK; } debian/patches/ppc64el-support.patch0000664000000000000000000000263112323566414014637 0ustar Description: Patch configure and libtool. Author: Adam Conrad --- ngspice-24.orig/aclocal.m4 +++ ngspice-24/aclocal.m4 @@ -1296,7 +1296,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1315,7 +1318,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) --- ngspice-24.orig/configure +++ ngspice-24/configure @@ -8011,7 +8011,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -8030,7 +8033,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux* x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) debian/patches/03_fix_blt_link.patch0000664000000000000000000000056512273117373014622 0ustar --- a/src/Makefile.in +++ b/src/Makefile.in @@ -83,7 +83,7 @@ @WINDOWS_TRUE@am__append_17 = -lpsapi @TCL_MODULE_TRUE@am__append_18 = tclspinit -@TCLWIN_TRUE@@TCL_MODULE_TRUE@am__append_19 = -lpsapi -ltcl84 -lBLT24 +@TCL_MODULE_TRUE@am__append_19 = -lBLT @TCL_MODULE_TRUE@@WINDOWS_TRUE@am__append_20 = \ @TCL_MODULE_TRUE@@WINDOWS_TRUE@ frontend/wdisp/libwindisp.la debian/patches/02_fix_tcl_examples.patch0000664000000000000000000000471412272650317015502 0ustar Change wish to wish8.4, other wish shells don't work. Change search path of libspice.so to /usr/lib/tcltk/ --- a/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl +++ b/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl @@ -1,11 +1,11 @@ #!/bin/sh # WishFix \ - exec wish -f "$0" ${1+"$@"} + exec wish8.5 -f "$0" ${1+"$@"} ### # old name: analyse-20070504-0.tcl package require BLT -load ../../../src/.libs/libspice.so +load /usr/lib/tcltk/libspice.so # Test of virtual capacitore circuit # Vary the control voltage and log the resulting capacitance --- a/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl +++ b/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl @@ -1,10 +1,10 @@ #!/bin/sh # WishFix \ - exec wish -f "$0" ${1+"$@"} + exec wish8.5 -f "$0" ${1+"$@"} ### package require BLT -load ../../../src/.libs/libspice.so +load /usr/lib/tcltk/libspice.so namespace import blt::* wm title . "Vector Test script" --- a/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl +++ b/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl @@ -1,10 +1,10 @@ #!/bin/sh # WishFix \ - exec wish -f "$0" ${1+"$@"} + exec wish8.5 -f "$0" ${1+"$@"} ### package require BLT -load ../../../src/.libs/libspice.so +load /usr/lib/tcltk/libspice.so source differentiate.tcl spice::codemodel ../../../src/xspice/icm/spice2poly/spice2poly.cm proc temperatures_calc {temp_inf temp_sup points} { --- a/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl +++ b/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl @@ -1,4 +1,4 @@ #!/bin/sh # WishFix \ - exec wish vspicechart.tcl example.cir + exec wish8.5 vspicechart.tcl example.cir ### --- a/examples/tclspice/tcl-testbench4/vspicechart.tcl +++ b/examples/tclspice/tcl-testbench4/vspicechart.tcl @@ -7,7 +7,7 @@ package require BLT -load "../../../src/.libs/libspice.so" +load "/usr/lib/tcltk/libspice.so" source selectfromlist.tcl source bltGraph.tcl @@ -215,7 +215,7 @@ .f2.chart grid configure -hide no -Blt_ZoomStack .f2.chart +#Blt_ZoomStack .f2.chart Blt_Crosshairs .f2.chart Blt_ClosestPoint .f2.chart Blt_PrintKey .f2.chart --- a/examples/tclspice/tcl/test_vectoblt.tcl +++ b/examples/tclspice/tcl/test_vectoblt.tcl @@ -1,10 +1,10 @@ #!/bin/sh # WishFix \ - exec wish -f "$0" ${1+"$@"} + exec wish8.5 -f "$0" ${1+"$@"} ### package require BLT -load ../../../src/.libs/libspice.so +load /usr/lib/tcltk/libspice.so spice::source "diffpair.cir" spice::op debian/patches/01_fix_manpages.patch0000664000000000000000000000602311745535471014616 0ustar Fix minor spelling errors in manpages --- a/man/man1/ngnutmeg.1 +++ b/man/man1/ngnutmeg.1 @@ -3,14 +3,14 @@ (woman-find-file buffer-file-name) -(let* ((man-args (concat "-l " buffer-file-name)) +(let* ((man-args (concat "\-l " buffer-file-name)) (bufname (concat "*Man " man-args "*"))) (when (get-buffer bufname) (kill-buffer bufname)) (man man-args)) (compile - (concat "groff -t -e -man -Tps " + (concat "groff \-t \-e \-man \-Tps " buffer-file-name " > /tmp/tmp.ps && gv /tmp/tmp.ps")) --- a/man/man1/ngspice.1 +++ b/man/man1/ngspice.1 @@ -3,13 +3,13 @@ (woman-find-file buffer-file-name) -(let* ((man-args (concat "-l " buffer-file-name)) +(let* ((man-args (concat "\-l " buffer-file-name)) (bufname (concat "*Man " man-args "*"))) (when (get-buffer bufname) (kill-buffer bufname)) (man man-args)) -(compile (concat "groff -t -e -man -Tps " +(compile (concat "groff \-t \-e \-man \-Tps " buffer-file-name " > /tmp/tmp.ps && gv /tmp/tmp.ps")) @@ -18,17 +18,17 @@ .ds = \-\^\- .ds ngspice \s-2NGSPICE\s+2 .SH "NAME" -ngspice \- circuit simulator derived from \*[spice]\&3f5 +ngspice \- circuit simulator derived from spice\&3f5 .SH "SYNOPSIS" \fBngspice\fP [\fIoptions\fP] [\fIfile\fP ...] .SH "DESCRIPTION" This man page is just a small overview. -The primary documentation of ngspice is in the \*[ngspice] User's Manual, +The primary documentation of ngspice is in the ngspice User's Manual, which is available as a pdf file. .SH "OPTIONS" .TP \fB\-n\fP or \fB\*=no\-spiceinit\fP -Don't try to source the file ".spiceinit" upon startup. Normally \*[ngspice] +Don't try to source the file ".spiceinit" upon startup. Normally ngspice tries to find the file in the current directory, and if it is not found then in the user's home directory. .TP @@ -39,9 +39,9 @@ The program is being run on a terminal with \fBmfb\fP name \fIterm\fP. .TP \fB\-b\fP or \fB\*=batch\fP -Run in batch mode. \*[ngspice] will read the standard input or the specified +Run in batch mode. ngspice will read the standard input or the specified input file and do the simulation. Note that if the standard input -is not a terminal, \*[ngspice] will default to batch mode, unless the +is not a terminal, ngspice will default to batch mode, unless the \-i flag is given. .TP \fB\-s\fP or \fB\*=server\fP @@ -79,7 +79,7 @@ ngspice through a pipe. Thus ngspice will assume that the pipe is a tty and allows one to run in interactive mode. .PP -Further arguments are taken to be \*[spice] input decks, which are read +Further arguments are taken to be spice input decks, which are read and saved. (If batch mode is requested then they are run immediately.) .SH "ENVIRONMENT" .TP @@ -129,7 +129,7 @@ .SH "SEE ALSO" sconvert(1), ngnutmeg(1), mfb(3), writedata(3), and .br -\*[ngspice] User's Manual at \fBhttp://ngspice.sourceforge.net/docs.html\fP +ngspice User's Manual at \fBhttp://ngspice.sourceforge.net/docs.html\fP .SH "BUGS" Please report bugs to the ngspice project via .br debian/patches/series0000664000000000000000000000016412323566362012045 0ustar 01_fix_manpages.patch 02_fix_tcl_examples.patch 03_fix_blt_link.patch tcl_interp-result.patch ppc64el-support.patch