2006-08-30 17:24:55 +00:00
|
|
|
Name: ngspice
|
|
|
|
Version: 17
|
2007-08-06 01:29:03 +00:00
|
|
|
Release: 12%{?dist}
|
2006-08-30 17:24:55 +00:00
|
|
|
Summary: A mixed level/signal circuit simulator
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
Group: Applications/Engineering
|
|
|
|
URL: http://%{name}.sourceforge.net/
|
|
|
|
|
|
|
|
Source0: http://ovh.dl.sourceforge.net/sourceforge/%{name}/ng-spice-rework-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-03-17 11:54:03 +00:00
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
Patch0: %{name}-%{version}-pipemode.patch
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
BuildRequires: readline-devel, libXext-devel, libpng-devel, libICE-devel
|
2006-09-04 08:56:45 +00:00
|
|
|
BuildRequires: libXaw-devel, mesa-libGL-devel, libXt-devel
|
2006-08-30 17:24:55 +00:00
|
|
|
|
2007-01-12 20:21:24 +00:00
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
%description
|
|
|
|
Ngspice is a general-purpose circuit simulator program.
|
|
|
|
It implements three classes of analysis:
|
|
|
|
- Nonlinear DC analyses
|
|
|
|
- Nonlinear Transient analyses
|
|
|
|
- Linear AC analyses
|
|
|
|
|
|
|
|
Ngspice implements the usual circuits elements, like resistors, capacitors,
|
|
|
|
inductors (single or mutual), transmission lines and a growing number of
|
|
|
|
semiconductor devices like diodes, bipolar transistors, mosfets (both bulk
|
|
|
|
and SOI), mesfets, jfet and HFET. Ngspice implements the EKV model but it
|
|
|
|
cannot be distributed with the package since its license does not allow to
|
|
|
|
redistribute EKV source code.
|
|
|
|
|
|
|
|
Ngspice integrates Xspice, a mixed-mode simulator built upon spice3c1 (and
|
|
|
|
then some tweak is necessary merge it with spice3f5). Xspice provides a
|
|
|
|
codemodel interface and an event-driven simulation algorithm. Users can
|
|
|
|
develop their own models for devices using the codemodel interface.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for ngspice, a mixed level/signal circuit simulator
|
|
|
|
Group: Documentation
|
|
|
|
Requires: ngspice = %{version}
|
|
|
|
|
2007-03-17 11:54:03 +00:00
|
|
|
Requires(post): /sbin/install-info
|
|
|
|
Requires(preun): /sbin/install-info
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the documentation of ngspice in pdf, postscript
|
|
|
|
and info format.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n ng-spice-rework-%{version}
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
%patch0 -p0 -b .pipemode-xcircuit
|
2007-08-06 01:29:03 +00:00
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
%build
|
2006-10-12 18:46:00 +00:00
|
|
|
%ifarch x86_64 sparc64 ppc64 amd64
|
|
|
|
%{__cp} -p src/spinit.in src/spinit.in.ngspice
|
2006-10-15 13:41:53 +00:00
|
|
|
cat src/spinit.in.ngspice | sed \
|
|
|
|
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/spice2poly.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/spice2poly.cm|'\
|
|
|
|
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/analog.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/analog.cm|' \
|
|
|
|
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/digital.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/digital.cm|'\
|
|
|
|
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/xtradev.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtradev.cm|'\
|
|
|
|
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/xtraevt.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtraevt.cm|'\
|
2006-10-12 18:46:00 +00:00
|
|
|
> src/spinit.in
|
|
|
|
%endif
|
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
%configure \
|
|
|
|
--enable-xgraph \
|
|
|
|
--enable-xspice \
|
2006-10-12 18:46:00 +00:00
|
|
|
%ifarch x86_64 sparc64 ppc64 amd64
|
|
|
|
--enable-libsuffix=64 \
|
|
|
|
%endif
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
# make in xgraph with another flag first so
|
|
|
|
# that we can correctly use Fedora compiler flags.
|
|
|
|
( cd xgraph ; %{__make} \
|
|
|
|
ADDITIONAL_INCLUDES="$RPM_OPT_FLAGS" %{?_smp_mflags} )
|
|
|
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
chmod 644 src/xspice/*/*.{c,h,l,y}
|
|
|
|
chmod 644 src/frontend/*.{c,h}
|
|
|
|
chmod 644 src/include/*.h
|
|
|
|
|
2007-08-06 01:29:03 +00:00
|
|
|
%{__make} INSTALL="install -p" install DESTDIR=%{buildroot}
|
2006-08-30 17:24:55 +00:00
|
|
|
%{__rm} -f doc/Makefile*
|
2007-08-06 01:29:03 +00:00
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
chmod +x %{buildroot}%{_libdir}/spice/{xtraevt.cm,xtradev.cm,analog.cm,spice2poly.cm,digital.cm}
|
2006-12-24 16:46:21 +00:00
|
|
|
%{__rm} -f %{buildroot}%{_libdir}/ng-spice-rework/libbsim4.a
|
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
%clean
|
2006-10-12 18:46:00 +00:00
|
|
|
%{__rm} -rf %{buildroot}
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2006-12-24 16:46:21 +00:00
|
|
|
%doc AUTHORS COPYING README BUGS ChangeLog NEWS
|
2006-08-30 17:24:55 +00:00
|
|
|
%{_bindir}/cmpp
|
|
|
|
%{_bindir}/makeidx
|
|
|
|
%{_bindir}/nghelp
|
|
|
|
%{_bindir}/ngmultidec
|
|
|
|
%{_bindir}/ngnutmeg
|
|
|
|
%{_bindir}/ngproc2mod
|
|
|
|
%{_bindir}/ngsconvert
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/xgraph
|
2006-12-24 16:46:21 +00:00
|
|
|
%{_datadir}/ng-spice-rework/
|
2006-10-12 18:46:00 +00:00
|
|
|
%{_libdir}/spice/
|
2006-08-30 17:24:55 +00:00
|
|
|
%{_mandir}/man1/ngnutmeg.1.*
|
|
|
|
%{_mandir}/man1/ngsconvert.1.*
|
|
|
|
%{_mandir}/man1/%{name}.1.*
|
|
|
|
%{_mandir}/manm/xgraph.man.*
|
|
|
|
|
2007-01-12 20:21:24 +00:00
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root, -)
|
2007-01-12 20:21:24 +00:00
|
|
|
%{_infodir}/ngspice.info*.*
|
2007-08-06 01:29:03 +00:00
|
|
|
%doc examples/ doc/
|
|
|
|
%doc Stuarts_Poly_Notes FAQ DEVICES ANALYSES
|
2006-08-30 17:24:55 +00:00
|
|
|
|
|
|
|
%Changelog
|
2007-08-06 01:29:03 +00:00
|
|
|
* Sat Jul 08 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-12
|
|
|
|
- fixed ScriptletSnippets for Texinfo #246780
|
|
|
|
- moved documentations to -doc package
|
|
|
|
|
2007-03-17 14:48:14 +00:00
|
|
|
* Sat Mar 17 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-11
|
|
|
|
- droped patch: ngspice-bjt.patch, upstream will provide a better patch soon
|
|
|
|
|
2007-03-17 11:54:03 +00:00
|
|
|
* Sat Mar 17 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-10
|
|
|
|
- fixed bug #227519 in spec file - Ville Skyttä
|
|
|
|
- patch: ngspice-bjt.patch fixes the problem with bjt devices that have less than five nodes
|
|
|
|
|
2007-01-12 20:21:24 +00:00
|
|
|
* Tue Jan 09 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-9
|
|
|
|
- dropped --enable-cider since it requires non-opensource software
|
|
|
|
- dropped --enable-predictor from %%configure
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Tue Dec 19 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-8
|
|
|
|
- patch0 for xcircuit pipemode
|
|
|
|
- XCircuit can work as an ng-spice front-end
|
|
|
|
- fixed infodir to mean FE guidelines
|
|
|
|
|
|
|
|
* Sun Oct 15 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-7
|
2006-10-15 13:41:53 +00:00
|
|
|
- Fixed src/spinit.in for 64 bit
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Thu Oct 12 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-6
|
|
|
|
- Testing on 64 bit arch
|
2006-10-12 18:46:00 +00:00
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Mon Sep 04 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-5
|
2006-09-04 08:56:45 +00:00
|
|
|
- Added libXt-devel to include X headers
|
|
|
|
|
2006-08-30 17:24:55 +00:00
|
|
|
* Wed Aug 30 2006 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> 17-4
|
|
|
|
- Fix to pass compiler flags in xgraph.
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Tue Aug 29 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-3
|
2006-08-30 17:24:55 +00:00
|
|
|
- Fixed BR and script-without-shellbang for debug file
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Mon Aug 28 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-2
|
2006-08-30 17:24:55 +00:00
|
|
|
- Fixed BRs and excluded libbsim4.a
|
|
|
|
- Removed duplicates and useless ldconfig from %%post
|
|
|
|
|
2006-12-24 16:46:21 +00:00
|
|
|
* Sun Aug 27 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 17-1
|
2006-08-30 17:24:55 +00:00
|
|
|
- Initial Package for Fedora Extras
|