[ngspice] 33/61: Add Break and Replaces on tclspice-dev * Make tclspice examples executable

Andreas Tille tille at debian.org
Tue Dec 12 14:08:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository ngspice.

commit 0263286b4504a7a8100ec8172d297022d1f501d0
Author: Gudjon I. Gudjonsson <gudjon at gudjon.org>
Date:   Thu May 17 06:51:59 2012 +0000

    Add Break and Replaces on tclspice-dev
    * Make tclspice examples executable
---
 debian/changelog                         |  4 ++-
 debian/control                           |  2 ++
 debian/patches/02_fix_tcl_examples.patch | 45 +++++++++++++++++++++++---------
 debian/rules                             |  6 +++--
 4 files changed, 42 insertions(+), 15 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dd075de..5894479 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,7 +17,9 @@ ngspice (24-1) UNRELEASED; urgency=low
   * Make tcl examples executable
   * Add src/xspice/examples to ngspice examples
   * Remove tclspice-dev package and move content to tclspice
-  * Started making copyright file machine readable, not finished XXXXXXX
+    Add Break and Replaces on tclspice-dev
+  * Started making copyright file machine readable, not finished XXXXXXX 
+  * Make tclspice examples executable
 
  -- Gudjon I. Gudjonsson <gudjon at gudjon.org>  Wed, 16 May 2012 05:48:17 +0200
 
diff --git a/debian/control b/debian/control
index 65643c0..2076c4d 100644
--- a/debian/control
+++ b/debian/control
@@ -29,6 +29,8 @@ Description: Spice circuit simulator
 Package: tclspice
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ngspice, blt, tcl8.4, tk8.4
+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
diff --git a/debian/patches/02_fix_tcl_examples.patch b/debian/patches/02_fix_tcl_examples.patch
index 4674b74..d08a656 100644
--- a/debian/patches/02_fix_tcl_examples.patch
+++ b/debian/patches/02_fix_tcl_examples.patch
@@ -1,7 +1,9 @@
 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
+Index: ngspice-24/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl-testbench1/tcl-testbench1.tcl	2012-05-17 08:25:23.484220306 +0200
 @@ -1,11 +1,11 @@
  #!/bin/sh
  # WishFix \
@@ -16,8 +18,10 @@ Change search path of libspice.so to /usr/lib/tcltk/
  
  # 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
+Index: ngspice-24/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl-testbench2/tcl-testbench2.tcl	2012-05-17 08:25:23.484220306 +0200
 @@ -1,10 +1,10 @@
  #!/bin/sh
  # WishFix \
@@ -31,8 +35,10 @@ Change search path of libspice.so to /usr/lib/tcltk/
  namespace import blt::*
  
  wm title . "Vector Test script"
---- a/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
-+++ b/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
+Index: ngspice-24/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl-testbench3/tcl-testbench3.tcl	2012-05-17 08:25:23.484220306 +0200
 @@ -1,10 +1,10 @@
  #!/bin/sh
  # WishFix \
@@ -46,16 +52,20 @@ Change search path of libspice.so to /usr/lib/tcltk/
  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
+Index: ngspice-24/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl-testbench4/tcl-testbench4.tcl	2012-05-17 08:25:23.484220306 +0200
 @@ -1,4 +1,4 @@
  #!/bin/sh
  # WishFix \
 -	exec wish vspicechart.tcl example.cir
 +	exec wish8.4 vspicechart.tcl example.cir
  ###
---- a/examples/tclspice/tcl-testbench4/vspicechart.tcl
-+++ b/examples/tclspice/tcl-testbench4/vspicechart.tcl
+Index: ngspice-24/examples/tclspice/tcl-testbench4/vspicechart.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl-testbench4/vspicechart.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl-testbench4/vspicechart.tcl	2012-05-17 08:27:46.853892007 +0200
 @@ -7,7 +7,7 @@
  
  
@@ -65,8 +75,19 @@ Change search path of libspice.so to /usr/lib/tcltk/
  
  source selectfromlist.tcl
  source bltGraph.tcl
---- a/examples/tclspice/tcl/test_vectoblt.tcl
-+++ b/examples/tclspice/tcl/test_vectoblt.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
+Index: ngspice-24/examples/tclspice/tcl/test_vectoblt.tcl
+===================================================================
+--- ngspice-24.orig/examples/tclspice/tcl/test_vectoblt.tcl	2012-05-17 08:25:17.629265705 +0200
++++ ngspice-24/examples/tclspice/tcl/test_vectoblt.tcl	2012-05-17 08:25:23.488222327 +0200
 @@ -1,10 +1,10 @@
  #!/bin/sh
  # WishFix \
diff --git a/debian/rules b/debian/rules
index 964ea45..b06f448 100755
--- a/debian/rules
+++ b/debian/rules
@@ -116,7 +116,9 @@ endif
 		$(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/examples/*/*.tcl
+	chmod a+x $(CURDIR)/build/tclspice/examples/tclspice/tcl-testbench*/tcl-testbench*.tcl \
+		$(CURDIR)/build/tclspice/examples/tclspice/tcl/test_vectoblt.tcl
+	chmod a+x $(CURDIR)/build/tclspice/examples/tclspice/*/*.tcl
 	mkdir -p build/ngspice/examples/xspice1/
 	cp -a src/xspice/examples/* build/ngspice/examples/xspice1/
 	find build/ngspice/examples/xspice1/ -type f -exec chmod a-x {} \;
@@ -168,7 +170,7 @@ get-orig-source:
 	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 -f ngspice-$$VER/config.guess ;\
 	tar czf ngspice_$$VER.orig.tar.gz ngspice-$$VER; \
 	rm -f ngspice-$$VER.tar.gz; \
 	rm -rf ngspice-$$VER; \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ngspice.git



More information about the debian-science-commits mailing list