fixed built with compatmode.h
This commit is contained in:
parent
8a4d7e93b0
commit
319b15a9dc
@ -2,3 +2,4 @@ ngspice-18-1_fc10:EL-5:ngspice-18-1.fc10.src.rpm:1231713953
|
|||||||
ngspice-19-1_fc11:EL-5:ngspice-19-1.fc11.src.rpm:1249833383
|
ngspice-19-1_fc11:EL-5:ngspice-19-1.fc11.src.rpm:1249833383
|
||||||
ngspice-20-1_fc12:EL-5:ngspice-20-1.fc12.src.rpm:1259910513
|
ngspice-20-1_fc12:EL-5:ngspice-20-1.fc12.src.rpm:1259910513
|
||||||
ngspice-20-2_fc12:EL-5:ngspice-20-2.fc12.src.rpm:1260232344
|
ngspice-20-2_fc12:EL-5:ngspice-20-2.fc12.src.rpm:1260232344
|
||||||
|
ngspice-20-3_fc12:EL-5:ngspice-20-3.fc12.src.rpm:1260314383
|
||||||
|
12
ngspice-rework-20-compatmode.h
Normal file
12
ngspice-rework-20-compatmode.h
Normal 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
|
20
ngspice.spec
20
ngspice.spec
@ -1,6 +1,6 @@
|
|||||||
Name: ngspice
|
Name: ngspice
|
||||||
Version: 20
|
Version: 20
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: A mixed level/signal circuit simulator
|
Summary: A mixed level/signal circuit simulator
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -8,6 +8,7 @@ Group: Applications/Engineering
|
|||||||
URL: http://%{name}.sourceforge.net/
|
URL: http://%{name}.sourceforge.net/
|
||||||
|
|
||||||
Source0: http://downloads.sourceforge.net/sourceforge/%{name}/ng-spice-rework-%{version}.tar.gz
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
# Ensuring interoperability with xcircuit via Tcl
|
# Ensuring interoperability with xcircuit via Tcl
|
||||||
@ -70,6 +71,8 @@ code base with many improvements.
|
|||||||
|
|
||||||
%patch0 -p0 -b .xcircuit
|
%patch0 -p0 -b .xcircuit
|
||||||
|
|
||||||
|
cp -p %{SOURCE1} src/include/compatmode.h
|
||||||
|
|
||||||
# make sure the examples are UTF-8...
|
# make sure the examples are UTF-8...
|
||||||
for nonUTF8 in examples/tclspice/tcl-testbench4/selectfromlist.tcl \
|
for nonUTF8 in examples/tclspice/tcl-testbench4/selectfromlist.tcl \
|
||||||
examples/tclspice/tcl-testbench1/testCapa.cir \
|
examples/tclspice/tcl-testbench1/testCapa.cir \
|
||||||
@ -99,10 +102,10 @@ sed -i \
|
|||||||
"s|spice::codemodel ../../src/xspice/icm/spice2poly|spice::codemodel %{_libdir}/tclspice/spice|" \
|
"s|spice::codemodel ../../src/xspice/icm/spice2poly|spice::codemodel %{_libdir}/tclspice/spice|" \
|
||||||
examples/tclspice/tcl-testbench4/tcl-testbench4.tcl
|
examples/tclspice/tcl-testbench4/tcl-testbench4.tcl
|
||||||
|
|
||||||
%{__libtoolize} --force --copy
|
#{__libtoolize} --force --copy
|
||||||
%{__aclocal}
|
#{__aclocal}
|
||||||
%{__automake} --add-missing
|
#{__automake} --add-missing
|
||||||
%{__autoconf}
|
#{__autoconf}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -132,7 +135,11 @@ sed -i "s|\#define NGSPICEDATADIR \"\`echo \$dprefix/share/ngspice\`\"|\#define
|
|||||||
--enable-dot-global \
|
--enable-dot-global \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-ndev \
|
--enable-ndev \
|
||||||
|
%if 0%{?fedora}
|
||||||
--with-tcl=%{_libdir}/tcl8.5/ \
|
--with-tcl=%{_libdir}/tcl8.5/ \
|
||||||
|
%else
|
||||||
|
--with-tcl=%{_libdir}/ \
|
||||||
|
%endif
|
||||||
--libdir=%{_libdir}/tclspice
|
--libdir=%{_libdir}/tclspice
|
||||||
|
|
||||||
%{__make}
|
%{__make}
|
||||||
@ -223,6 +230,9 @@ chmod +x %{buildroot}%{_libdir}/tclspice/spice/*.cm
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Dec 8 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 20-2
|
||||||
- Improved interoperobability with xcircuit
|
- Improved interoperobability with xcircuit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user