Compare commits

...
Sign in to create a new pull request.

96 commits

Author SHA1 Message Date
Mamoru TASAKA
604180f030 45.2 2025-09-07 22:51:06 +09:00
Mamoru TASAKA
a15b8533e9 merge 2025-09-02 17:32:36 +09:00
Mamoru TASAKA
9ba8a88ec4 Update to 45 2025-09-02 17:31:37 +09:00
Mamoru TASAKA
ca6de1b4ce update to the latest git 2025-08-31 22:26:09 +09:00
Mamoru TASAKA
956e54007c update to the latest git 2025-08-24 15:47:43 +09:00
Mamoru TASAKA
2d31bd5d93 update to the latest git 2025-08-14 18:25:08 +09:00
Mamoru TASAKA
4db0e42cc1 update to the latest git 2025-08-11 23:23:35 +09:00
Mamoru TASAKA
fdc6a110fd enable parallel make 2025-08-05 22:20:00 +09:00
Mamoru TASAKA
27044e6b40 update to the latest git 2025-08-05 16:48:47 +09:00
Mamoru TASAKA
cdb9c3a5f2 update to the latest git 2025-08-01 17:07:59 +09:00
Mamoru TASAKA
460429b7d7 again add pdf to source 2025-07-25 18:05:04 +09:00
Mamoru TASAKA
68df1ef9f2 update to the latest git 2025-07-25 17:22:00 +09:00
Fedora Release Engineering
c483836b6d Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 22:50:19 +00:00
Yaakov Selkowitz
0e77794aca Fix flatpak build
Installation path macros cannot be used to specify dependency locations.
Tcl is part of the runtime and is in /usr even when building flatpaks for
/app.  BLT is not built for flatpaks (only tclspice needs it), and
therefore the buildroot /usr version is used.
2025-02-27 22:34:30 -05:00
Mamoru TASAKA
1c82df6d52 Use tk8 explicitly 2025-01-31 10:45:43 +09:00
Fedora Release Engineering
059e3a9a41 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 20:07:59 +00:00
Mamoru TASAKA
caa9d840f8 44.2 2025-01-12 11:16:18 +09:00
Mamoru TASAKA
4a58d05773 Update to 44 2024-12-31 09:25:03 +09:00
Miroslav Suchý
25e3b84421 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-02 12:10:23 +02:00
Fedora Release Engineering
17e99c1c47 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 19:31:30 +00:00
Mamoru TASAKA
f1b82bc108 Apply upstream patch for fixing one byte ahead access in string manipulation 2024-07-16 17:05:29 +09:00
Mamoru TASAKA
ae3eb82b55 suppress leak detection even for %%build 2024-07-15 09:38:38 +09:00
Mamoru TASAKA
40044a3b31 disable leak check 2024-07-15 00:15:41 +09:00
Mamoru TASAKA
d4acaf30dc try sanitizer 2024-07-15 00:10:05 +09:00
Mamoru TASAKA
6fff1cbbaa Revert "try sanitizer"
This reverts commit 5b35268337.
2024-07-15 00:09:22 +09:00
Mamoru TASAKA
5b35268337 try sanitizer 2024-07-15 00:05:51 +09:00
Mamoru TASAKA
7777750ae0 Update to 43 2024-07-14 20:47:27 +09:00
Mamoru TASAKA
67864ee918 once save 2024-03-24 15:08:49 +09:00
Mamoru TASAKA
0aa55a0368 once save 2024-03-24 14:42:59 +09:00
Mamoru TASAKA
a8d6bf0885 add reference 2024-02-02 16:35:24 +09:00
Fedora Release Engineering
9a77728f1b Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-25 08:59:22 +00:00
Mamoru TASAKA
ad61317e38 Fix compilation with -Werror=incompatible-pointer-types 2024-01-21 17:14:01 +09:00
Mamoru TASAKA
935d270f73 upload source 2023-12-29 12:44:14 +09:00
Mamoru TASAKA
a935e39f31 remove adms source file 2023-12-29 12:40:01 +09:00
Mamoru TASAKA
c7e34909cd Update to ngspice 42 2023-12-29 12:38:21 +09:00
Mamoru TASAKA
3ea15aa50f update to the latest git 2023-11-12 22:42:04 +09:00
Mamoru TASAKA
23cdbb13a8 more revert 2023-11-06 23:48:12 +09:00
Mamoru TASAKA
976dfbd62b undo typo 2023-11-06 22:03:50 +09:00
Mamoru TASAKA
6ce601b283 trial fix 2023-11-06 21:58:42 +09:00
Mamoru TASAKA
a682309834 update to the latest git 2023-11-06 09:37:25 +09:00
Mamoru TASAKA
7149c6d64e update to the latest git 2023-11-04 23:16:20 +09:00
Mamoru TASAKA
6a5fdf14af update to the latest git 2023-11-04 23:06:04 +09:00
Mamoru TASAKA
508a248526 Update to 41 2023-08-16 11:16:59 +09:00
Mamoru TASAKA
8cadd2c27b update to the latest git 2023-08-16 08:02:31 +09:00
Mamoru TASAKA
55f6e4dbb0 update to the latest git 2023-08-13 22:18:14 +09:00
Mamoru TASAKA
bfc38ec700 update to the latest git 2023-08-12 22:32:38 +09:00
Mamoru TASAKA
21c52aad66 update to the latest git 2023-08-08 17:29:28 +09:00
Mamoru TASAKA
0f552ccdb9 update to the latest git 2023-08-06 22:15:43 +09:00
Mamoru TASAKA
4e8c99d607 bump release 2023-08-03 00:52:15 +09:00
Mamoru TASAKA
9c6438b1ce fix module path search dir 2023-08-03 00:51:21 +09:00
Mamoru TASAKA
ec6a22674f update to the latest git 2023-08-02 22:44:25 +09:00
Mamoru TASAKA
cdee3be242 update to the latest git 2023-07-31 15:31:10 +09:00
Mamoru TASAKA
a4138e92a0 update to the latest git 2023-07-28 11:33:30 +09:00
Mamoru TASAKA
97cd6568db Merge remote-tracking branch 'origin/rawhide' into git-develop 2023-07-28 11:11:52 +09:00
Mamoru TASAKA
bc54b6a622 update to the latest git 2023-07-25 14:13:18 +09:00
Fedora Release Engineering
325dbf0809 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 16:40:43 +00:00
Mamoru TASAKA
ae944641fa update to the latest git 2023-07-20 15:06:47 +09:00
Mamoru TASAKA
1adf4ea738 Update to the latest git 2023-07-07 15:14:24 +09:00
Mamoru TASAKA
4936fea661 fix date 2023-06-06 21:16:15 +09:00
Mamoru TASAKA
e34cc59b44 update to the latest git 2023-05-30 15:13:44 +09:00
Mamoru TASAKA
5eec85c32b update to the latest git 2023-05-06 12:14:32 +09:00
Mamoru TASAKA
e6c2277346 update to the latest git 2023-04-21 12:48:17 +09:00
Mamoru TASAKA
5169f556da Update to 40 2023-04-01 22:36:13 +09:00
Mamoru TASAKA
453fd37f82 update to the latest git 2023-03-24 16:00:42 +09:00
Mamoru TASAKA
d8a66d0aa9 fix release 2023-03-24 15:44:08 +09:00
Mamoru TASAKA
e9dd0e2318 update to the latest git 2023-03-24 15:43:07 +09:00
Mamoru TASAKA
c8dd67a7e1 correct baserelease usage 2023-03-24 15:23:23 +09:00
Mamoru TASAKA
6b4ed36c40 rename release macro to make rpmdev-bumprelease work 2023-03-13 10:19:27 +09:00
Mamoru TASAKA
a455275f3f Update to 39.3 2023-02-03 22:50:29 +09:00
Mamoru TASAKA
43e7b221ef remove unneeded patch from entry 2023-02-01 22:39:56 +09:00
Mamoru TASAKA
fbbbcda981 Update to 39.2 2023-02-01 22:35:05 +09:00
Mamoru TASAKA
6d27e5bfb9 merge 2023-02-01 11:05:08 +09:00
Mamoru TASAKA
3ce540f11b patch10 is actually needed 2023-02-01 11:03:43 +09:00
Mamoru TASAKA
1a4538ea93 update to ngspice 39 2023-01-31 23:27:01 +09:00
Fedora Release Engineering
33f94059fc Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 21:35:30 +00:00
Mamoru TASAKA
a69a510431 fix patch 2023-01-03 18:37:06 +09:00
Mamoru TASAKA
827fc3c8ee add patch for max_align_t usage 2023-01-03 18:14:21 +09:00
Mamoru TASAKA
6a0854517f enable osdi 2023-01-01 21:52:33 +09:00
Mamoru TASAKA
e1a02e16ae update to the latest git 2022-12-31 21:59:25 +09:00
Mamoru TASAKA
f98b43fabc Update to 38 2022-10-30 00:12:10 +09:00
Mamoru TASAKA
d5b7fd759d update to the latest git 2022-10-30 00:05:59 +09:00
Mamoru TASAKA
f56696ba00 Merge remote-tracking branch 'origin/rawhide' into git-develop 2022-10-27 13:13:38 +09:00
Mamoru TASAKA
155e2bfc6c fix example 2022-10-27 13:12:48 +09:00
Mamoru TASAKA
da23ecb1e0 update to the latest git 2022-10-27 10:05:25 +09:00
Mamoru TASAKA
70a8115e9e bump release 2022-10-26 20:06:58 +09:00
Mamoru TASAKA
e5f5486675 update to the latest git 2022-10-26 20:06:41 +09:00
Mamoru TASAKA
d40ba0fef7 Merge remote-tracking branch 'origin/rawhide' into git-develop 2022-10-26 19:46:04 +09:00
Mamoru TASAKA
c8a565c7af Split out codemodel files, and make ngspice, libngspice require codemodel
Move scripts to %_libdir, they were arch-dependent actually
2022-10-26 19:44:43 +09:00
Mamoru TASAKA
f398291adb update to the latest git 2022-10-24 16:50:34 +09:00
Mamoru TASAKA
27e95df527 update to the latest git 2022-10-23 21:33:38 +09:00
Mamoru TASAKA
0bf6395086 update to the latest git 2022-10-21 11:17:52 +09:00
Mamoru TASAKA
6207a7c1f6 Fix error for -Werror=format-security 2022-10-10 00:21:26 +09:00
Mamoru TASAKA
37f0c6af21 update to the latest git 2022-10-09 17:51:14 +09:00
Fedora Release Engineering
b8448d070a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 00:34:30 +00:00
Mamoru TASAKA
c4a1a2e970 update to the latest git 2022-06-27 16:35:20 +09:00
Mamoru TASAKA
18c71001c0 update to the latest git 2022-06-24 15:09:27 +09:00
4 changed files with 320 additions and 55 deletions

125
License-analysis.txt Normal file
View file

@ -0,0 +1,125 @@
CC-BY-SA-4.0
COPYING
FAQ
manal.pdf
CC-BY-3.0
src/frontend/get_phys_mem_size.c
src/frontend/get_resident_set_size.c
GPL-2.0-or-later
src/xspice/icm/table/table2D/cfunc.mod
src/xspice/icm/table/table3D/cfunc.mod
src/spicelib/devices/adms/admst/COPYING
src/spicelib/devices/adms/admst/ngspice*.xml
src/xspice/icm/table/mada/alloc.c
src/xspice/icm/table/mada/eno.c
src/xspice/icm/table/mada/eno2.c
src/xspice/icm/table/mada/eno3.c
GPL-2.0-only
src/xspice/icm/table/table2D/ifspec.ifs
src/xspice/icm/table/table3D/ifspec.ifs
GPL-3.0-or-later
src/frontend/parse-bison.c
src/frontend/parse-bison.h
src/spicelib/parser/inpptree-parser.c
src/spicelib/parser/inpptree-parser.h
src/xspice/cmpp/ifs_yacc.c
src/xspice/cmpp/ifs_yacc.h
src/xspice/cmpp/mod_yacc.c
src/xspice/cmpp/mod_yacc.h
LGPL-2.1-or-later
README.tcl
src/frontend/numparam/mystring.c
src/frontend/numparam/readme.txt
src/frontend/numparam/spicenum.c
src/frontend/numparam/xpressn.c
src/maths/KLU/colamd.c
src/spicelib/devices/adms/admst/COPYING
LGPL-2.1-only
src/maths/KLU/colamd_global.c
src/tclspice.c
MPL-2.0
src/include/cppduals/duals/dual
src/osdi/
ECL-2.0
examples/osdi/EKV2.6/ekv26_mod.va
src/spicelib/devices/bsim4/
HPND
src/maths/sparse/
BSD-4-Clause
src/misc/getopt_bsd.h
BSD-3-Clause
src/frontend/com_wr_ic.c
src/frontend/com_wr_ic.h
src/frontend/get_avail_mem_size.c
src/frontend/inpcom.c
src/frontend/inpcompat.c (BCD)
src/frontend/inpcompat.h (BCD)
src/frontend/inpc_probe.c
src/include/ngspice/sharedspice.h
src/misc/dstring.c
src/sharedspice.c
src/spicelib/analysis/optran.c
src/spicelib/devices/cpl/cpldelete.c
src/spicelib/devices/cpl/cplhash.c
src/spicelib/devices/cpl/cplhash.h
src/spicelib/devices/cpl/cplmdel.c
src/spicelib/devices/hicum2/
src/spicelib/parser/inpgmod.c
src/winmain.c
src/xspice/icm/digital/d_process/cfunc.mod
src/xspice/icm/dlmain.c
src/xspice/icm/dlmain.h
src/xspice/icm/xtradev/pswitch/cfunc.mod
src/xspice/icm/xtradev/sidiode/cfunc.mod
src/xspice/icm/xtradev/sidiode/ifspec.ifs
BSD-2-Clause
src/misc/getopt_long_bsd.c
???
examples/p-to-n-examples/MCP6041.txt
???
examples/probe/TLC555.LIB
NOT_IN_SPDX
src/frontend/commands.c
src/spicelib/devices/dev.c
NOT_IN_SPDX
src/spicelib/devices/bsim3/B3TERMS_OF_USE
src/spicelib/devices/bsim3soi_dd/BsimTerms_use
src/spicelib/devices/bsim3soi_fd/BsimTerms_use
src/spicelib/devices/bsim3soi_pd/BsimTerms_use
src/spicelib/devices/bsim3v32/B3TERMS_OF_USE
src/spicelib/devices/bsim4/B4TERMS_OF_USEs
src/spicelib/devices/bsim4v5/B4TERMS_OF_USE
src/spicelib/devices/bsim4v6/B4TERMS_OF_USE
src/spicelib/devices/bsim4v7/B4TERMS_OF_USE
src/spicelib/devices/bsimsoi/BsimTerms_use
???
src/spicelib/devices/hisim2/
src/spicelib/devices/hisimhv2/
???
src/spicelib/devices/hisimhv1/
???
src/spicelib/devices/soi3/README

View file

@ -18,7 +18,7 @@ pushd $TMPDIR
git clone --mirror $GITURL
cd ./${REPONAME}.git
git log | head -n 5
git log --pretty=fuller | head -n 10
cd ..
tar czf ${TARNAME} ${REPONAME}.git/

View file

@ -13,48 +13,62 @@
%global userelease 1
%endif
%global mainver 37
%global docver 37
%global majorver 45
%global minorver 2
%global docver 45
%undefine prever
%global prerpmver %(echo "%{?prever}" | sed -e 's|-||g')
%global mainrel 1
%global baserelease 1
%if 0%{?usegitbare} >= 1
%global gitcommit cc285741f58bf6a9f37988199b09f49f7425144f
%global gitdate 20220430
# pre-master-45
%global gitcommit 1d0beb5e266420b1dd756913356a295ddb60fdce
%global gitdate 20250830
%global shortcommit %(c=%{gitcommit}; echo ${c:0:7})
%global tarballdate 20220502
%global tarballtime 1812
%global tarballdate 20250831
%global tarballtime 2034
%endif
%if 0%{?userelease} >= 1
%global fedorarel %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}
%if 0%{?userelease} >= 1
%global fedoraver %{majorver}%{?minorver:.%minorver}
%endif
%if 0%{?usegitbare} >= 1
%global fedorarel %{?prever:0.}%{mainrel}.D%{gitdate}git%{shortcommit}
#%%global fedorarel %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}
%if 0%{?usegitbare} >= 1
%global fedoraver %{majorver}%{?minorver:.%minorver}^%{gitdate}git%{shortcommit}
%endif
%global use_gcc_strict_sanitize 0
%global flagrel %{nil}
%if 0%{?use_gcc_strict_sanitize} >= 1
%global flagrel %{flagrel}.san
%endif
%bcond_with adms
%undefine _changelog_trimtime
Name: ngspice
Version: %{mainver}
Release: %{fedorarel}%{?dist}
Version: %{fedoraver}
Release: %{baserelease}%{?dist}%{flagrel}
Summary: A mixed level/signal circuit simulator
License: BSD
# ngspice-42-manual.pdf CC-BY-SA-4.0 AND BSD-3-Clause
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: http://ngspice.sourceforge.net
%if 0%{?userelease} >= 1
Source0: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{version}/ngspice-%{version}.tar.gz
Source0: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{majorver}%{?minorver:.%minorver}/ngspice-%{majorver}%{?minorver:.%minorver}.tar.gz
%endif
%if 0%{?usegitbare} >= 1
Source0: ngspice-%{tarballdate}T%{tarballtime}.tar.gz
%endif
Source1: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{version}/ngspice-%{docver}-manual.pdf
Source2: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{version}/ngspice-adms-va.7z
Source1: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{majorver}/ngspice-%{docver}-manual.pdf
%if %{with adms}
Source2: https://downloads.sourceforge.net/project/ngspice/ng-spice-rework/%{majorver}/ngspice-adms-va.7z
%endif
Source10: create-ngspice-git-bare-tarball.sh
@ -62,9 +76,14 @@ Source10: create-ngspice-git-bare-tarball.sh
# not (bug 1047056, debian bug 737279)
Patch0: ngspice-37-blt-linkage-workaround.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: gcc-c++
%if 0%{?use_gcc_strict_sanitize}
BuildRequires: libasan
BuildRequires: libubsan
%endif
BuildRequires: p7zip
BuildRequires: readline-devel
@ -89,8 +108,10 @@ BuildRequires: flex
BuildRequires: ImageMagick
BuildRequires: mot-adms
BuildRequires: xorg-x11-server-Xvfb
BuildRequires: git
Requires: %{name}-codemodel%{?_isa} = %{version}-%{release}
Obsoletes: ngspice-doc < 20-4.cvs20100619
Provides: ngspice-doc = %{version}-%{release}
@ -120,7 +141,7 @@ It can be used for VLSI simulations as well.
%package -n tclspice
Summary: Tcl/Tk interface for ngspice
BuildRequires: tk-devel
BuildRequires: pkgconfig(tk) <= 8.999
BuildRequires: blt-devel
%description -n tclspice
@ -128,8 +149,15 @@ TclSpice is an improved version of Berkeley Spice designed to be used with
the Tcl/Tk scripting language. The project is based upon the NG-Spice source
code base with many improvements.
%package codemodel
Summary: ngspice codemodel and some script files
%description codemodel
This package contains ngspice codemodel and some script files.
%package -n libngspice
Summary: Shared library version of ngspice
Requires: %{name}-codemodel%{?_isa} = %{version}-%{release}
%description -n libngspice
This package contains shared library version of ngspice.
@ -145,24 +173,25 @@ developing applications that use libngspice.
%prep
%if 0%{?userelease} >= 1
%setup -q
%setup -q -n %{name}-%{majorver}%{?minorver:.%minorver}
git init
git config user.name "%{name} maintainer"
git config user.email "%{name}-owner@fedoraproject.org"
git config user.email "%{name}-maintainers@fedoraproject.org"
git add .
git commit -m "base" -q -a
%endif
%if 0%{?usegitbare} >= 1
%setup -q -c -T -a 0
%setup -q -c -n %{name}-%{majorver}%{?minorver:.%minorver}-%{gitdate}git%{shortcommit} -T -a 0
git clone ./%{name}.git/
cd %{name}
git config user.name "%{name} maintainer"
git config user.email "%{name}-owner@fedoraproject.org"
git config user.email "%{name}-maintainers@fedoraproject.org"
git checkout -b %{name}-%{version}-fedora %{gitcommit}
git checkout -b %{name}-%{majorver}-fedora %{gitcommit}
%endif
%if %{with adms}
pushd src/spicelib/devices/adms
%if 0%{?userelease} >= 1
7za x %{SOURCE2}
@ -178,9 +207,11 @@ do
test -f $f || exit 1
done
%endif
popd
%patch0 -p2 -b .link
popd
%endif
%patch -P0 -p2 -b .link
git commit -m "Link libspice.so with -lBLT or -lBLIlite, depending on whether in tk mode or not" -a
# make sure the examples are UTF-8...
@ -191,7 +222,7 @@ for nonUTF8 in \
ChangeLog \
%{nil}
do
%{_bindir}/iconv -f ISO-8859-1 -t utf-8 $nonUTF8 > $nonUTF8.conv
iconv -f ISO-8859-1 -t utf-8 $nonUTF8 > $nonUTF8.conv
%{__mv} -f $nonUTF8.conv $nonUTF8
done
git commit -m "Change files to UTF8" -a
@ -204,6 +235,14 @@ find src/ -type f -name "*.l" -exec chmod -x {} ';'
find src/ -type f -name "*.y" -exec chmod -x {} ';'
git commit -m "Fix permission" -a || :
# Move spinit directory to arch-dependent
sed -i configure.ac -e '\@AC_DEFINE_UNQUOTED.*NGSPICEDATADIR@s|echo .dprefix/share/ngspice|echo %{_libdir}/ngspice|'
sed -i configure.ac -e '\@AC_DEFINE_UNQUOTED.*NGSPICELIBDIR@s|echo .dprefix/share/ngspice|echo %{_libdir}/ngspice|'
sed -i src/misc/ivars.c -e 's|\(["/]\)share/ngspice|\1%_lib/ngspice|'
sed -i src/misc/ivars.c -e 's|\(["/]\)lib/ngspice|\1%_lib/ngspice|'
grep -rl "(pkgdatadir)/" . | xargs sed -i -e 's|(pkgdatadir)/|(pkglibdir)/|'
git commit -m "move spinit directory to arch-dependent" -a
# Fix Tclspice's examples
sed -i \
's|load "../../../src/.libs/libspice.so"|lappend auto_path "%{_libdir}/tclspice"\npackage require spice|' \
@ -212,7 +251,7 @@ sed -i \
's|load ../../../src/.libs/libspice.so|lappend auto_path "%{_libdir}/tclspice"\npackage require spice|' \
examples/tclspice/*/*.{tcl,sh}
sed -i \
's|spice::codemodel ../../src/xspice/icm/spice2poly|spice::codemodel %{_libdir}/tclspice/spice2poly|' \
's|spice::codemodel [\./][\./]*src/xspice/icm/spice2poly/|spice::codemodel %{_libdir}/tclspice/ngspice/|' \
examples/tclspice/tcl-testbench*/tcl-testbench*.sh
git commit -m "Fix Tclspice's examples" -a
@ -223,19 +262,31 @@ sed -i \
git commit -m "Fix include path" -a
export ACLOCAL_FLAGS=-Im4
./autogen.sh --adms
./autogen.sh \
%if %{with adms}
--adms \
%endif
%{nil}
git commit -m "Execute autogen" -a || :
chmod +x configure
%build
%set_build_flags
%if 0%{?use_gcc_strict_sanitize}
export CC="${CC} -fsanitize=address -fsanitize=undefined"
export CXX="${CXX} -fsanitize=address -fsanitize=undefined"
export ASAN_OPTIONS=detect_leaks=0
%endif
%if 0%{?usegitbare} >= 1
cd %{name}
%endif
# ---- Tclspice ----------------------------------------------------------------
# Adding BLT support
export CFLAGS="%{optflags} -I%{_includedir}/blt"
export CFLAGS="%{optflags} -I$(pkg-config --variable=includedir tcl)/blt"
# Make builddir for tclspice
%{__mkdir} -p tclspice
@ -243,9 +294,9 @@ export CFLAGS="%{optflags} -I%{_includedir}/blt"
# Configure tclspice
cd tclspice
sed -i \
's|\#define NGSPICEDATADIR "\`echo \$dprefix/share/ngspice\`"|\#define NGSPICEDATADIR "\`echo %{_libdir}/tclspice\`"|' \
configure*
sed -i configure* \
-e 's|\#define NGSPICEDATADIR "\`echo %{_libdir}/ngspice\`"|\#define NGSPICEDATADIR "\`echo %{_libdir}/tclspice/ngspice\`"|'
sed -i src/misc/ivars.c -e 's|/%_libdir/ngspice|/%_lib/tclspice/ngspice|'
# direct access to Tcl_Interp->result deprecated in tcl8.6,
# remaining usage cannot be replaced by Tcl_SetResult
@ -259,8 +310,12 @@ export CPPFLAGS=-DUSE_INTERP_RESULT
# by the request from the upstream
%configure \
--disable-silent-rules \
%if %{with adms}
--enable-adms \
%endif
--enable-xspice \
--enable-klu \
--enable-osdi \
--enable-maintainer-mode \
--enable-dependency-tracking \
--enable-cider \
@ -271,11 +326,11 @@ export CPPFLAGS=-DUSE_INTERP_RESULT
--enable-predictor \
--enable-shared \
--with-readline=yes \
--with-tcl=%{_libdir}/ \
--with-tcl=$(pkg-config --variable=libdir tcl) \
--libdir=%{_libdir}/tclspice \
%{nil}
%{__make} -k
%make_build -k
# Once install to the temp dir
rm -rf $(pwd)/../INST-TCLSPICE
%{__make} INSTALL="install -p" install DESTDIR=$(pwd)/../INST-TCLSPICE
@ -297,8 +352,12 @@ do
%configure \
--disable-silent-rules \
${SHARED_OPT} \
%if %{with adms}
--enable-adms \
%endif
--enable-xspice \
--enable-osdi \
--enable-klu \
--enable-maintainer-mode \
--enable-dependency-tracking \
--enable-cider \
@ -313,8 +372,7 @@ do
%{nil}
%{__make} clean
# No parallel make
%{__make} -k
%make_build -k
# Once install to the temp dir
rm -rf $(pwd)/INST-NGSPICE-${opt}
%{__make} INSTALL="install -p" install DESTDIR=$(pwd)/INST-NGSPICE-${opt}
@ -332,9 +390,9 @@ cd %{name}
# Clean up unneeded / duplicate files also installed from ngspice
pushd INST-TCLSPICE
rm -rf ./%{_datadir}/ngspice/include/
rm -rf ./%{_libdir}/ngspice/include/
# see bug 1311869
rm -f ./%{_datadir}/ngspice/scripts/spinit
rm -f ./%{_libdir}/tclspice/ngspice/scripts/spinit
# binary differ
# for --short-circuit
if [ -f .%{_bindir}/cmpp ] ; then
@ -364,13 +422,13 @@ cp -a INST-TCLSPICE/* %{buildroot}
# It seems that the below is not needed, compiled into binary already
# (mtasaka, 20160628)
%if 0
cp -pr ./src/spicelib/devices/adms/ %{buildroot}%{_datadir}/%{name}
cp -pr ./src/spicelib/devices/adms/ %{buildroot}%{_libdir}/%{name}
%endif
# Ensuring that all docs are under %%{_pkgdocdir}
mkdir -p %{buildroot}%{_pkgdocdir}
cp -pr examples/ %{buildroot}%{_pkgdocdir}
install -cpm 0644 %{SOURCE1} %{buildroot}%{_pkgdocdir}/%{name}-%{version}.pdf
install -cpm 0644 %{SOURCE1} %{buildroot}%{_pkgdocdir}/%{name}-%{majorver}.pdf
cp -a \
Stuarts_Poly_Notes \
@ -391,6 +449,8 @@ chmod +x %{buildroot}%{_libdir}/ngspice/*.cm
chmod +x %{buildroot}%{_libdir}/tclspice/ngspice/*.cm
%check
export ASAN_OPTIONS=detect_leaks=0
%if 0%{?usegitbare} >= 1
cd %{name}
%endif
@ -403,27 +463,33 @@ mkdir USERPROFILE
echo "set ngbehavior=mc" > USERPROFILE/spice.rc
export USERPROFILE=$(pwd)/USERPROFILE
make check
xvfb-run \
-s "-screen 0 640x480x24" \
make check
popd
%files
%{_bindir}/*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/scripts/tclspinit
%{_libdir}/ngspice/
%{_libdir}/%{name}/ivlng.*
%{_mandir}/man1/*
%exclude %{_pkgdocdir}/examples/tclspice
%doc %{_pkgdocdir}
%license COPYING
%files -n tclspice
%doc %{_pkgdocdir}/examples/tclspice
%{_libdir}/tclspice/
%dir %{_datadir}/ngspice
%dir %{_datadir}/%{name}/scripts/
%{_datadir}/%{name}/scripts/tclspinit
%dir %{_libdir}/tclspice/
%dir %{_libdir}/tclspice/%{name}
%{_libdir}/tclspice/libspice*.so*
%{_libdir}/tclspice/%{name}/*.cm
%{_libdir}/tclspice/%{name}/*.tcl
%{_libdir}/tclspice/%{name}/ivlng.*
%{_libdir}/tclspice/%{name}/scripts/
%files codemodel
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/*.cm
%{_libdir}/%{name}/scripts/
%files -n libngspice
%{_libdir}/libngspice.so.0*
@ -434,6 +500,81 @@ popd
%{_includedir}/ngspice/
%changelog
* Sun Sep 07 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 45.2-1
- Update to 45.2
* Tue Sep 02 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 45-1
- Update to 45
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 44.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jan 31 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 44.2-3
- Use tk8 explicitly
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 44.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Jan 12 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 44.2-1
- Update to 44.2
* Mon Dec 30 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 44-1
- Update to 44
* Mon Sep 2 2024 Miroslav Suchý <msuchy@redhat.com> - 43-4
- convert license to SPDX
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 43-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jul 16 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 43-2
- Apply upstream patch for fixing one byte ahead access in string manipulation
* Sun Jul 14 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 43-1
- Update to 43
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 42-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 42-2
- Fix compilation with -Werror=incompatible-pointer-types
* Fri Dec 29 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 42-1
- Update to 42
- Kill --with-adms
- Enable --with-klu
* Wed Aug 16 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 41-1
- Update to 41
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 40-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Apr 1 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 40-1
- Update to 40
* Fri Feb 3 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 39.3-1
- Update to 39.3
* Wed Feb 1 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 39.2-1
- Update to 39.2
* Wed Feb 1 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 39-1
- Update to 39
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 38-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Oct 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 38-1
- Update to 38
* Wed Oct 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 37-2
- Split out codemodel files, and make ngspice, libngspice require codemodel
- Move scripts to %%_libdir, they were arch-dependent actually
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 37-1.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri May 20 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 37-1
- Update to 37

View file

@ -1,3 +1,2 @@
SHA512 (ngspice-37.tar.gz) = d49f7e78d3dd17ac8ea03d79dfbe8a9cf57c012395285cc0c0cf379e0c0c81f11cad68d5366dc2d2478959ed197e4d43380fbc15baf44f987f20ad00f1ee04ca
SHA512 (ngspice-adms-va.7z) = e0bab0a275ad781ee29d2ac982075079af1d9a2d0acc7f901783cb873e1a471b2aa62c08e51448ef2e4e57623ba2e4ae3549eb882e2c625c20b8141b8109b26a
SHA512 (ngspice-37-manual.pdf) = 24ffc0816d4dd5fe76f3e26a13b7b31ce2384d06a680ce7109293a32ddcf377d72990a08c21f295988090bffc3a8590adc022885a9b7f5a7887cc1c8da732d96
SHA512 (ngspice-45.2.tar.gz) = 4090e9433457c0b49dc1e7561bc630a5c6a340391f26be8142c6bd514ae13b72137589964fe9ae5a01069c9de7d8457bd41b0811a335b2c93a3c6e07044b35b1
SHA512 (ngspice-45-manual.pdf) = 425d9320a01d409c7baab83d111f92643cae7df62a109e06d7e4fd366262441f4fdd62532db63fb4d4af4cb98e478b4f9fca5bd6c63fb89507dba685220f34ab