2008-09-25 12:54:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package gnucap
|
|
|
|
#
|
2012-06-26 15:06:11 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-25 12:54:14 +02:00
|
|
|
#
|
2012-06-26 15:06:11 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2008-09-25 12:54:14 +02:00
|
|
|
|
2012-06-26 15:06:11 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
Name: gnucap
|
|
|
|
Version: 0.35
|
|
|
|
Release: 10
|
2012-06-26 15:06:11 +02:00
|
|
|
License: GPL-2.0+
|
|
|
|
Summary: Gnu Circuit Analysis Package
|
|
|
|
Url: http://www.gnu.org/software/gnucap/
|
2008-09-25 12:54:14 +02:00
|
|
|
Group: Productivity/Scientific/Electronics
|
2012-06-30 11:46:22 +02:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2012-06-26 15:06:11 +02:00
|
|
|
Source1: gnucap-modelgen.1
|
|
|
|
# PATCH-FIX-UPSTREAM -- fix build with GCC 4.3
|
2008-09-25 12:54:14 +02:00
|
|
|
Patch1: gnucap-0.35-gcc43.patch
|
2012-06-26 15:06:11 +02:00
|
|
|
# PATCH-FIX-UPSTREAM -- ACS -> Gnucap
|
2008-09-25 12:54:14 +02:00
|
|
|
Patch2: gnucap-0.34-debian.patch
|
2012-06-26 15:06:11 +02:00
|
|
|
# PATCH-FIX-OPENSUSE -- move documentation and example to the standard directories
|
|
|
|
Patch3: gnucap-docpath.patch
|
|
|
|
# PATCH-FIX-OPENSUSE -- from Debian: add shebang, and explicitly call gnucap
|
|
|
|
Patch4: gnucap-fix_runall.patch
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libpng-devel
|
2008-09-25 12:54:14 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2012-06-26 15:06:11 +02:00
|
|
|
BuildRequires: readline-devel
|
2009-03-17 12:42:17 +01:00
|
|
|
%if 0%{?suse_version}
|
2008-09-25 12:54:14 +02:00
|
|
|
%if 0%{?suse_version} > 1020
|
2012-06-26 15:06:11 +02:00
|
|
|
BuildRequires: texlive-devel
|
|
|
|
BuildRequires: texlive-latex
|
2008-09-25 12:54:14 +02:00
|
|
|
%else
|
2012-06-26 15:06:11 +02:00
|
|
|
BuildRequires: te_latex
|
|
|
|
BuildRequires: tetex
|
2008-09-25 12:54:14 +02:00
|
|
|
%endif
|
2009-03-17 12:42:17 +01:00
|
|
|
%endif
|
|
|
|
%if 0%{?mandriva_version}
|
2012-06-26 15:06:11 +02:00
|
|
|
BuildRequires: tetex
|
|
|
|
BuildRequires: tetex-latex
|
2009-03-17 12:42:17 +01:00
|
|
|
%endif
|
2008-09-25 12:54:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2012-06-26 15:06:11 +02:00
|
|
|
%description
|
2008-09-25 12:54:14 +02:00
|
|
|
The primary component is a general purpose circuit simulator. It
|
|
|
|
performs nonlinear dc and transient analyses, fourier analysis, and ac
|
|
|
|
analysis. Spice compatible models for the MOSFET (level 1-7), BJT, and
|
|
|
|
diode are included in this release.
|
|
|
|
|
|
|
|
Gnucap is not based on Spice, but some of the models have been derived
|
|
|
|
from the Berkeley models.
|
|
|
|
|
|
|
|
Unlike Spice, the engine is designed to do true mixed-mode
|
|
|
|
simulation. Most of the code is in place for future support of event
|
|
|
|
driven analog simulation, and true multi-rate simulation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
# use ncurses instead of termcap
|
|
|
|
sed -i 's/-ltermcap/-lncurses/g' configure
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2012-06-26 15:06:11 +02:00
|
|
|
%patch3 -p0
|
|
|
|
%patch4 -p0
|
|
|
|
rm INSTALL
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
%build
|
2012-06-26 15:06:11 +02:00
|
|
|
%configure --docdir=%{_defaultdocdir}/%{name}
|
|
|
|
make %{?_smp_mflags}
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
%install
|
2012-06-26 15:06:11 +02:00
|
|
|
%make_install
|
|
|
|
rm %{buildroot}/%{_defaultdocdir}/%{name}/INSTALL
|
|
|
|
install -Dm644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/gnucap-modelgen.1
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
%clean
|
2012-06-26 15:06:11 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
%files
|
2012-06-26 15:06:11 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|
2008-10-09 00:14:17 +02:00
|
|
|
%{_mandir}/man1/*
|
2008-09-25 12:54:14 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/manual
|
|
|
|
%doc %{_datadir}/%{name}/manual/*
|
2012-06-26 15:06:11 +02:00
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
%dir %{_defaultdocdir}/%{name}/examples
|
|
|
|
%doc %{_defaultdocdir}/%{name}*
|
2008-09-25 12:54:14 +02:00
|
|
|
|
|
|
|
%changelog
|