]>
Commit | Line | Data |
---|---|---|
c3c0999f | 1 | Summary: Berkeley SPICE 3 Circuit Simulator |
0d379e82 ER |
2 | Summary(es.UTF-8): SPICE simulador de circuitos |
3 | Summary(pl.UTF-8): Symulator układów elektronicznych Berkeley SPICE 3 | |
4 | Summary(pt_BR.UTF-8): SPICE simulador de circuitos | |
c3c0999f | 5 | Name: spice |
b4ecfc82 | 6 | Version: 3f5sfix |
0d213ae7 | 7 | Release: 7 |
c3c0999f JB |
8 | License: BSD |
9 | Group: Applications/Math | |
177fc76d | 10 | Source0: http://www.ibiblio.org/pub/Linux/apps/circuits/%{name}%{version}.tar.gz |
250408e8 | 11 | # Source0-md5: b4a86690d2d56db3045a27ff75245356 |
c3a0365a | 12 | Patch0: %{name}-gcc-4.1.patch |
7f0d36ab JB |
13 | BuildRequires: ncurses-devel |
14 | BuildRequires: readline-devel | |
c3a0365a MB |
15 | BuildRequires: xorg-lib-libX11-devel |
16 | BuildRequires: xorg-lib-libXaw-devel | |
c3c0999f | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
93a77ebd | 18 | |
010dd17a | 19 | # /usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character |
010dd17a | 20 | %define _enable_debug_packages 0 |
010dd17a | 21 | |
93a77ebd | 22 | %description |
23 | SPICE 3 is a general-purpose circuit simulation program for nonlinear | |
c3c0999f | 24 | dc, nonlinear transient, and linear ac analyses. Circuits may contain |
93a77ebd | 25 | resistors, capacitors, inductors, mutual inductors, independent |
26 | voltage and current sources, four types of dependent sources, | |
27 | transmission lines, and the four most common semiconductor devices: | |
28 | diodes, BJT's, JFET's, and MOSFET's. | |
29 | ||
c3c0999f JB |
30 | This is Spice 3f4 patched to 3f5, and includes the new port patches |
31 | for Linux, including GNU Lib C support, GNU Readline command-line | |
32 | editing and history file support, and native Spice support for X11R6 | |
33 | and MFB. | |
34 | ||
c6b0798c JR |
35 | %description -l es.UTF-8 |
36 | SPICE es un programa de propósito general para simulación de circuitos | |
37 | para dc no linear, transiente no linear y análisis de ac linear. Los | |
c3c0999f JB |
38 | circuitos pueden contener resistores, capacitores, inductores, |
39 | inductores mutuos, fuentes independientes de voltaje, cuatro tipos de | |
c6b0798c JR |
40 | fuentes dependientes, líneas de transmisión y cuatro de los |
41 | dispositivos semiconductores más comunes: diodos, BJTs, JFETs y | |
c3c0999f JB |
42 | MOSFETs. |
43 | ||
c6b0798c JR |
44 | %description -l pl.UTF-8 |
45 | SPICE 3 to ogólnego przeznaczenia symulator układów elektronicznych do | |
46 | analizy nieliniowej prądu stałego i liniowej prądu zmiennego. Obwody | |
47 | mogą zawierać rezystory, kondensatory, cewki, niezależne źródła | |
48 | napięciowe i prądowe, cztery rodzaje zależnych źródeł, linie | |
49 | transmisyjne, cztery najbardziej popularne rodzaje półprzewodników: | |
c3c0999f | 50 | diody, BJT, JFET i MOSFET. |
93a77ebd | 51 | |
c6b0798c JR |
52 | %description -l pt_BR.UTF-8 |
53 | SPICE é um programa de propósito geral para simulação de circuitos | |
54 | para dc não linear, transiente não linear e análises de ac linear. | |
c3c0999f | 55 | Circuitos podem conter resistores, capacitores, indutores, indutores |
c6b0798c JR |
56 | mútuos, fontes independentes de voltagem, quatro tipos de fontes |
57 | dependentes, linhas de transmissão e quatro dos dispositivos | |
93a77ebd | 58 | semicondutores mais comuns: diodos, BJTs, JFETs e MOSFETs. |
59 | ||
93a77ebd | 60 | %package examples |
c3c0999f | 61 | Summary: Berkeley SPICE 3 Example Files |
0d379e82 ER |
62 | Summary(es.UTF-8): Archivos con ejemplos para SPICE 3 de Berkeley |
63 | Summary(pl.UTF-8): Przykładowe pliki do Berkeley SPICE 3 | |
64 | Summary(pt_BR.UTF-8): Arquivos com exemplos para o SPICE 3 de Berkeley | |
c3c0999f | 65 | Group: Applications/Math |
7f0d36ab | 66 | Requires: %{name} = %{version}-%{release} |
93a77ebd | 67 | |
68 | %description examples | |
69 | These are SPICE 3 example files for use with Berkeley SPICE 3. | |
70 | ||
c6b0798c | 71 | %description examples -l es.UTF-8 |
c3c0999f | 72 | Archivos con ejemplos para SPICE 3 de Berkeley. |
93a77ebd | 73 | |
c6b0798c JR |
74 | %description examples -l pl.UTF-8 |
75 | Pakiet zawiera przykładowe pliki do Berkeley SPICE 3. | |
c3c0999f | 76 | |
c6b0798c | 77 | %description examples -l pt_BR.UTF-8 |
c3c0999f | 78 | Arquivos com exemplos para o SPICE 3 de Berkeley. |
93a77ebd | 79 | |
4c2a82e7 | 80 | %prep |
b4ecfc82 | 81 | %setup -q -n %{name}%{version} |
c3a0365a | 82 | %patch0 -p1 |
93a77ebd | 83 | |
84 | %build | |
b4ecfc82 | 85 | ./util/build linux \ |
c3a0365a | 86 | CC_OPT="-I/usr/include/X11/ -I/usr/include/X11/Xaw/ %{rpmcflags}" \ |
a7cc7182 | 87 | LDFLAGS="-ltinfo -lm %{rpmldflags}" \ |
b4ecfc82 | 88 | S_SPICE_EXEC_DIR="%{_libdir}/spice/" \ |
7f0d36ab | 89 | S_SPICE_LIB_DIR="%{_datadir}/spice/" \ |
1ba9893f | 90 | LIBX="-lXaw -lX11 -lXt" |
93a77ebd | 91 | |
92 | %install | |
c3c0999f | 93 | rm -rf $RPM_BUILD_ROOT |
b4ecfc82 JK |
94 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/spice,%{_datadir}/spice/{scripts,helpdir},%{_mandir}/man1} |
95 | ||
96 | install obj/bin/{nutmeg,sconvert,spice3} $RPM_BUILD_ROOT%{_bindir} | |
97 | install obj/bin/{help,makeidx,multidec,proc2mod} $RPM_BUILD_ROOT%{_libdir}/spice | |
98 | ln -s spice3 $RPM_BUILD_ROOT%{_bindir}/spice | |
99 | ||
100 | install lib/{mfbcap,news} $RPM_BUILD_ROOT%{_datadir}/spice/ | |
101 | install lib/helpdir/* $RPM_BUILD_ROOT%{_datadir}/spice/helpdir | |
102 | install lib/scripts/* $RPM_BUILD_ROOT%{_datadir}/spice/scripts | |
103 | ||
104 | install man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
105 | ||
106 | echo ".so spice.1" > $RPM_BUILD_ROOT%{_mandir}/man1/spice3.1 | |
107 | ||
c3c0999f JB |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
93a77ebd | 111 | %files |
c3c0999f | 112 | %defattr(644,root,root,755) |
501565c5 | 113 | %doc readme readme.Linux Linux.changes notes/{spice2,internal} |
114 | %doc 3f5patches/README* | |
c3a0365a | 115 | %attr(755,root,root) %{_bindir}/* |
8bd75ba8 | 116 | %dir %{_libdir}/spice |
c3a0365a | 117 | %attr(755,root,root) %{_libdir}/spice/* |
8bd75ba8 | 118 | %{_datadir}/spice |
b4ecfc82 | 119 | %{_mandir}/man1/* |