%define name tclspice %define version 0.2.11 %define release 2mdk %define prefix /usr Summary: TclSpice is an improved version of Berkeley Spice designed to be used with the Tcl/Tk scripting language. Name: %name Version: %version Release: %release License: BSD URL: http://tclspice.sourceforge.net/ Group: Sciences/Other Source: %{name}-%{version}.tar.bz2 Source1: %{name}.16.xpm.bz2 Source2: %{name}.32.xpm.bz2 Source3: %{name}.48.xpm.bz2 Buildroot: %{_tmppath}/%{name}-buildroot Packager: Torbjorn Turpeinen Distribution: Mandrake 9.1 #Requires: BuildRequires: libtermcap2-devel tcl >= 8.4.2 tclx >= 8.4.2 blt >= 2.4z libblt2-devel >= 2.4z BuildRequires: glibc-static-devel XFree86-static-libs Requires: tcl >= 8.4.2 tclx >= 8.4.2 blt >= 2.4z libblt2 >= 2.4z %description TclSpice is an improved version of Berkeley Spice designed to be used with the Tcl/Tk scripting language. *Fully Tcl scriptable - installs with 'package require spice' statement *Hspice syntax (SpicePP). *GUI interfaces, various (Tk). + SpiceWish (BLT graph widget) *BLT (tcl compatible) vectors for storage, manipulation and arithmetic upon Spice waveforms. *Xspice additions (Georgia Tech). *Trigger upon waveform events. * Spice 'simulator state' save and restore for rapid 'what-if' simulations (no longer need to re-simulate from the beginning each time a device value is changed). %prep rm -rf $RPM_BUILD_ROOT %setup -n %{name} %build #CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \ %configure --enable-tcl --enable-experimental --disable-debug \ --enable-nobypass --enable-predictor \ --enable-intnoice --disable-debug --enable-ansi --with-x \ #--enable-spice2 --enable-xspice --enable-ekv %make tcl %install %makeinstall install-tcl # Mandrake Menu entry mkdir -p $RPM_BUILD_ROOT%{_menudir} cat < $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): \ needs="x11" \ section="Applications/Sciences/Other" \ title="SpiceWish" \ longtitle="SpiceWish" \ command="/usr/bin/spicewish" needs="X11" \ icon="%{name}.xpm" EOF mkdir -p $RPM_BUILD_ROOT%{_menudir} cat < $RPM_BUILD_ROOT%{_menudir}/%{name} ?package(%{name}): \ needs="x11" \ section="Applications/Sciences/Other" \ title="tclspice-help" \ longtitle="tclspice-help" \ command="/usr/bin/nghelp" needs="X11" \ icon="%{name}.xpm" EOF mkdir -p $RPM_BUILD_ROOT%{_miconsdir} $RPM_BUILD_ROOT%{_liconsdir} $RPM_BUILD_ROOT%{_iconsdir} bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_miconsdir}/%{name}.xpm bzcat %{SOURCE2} > $RPM_BUILD_ROOT%{_iconsdir}/%{name}.xpm bzcat %{SOURCE3} > $RPM_BUILD_ROOT%{_liconsdir}/%{name}.xpm %post %{update_menus} %postun %{clean_menus} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,0755) %doc README NOTES NEWS FAQ INSTALL ChangeLog AUTHORS BUGS %doc doc %_libdir/ng-spice-rework %_libdir/lib* %_bindir/* %{_datadir}/ng-spice-rework %_mandir/man1/* %{_infodir}/*.bz2 %{_iconsdir}/%{name}.* %{_miconsdir}/%{name}.* %{_liconsdir}/%{name}.* %{_menudir}/* %changelog * Mon Jun 30 2003 Torbjorn Turpeinen 0.2.11-1mdk - Compiled for Mandrake9.1 # end of file