fixed built with compatmode.h

This commit is contained in:
Chitlesh GOORAH 2009-12-08 23:16:44 +00:00
parent 43fab2baf2
commit aeec0a16df
3 changed files with 28 additions and 5 deletions

View File

@ -3,3 +3,4 @@ ngspice-18-2_fc10:HEAD:ngspice-18-2.fc10.src.rpm:1235260319
ngspice-19-1_fc11:HEAD:ngspice-19-1.fc11.src.rpm:1249833090
ngspice-20-1_fc12:F-12:ngspice-20-1.fc12.src.rpm:1259910264
ngspice-20-2_fc12:F-12:ngspice-20-2.fc12.src.rpm:1260231732
ngspice-20-3_fc12:F-12:ngspice-20-3.fc12.src.rpm:1260314128

View File

@ -0,0 +1,12 @@
#ifndef _COMPATMODE_H
#define _COMPATMODE_H
#include <config.h>
typedef enum {
COMPATMODE_NATIVE = 0,
COMPATMODE_HSPICE = 1,
COMPATMODE_SPICE3 = 2
} COMPATMODE_T ;
#endif

View File

@ -1,6 +1,6 @@
Name: ngspice
Version: 20
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A mixed level/signal circuit simulator
License: BSD
@ -8,6 +8,7 @@ Group: Applications/Engineering
URL: http://%{name}.sourceforge.net/
Source0: http://downloads.sourceforge.net/sourceforge/%{name}/ng-spice-rework-%{version}.tar.gz
Source1: ngspice-rework-20-compatmode.h
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Ensuring interoperability with xcircuit via Tcl
@ -70,6 +71,8 @@ code base with many improvements.
%patch0 -p0 -b .xcircuit
cp -p %{SOURCE1} src/include/compatmode.h
# make sure the examples are UTF-8...
for nonUTF8 in examples/tclspice/tcl-testbench4/selectfromlist.tcl \
examples/tclspice/tcl-testbench1/testCapa.cir \
@ -99,10 +102,10 @@ sed -i \
"s|spice::codemodel ../../src/xspice/icm/spice2poly|spice::codemodel %{_libdir}/tclspice/spice|" \
examples/tclspice/tcl-testbench4/tcl-testbench4.tcl
%{__libtoolize} --force --copy
%{__aclocal}
%{__automake} --add-missing
%{__autoconf}
#{__libtoolize} --force --copy
#{__aclocal}
#{__automake} --add-missing
#{__autoconf}
%build
@ -132,7 +135,11 @@ sed -i "s|\#define NGSPICEDATADIR \"\`echo \$dprefix/share/ngspice\`\"|\#define
--enable-dot-global \
--enable-shared \
--enable-ndev \
%if 0%{?fedora}
--with-tcl=%{_libdir}/tcl8.5/ \
%else
--with-tcl=%{_libdir}/ \
%endif
--libdir=%{_libdir}/tclspice
%{__make}
@ -223,6 +230,9 @@ chmod +x %{buildroot}%{_libdir}/tclspice/spice/*.cm
%changelog
* Tue Dec 8 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 20-3
- Fixed build on CentOS-5
* Tue Dec 8 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 20-2
- Improved interoperobability with xcircuit