tags 834335 +patch
thanks

On Sun, Aug 14, 2016 at 05:21:12PM +0200, Carsten Schoenert wrote:
> while working on l10n translations on recent development versions of
> KiCad I need the libngspice library for getting the Spice simulation
> working.
> KiCad is also available in the Debian repository.
> 
> https://packages.qa.debian.org/k/kicad.html
> 
> The libngspice library will get built if the environment is configured with
> '--enable-ngshared'.
> See also http://ngspice.sourceforge.net/shared.html and
> http://ngspice.sourceforge.net/docs/ngspice-manual.pdf page 349.

The needed changes for the build and installation of the libngspice are
quite small. With the changes from the appended patches I could solve my
dependency problem for KiCad. The also needed header files for building
against ngspice are already shipped in
/usr/share/ngspice/include/ngspice.

I'v also made some additional changes to the helper files like adopting
the current situation for the copyright file. It's still pain to collect
the informations here as upstream isn't providing clear copyright and
license information in a easy to use form. Also it may be worth to split
the source package into the free and unfortunately non-free package so
the clear free binaries and development files could go into main. The
KiCad package would benefit from the needed libngspice library.

Regards
Carsten
>From e20e260c92d36e73d0997ba20c0dee053e6765d6 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoen...@t-online.de>
Date: Mon, 15 Aug 2016 18:37:39 +0200
Subject: [PATCH 1/4] debian/control: switch vcs-browser field to https

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 3c7ba0e..c3cd20e 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Build-Depends-Indep: lyx, elyxer, texlive, texlive-latex-extra, texlive-lang-gre
 Standards-Version: 3.9.5
 Homepage: http://ngspice.sourceforge.net
 Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/ng-spice-rework/trunk/
-Vcs-Browser: http://anonscm.debian.org/viewvc/debian-science/packages/ng-spice-rework/trunk/
+Vcs-Browser: https://anonscm.debian.org/viewvc/debian-science/packages/ng-spice-rework/trunk/
 XS-Autobuild: yes
 
 Package: ngspice
-- 
2.8.1

>From e59e584d75334da2ad174fa75d72fd8dc901a1f5 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoen...@t-online.de>
Date: Mon, 15 Aug 2016 18:38:51 +0200
Subject: [PATCH 2/4] debian/control: increase Standards-Version to 3.9.8

No further changes needed.
---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index c3cd20e..850491c 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Build-Depends: debhelper (>= 8), automake, libtool, libxaw7-dev, flex,
  texinfo, tcl8.6-dev, tcl8.6, tk8.6-dev, tk8.6, blt-dev
 Build-Depends-Indep: lyx, elyxer, texlive, texlive-latex-extra, texlive-lang-greek,
  texlive-generic-recommended, imagemagick
-Standards-Version: 3.9.5
+Standards-Version: 3.9.8
 Homepage: http://ngspice.sourceforge.net
 Vcs-Svn: svn://anonscm.debian.org/debian-science/packages/ng-spice-rework/trunk/
 Vcs-Browser: https://anonscm.debian.org/viewvc/debian-science/packages/ng-spice-rework/trunk/
-- 
2.8.1

>From 701957bb043138369c6450362802df41485298ac Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoen...@t-online.de>
Date: Tue, 16 Aug 2016 07:17:10 +0200
Subject: [PATCH 3/4] debian/copyright: update copyright and files information

---
 debian/copyright | 138 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 126 insertions(+), 12 deletions(-)

diff --git a/debian/copyright b/debian/copyright
index d388e37..d09003c 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,10 +1,39 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Source: http://ngspice.sourceforge.net
+Upstream-Name: ngspice
+Upstream-Contact: ngspice-de...@lists.sourceforge.net
+
+Files: *
+Copyright: various people
+License: LGPL-2 or GPL-2 or GPL-2+ or BSD-3
+
+Files: contrib/mslib/*
+  contrib/scripts/*
+Copyright: 2000 Michael Widlok <wid...@uci.agh.edu.pl>
+License: Michael_Widlok
+Comment: No classical FOSS license, notice the files
+ contrib/{mslib,scripts}/COPYING.
+
+Files: contrib/spiceprm/*
+Copyright: 1996 Andrew J. Borsa <a...@moose.mv.com>
+License: GPL-2
+
+Files: contrib/vbic/*
+Copyright: Colin McAndrew
+License: LGPL-2 or GPL-2 or GPL-2+ or BSD-3
 
 Files: doc/*
 Copyright: 1996 The Regents of the University of California
 License: SPICEDOC
 
+Files: m4/libtool.m4
+  m4/ltoptions.m4
+  m4/ltsugar.m4
+  m4/ltversion.m4
+  m4/lt~obsolete.m4
+Copyright: 1996-2011 Free Software Foundation, Inc.
+License: GPL-2+
+
 Files: manual/*
 Copyright: 2010, Paolo Nenzi, Holger Vogt
 License: SPICEDOC
@@ -82,20 +111,12 @@ 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: r29...@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
+License: NXP_EULA
+Comment: No detailed license found, only copyright. The NXP End User License
+ Agreement (EULA) is taken from the NXP website.
+ http://www.nxp.com/products/software-and-tools/models-and-test-data/compact-models-simkit/source-code-library:SOURCE-CODE-LIBRARY
 
 Files: src/spicelib/devices/adms/mextram/*
 Copyright: 2006 Delft University of Technology
@@ -125,6 +146,29 @@ Files: debian/*
 Copyright: 2008-2012 Gudjon I. Gudjonsson <gud...@gudjon.org>
 License: GPL-2
 
+License: BSD-3
+ 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.
+ 3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ 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) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
 License: SPICEDOC
  Copyright 1996 The Regents of the University of California.
  .
@@ -331,3 +375,73 @@ License: LGPL-2+
  License version 2 can be found in the file
  `/usr/share/common-licenses/LGPL-2'.
 
+License: Michael_Widlok
+ Parts are free for everyone who think that it might by useful for him. If
+ someone makes it better please e-mail me.
+
+License: NXP_EULA
+ Compact Model Acknowledgement and Copyright Notices
+ .
+ COPYRIGHTS OF MEXTRAM ARE WITH DELFT UNIVERSITY OF TECHNOLOGY AND NXP. SINCE
+ 2007 UNTIL TODAY MEXTRAM HAS BEEN DEVELOPED BY DELFT UNIVERSITY OF TECHNOLOGY.
+ UNTIL AND INCLUDING 2006 MEXTRAM HAS BEEN DEVELOPED BY NXP. SEE ALSO:
+ HTTP://MEXTRAM.EWI.TUDELFT.NL/PAGE_COPYRIGHT_DISCLAIMER.PHP
+ .
+ COPYRIGHTS OF PSP ARE WITH NXP®, DELFT UNIVERSITY OF TECHNOLOGY (SINCE 2012)
+ AND ARIZONA STATE UNIVERSITY (UNTIL AND INCLUDING 2011). SINCE 2012 UNTIL
+ TODAY PSP HAS BEEN CO-DEVELOPED BY NXP SEMICONDUCTORS AND DELFT UNIVERSITY OF
+ TECHNOLOGY. UNTIL AND INCLUDING 2011 PSP HAS BEEN CO-DEVELOPED BY NXP
+ SEMICONDUCTORS AND ARIZONA STATE UNIVERSITY. SEE ALSO:
+ HTTP://PSP.EWI.TUDELFT.NL/PAGE_COPYRIGHT_DISCLAIMER.PHP
+ .
+ COPYRIGHTS OF ALL OTHER MODELS IN THE SOFTWARE ARE WITH NXP.
+ .
+ SUBJECT TO THE ABOVE, THIS SOFTWARE IS THE PROPERTY OF NXP B.V., ALL RIGHTS
+ RESERVED.
+ .
+ UNDER NO CIRCUMSTANCES IS THIS SOFTWARE TO BE EXPOSED TO OR PLACED UNDER AN
+ OPEN SOURCE LICENSE OF ANY TYPE WITHOUT THE EXPRESSED WRITTEN PERMISSION OF
+ NXP B.V.
+ 1. OBJECT AND SCOPE OF THE AGREEMENT
+ .
+ Subject to the terms and conditions of this Agreement, NXP grants to you a
+ non-exclusive, worldwide, personal, non-transferable, royalty-free license
+ under NXP’s relevant intellectual property rights in the SOFTWARE, to: (a)
+ internally test, evaluate, use and make modifications of the source code
+ portions of the SOFTWARE, and to compile such source code portions and
+ modifications into object code form, for use with your products; (b) test,
+ evaluate, use and reproduce the above-mentioned object code as well as the
+ object code portions of the SOFTWARE, for use with your products; and (c)
+ incorporate the SOFTWARE and modifications, in object code form only, into
+ your products and to distribute such products.
+ 2. DISCLAIMER OF WARRANTIES:
+ .
+ YOU AGREE THAT NXP HAS MADE NO EXPRESS WARRANTIES TO YOU REGARDING THE
+ SOFTWARE AND THAT THE SOFTWARE IS BEING PROVIDED TO YOU "AS IS" WITHOUT
+ WARRANTY OF ANY KIND.
+ NXP DISCLAIMS ALL WARRANTIES WITH REGARD TO THE SOFTWARE, EXPRESS OR IMPLIED,
+ INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF FITNESS FOR A
+ PARTICULAR PURPOSE, MERCHANTABILITY, MERCHANTABLE QUALITY OR NONINFRINGEMENT
+ OF THIRD PARTY RIGHTS.
+ Some states or jurisdictions do not allow the exclusion of implied warranties
+ so the above limitations or parts of it may not apply to you.
+ 3. LIMITATION OF LIABILITY:
+ .
+ IN NO EVENT WILL NXP BE LIABLE TO YOU FOR ANY LOSS OF USE, INTERRUPTION OF
+ BUSINESS, OR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES OF ANY KIND (INCLUDING LOST PROFITS) REGARDLESS OF THE FORM OF ACTION
+ WHETHER IN CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT PRODUCT LIABILITY OR
+ OTHERWISE, EVEN IF ENDUSER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES.
+ Some states or jurisdictions do not allow the exclusion or limitation of
+ incidental or consequential damages, so the above limitation, exclusion or
+ parts of it may not apply to you.
+ 4. USAGE
+ .
+ UNLESS EXPRESSLY OTHERWISE STATED IN SECTION 1 OF THIS AGREEMENT, ANY USE AND
+ ANY FURTHER COPYING, MODIFICATION, REVERSE DEVELOPMENT, DECOMPILING,
+ REPRODUCTION OR REDISTRIBUTION OF THE SOFTWARE MADE AVAILABLE IN FORM OF THIS
+ SOFTWARE OR PARTS OF IT IS EXPRESSLY PROHIBITED. WE DO NOT WARRANT THAT THE
+ FUNCTIONS CONTAINED WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION WILL BE
+ UNINTERRUPTED OR ERROR FREE. THEY ARE NOT OPTIMISED IN TERMS OF SPEED OR SIZE.
+ THE ENTIRE RISK AS TO THE RESULTS AND PERFORMANCE OF USE IS ASSUMED BY YOU.
-- 
2.8.1

>From 775d896be180674df5287b1a0aa155660632bec2 Mon Sep 17 00:00:00 2001
From: Carsten Schoenert <c.schoen...@t-online.de>
Date: Tue, 16 Aug 2016 07:17:55 +0200
Subject: [PATCH 4/4] ngsspice: adding libngspice.so to the package

---
 debian/ngspice.install | 1 +
 debian/rules           | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/ngspice.install b/debian/ngspice.install
index 5234705..a71e648 100644
--- a/debian/ngspice.install
+++ b/debian/ngspice.install
@@ -1,4 +1,5 @@
 usr/bin/*
+usr/lib/libngspice.so*
 usr/lib/ngspice/*
 #usr/share/info/*
 usr/share/man/*
diff --git a/debian/rules b/debian/rules
index 5426623..0a95bb9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,6 +47,7 @@ config.status-stamp:
 		--mandir=\$${prefix}/share/man \
 		--enable-maintainer-mode \
 		--with-editline=yes \
+		--with-ngshared \
 		--enable-xspice \
 		--enable-cider \
 		--disable-debug)
@@ -169,6 +170,7 @@ binary-arch: install-arch
 	dh_strip -a --exlude=.cm
 	dh_compress -a --exclude=.tcl --exclude=.cir
 	dh_fixperms -a
+	dh_makeshlibs -pngspice
 	dh_installdeb -a
 	dh_shlibdeps -a
 	dh_gencontrol -a
-- 
2.8.1

Reply via email to