Summary: Berkeley SPICE 3 Circuit Simulator Name: spice Version: 3f5 Release: %mkrel 15 License: BSD URL: http://www.ibiblio.org/pub/Linux/apps/circuits/ Group: Sciences/Other Source: %{name}%{version}sfix.tar.bz2 Patch0: %name-linux.conf.patch Patch1: %name-3.5.5-gcc-4.1.patch Buildrequires: libtermcap-devel BuildRequires: libxt-devel BuildRequires: libxaw-devel Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description SPICE 3 is a general-purpose circuit simulation program for nonlinear dc, nonlinear transient, and linear ac analyses. Circuits may contain resistors, capacitors, inductors, mutual inductors, independent voltage and current sources, four types of dependent sources, transmission lines, and the four most common semiconductor devices: diodes, BJT's, JFET's, and MOSFET's. This version includes support for the Bsim3 model (V3.1) %prep rm -rf %{buildroot} %setup -q -n %{name}%{version}sfix %patch0 -p1 -b .linux-conf %patch1 -p1 -b .gcc41 %build ./util/build linux gcc # install has to be done by hand, because we are not assured # that the builder has root privileges - things would be easier # if spice had autoconf! %install install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir}/%{name}/scripts install -d %{buildroot}%{_datadir}/%{name}/helpdir install -d %{buildroot}%{_mandir}/man1 install -s obj/bin/spice3 %{buildroot}%{_bindir} ln -s /usr/bin/spice3 %{buildroot}%{_bindir}/spice install -s obj/bin/help %{buildroot}%{_bindir} install -s obj/bin/nutmeg %{buildroot}%{_bindir} install -s obj/bin/sconvert %{buildroot}%{_bindir} install -s obj/bin/multidec %{buildroot}%{_bindir} install -s obj/bin/proc2mod %{buildroot}%{_bindir} rm lib/make* cp -r lib/* %{buildroot}%{_datadir}/%{name} obj/bin/makeidx %{buildroot}%{_datadir}/%{name}/helpdir/spice.txt install -m 644 man/man1/* %{buildroot}%{_mandir}/man1 chmod 644 3f5patches/README* %clean rm -rf %{buildroot} %files %defattr(-,root,root,0755) %doc readme readme.Linux notes/spice2 %doc 3f5patches/README* %{_datadir}/%{name} %{_bindir}/* %{_mandir}/man1/* %changelog * Mon Sep 28 2009 Frederic Crozat <fcrozat@mandriva.com> 3f5-15mdv2010.0 + Revision: 450492 - Fix fuzziness in patch0 + Thierry Vignaud <tvignaud@mandriva.com> - rebuild * Sat Aug 02 2008 Thierry Vignaud <tvignaud@mandriva.com> 3f5-13mdv2009.0 + Revision: 260949 - rebuild * Tue Jul 29 2008 Thierry Vignaud <tvignaud@mandriva.com> 3f5-12mdv2009.0 + Revision: 252946 - rebuild * Sun Feb 17 2008 Adam Williamson <awilliamson@mandriva.org> 3f5-10mdv2008.1 + Revision: 169555 - build the help index inside buildroot after installing, not inside the source prior to installing, to fix #37787 (help command looks for index in the source directory and fails) - install misc. stuff to datadir not libdir, it's all static data - spec clean * Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 3f5-9mdv2008.1 + Revision: 140850 - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Mon Jan 08 2007 Pascal Terjan <pterjan@mandriva.org> 3f5-9mdv2007.0 + Revision: 105393 - BuildRequires libxaw-devel - BuildRequires libxt-devel - fix X11 includes path - fix lib64 - add patch for gcc 4.1 from gentoo - mkrel - silence setup - Import spice * Thu Jun 24 2004 Lenny Cartier <lenny@mandrakesoft.com> 3f5-8mdk - rebuild