forked from pool/gnucap
73 lines
1.9 KiB
RPMSpec
73 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package gnucap
|
|
#
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
|
|
|
|
Name: gnucap
|
|
Summary: Gnucap is the Gnu Circuit Analysis Package
|
|
Version: 0.35
|
|
Release: 10
|
|
License: GPL
|
|
Group: Productivity/Scientific/Electronics
|
|
Url: http://www.geda.seul.org/tools/gnucap
|
|
Vendor: openSUSE-Education
|
|
Source: http://www.gnucap.org/dist/%name-%version.tar.bz2
|
|
Patch1: gnucap-0.35-gcc43.patch
|
|
Patch2: gnucap-0.34-debian.patch
|
|
BuildRequires: gcc-c++ libpng-devel readline-devel
|
|
BuildRequires: ncurses-devel
|
|
%if 0%{?suse_version} > 1020
|
|
BuildRequires: texlive-devel texlive-latex
|
|
%else
|
|
BuildRequires: te_latex tetex
|
|
%endif
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
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
|
|
|
|
%build
|
|
%configure
|
|
%{__make} %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
%makeinstall
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_prefix}/bin/*
|
|
%{_mandir}/*
|
|
%dir %{_datadir}/%{name}
|
|
%dir %{_datadir}/%{name}/doc
|
|
%dir %{_datadir}/%{name}/examples
|
|
%dir %{_datadir}/%{name}/manual
|
|
%doc %{_datadir}/%{name}/doc/*
|
|
%doc %{_datadir}/%{name}/examples/*
|
|
%doc %{_datadir}/%{name}/manual/*
|
|
|
|
%changelog
|