auto-import ngspice-17-6 on branch devel from ngspice-17-6.src.rpm
This commit is contained in:
parent
2ab3d90ff6
commit
7a8a8a0a74
21
ngspice-rework-17-spinit.patch
Normal file
21
ngspice-rework-17-spinit.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- src/spinit.in 2005-05-10 23:52:58.000000000 +0200
|
||||
+++ spinit.in 2006-09-19 21:35:14.000000000 +0200
|
||||
@@ -10,13 +10,13 @@
|
||||
|
||||
* For SPICE2 POLYs, edit the below line to point to the location
|
||||
* of your codemode.
|
||||
-@XSPICEINIT@ codemodel @prefix@/lib/spice/spice2poly.cm
|
||||
+@XSPICEINIT@ codemodel @prefix@/lib64/spice/spice2poly.cm
|
||||
|
||||
* The other codemodels
|
||||
-@XSPICEINIT@ codemodel @prefix@/lib/spice/analog.cm
|
||||
-@XSPICEINIT@ codemodel @prefix@/lib/spice/digital.cm
|
||||
-@XSPICEINIT@ codemodel @prefix@/lib/spice/xtradev.cm
|
||||
-@XSPICEINIT@ codemodel @prefix@/lib/spice/xtraevt.cm
|
||||
+@XSPICEINIT@ codemodel @prefix@/lib64/spice/analog.cm
|
||||
+@XSPICEINIT@ codemodel @prefix@/lib64/spice/digital.cm
|
||||
+@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtradev.cm
|
||||
+@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtraevt.cm
|
||||
|
||||
end
|
||||
unset __flag
|
39
ngspice.spec
39
ngspice.spec
@ -1,6 +1,6 @@
|
||||
Name: ngspice
|
||||
Version: 17
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: A mixed level/signal circuit simulator
|
||||
|
||||
License: BSD
|
||||
@ -10,6 +10,8 @@ URL: http://%{name}.sourceforge.net/
|
||||
Source0: http://ovh.dl.sourceforge.net/sourceforge/%{name}/ng-spice-rework-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Patch0: ngspice-rework-17-spinit.patch
|
||||
|
||||
BuildRequires: readline-devel, libXext-devel, libpng-devel, libICE-devel
|
||||
BuildRequires: libXaw-devel, mesa-libGL-devel, libXt-devel
|
||||
|
||||
@ -49,6 +51,17 @@ and info format.
|
||||
%setup -q -n ng-spice-rework-%{version}
|
||||
|
||||
%build
|
||||
%ifarch x86_64 sparc64 ppc64 amd64
|
||||
%{__cp} -p src/spinit.in src/spinit.in.ngspice
|
||||
cat src/spinit.in.ngspice | \
|
||||
sed -e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/spice2poly.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/spice2poly.cm|\
|
||||
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/analog.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/analog.cm| \
|
||||
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/digital.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/digital.cm|\
|
||||
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/xtradev.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtradev.cm|\
|
||||
-e 's|@XSPICEINIT@ codemodel @prefix@/lib/spice/xtraevt.cm|@XSPICEINIT@ codemodel @prefix@/lib64/spice/xtraevt.cm|\
|
||||
> src/spinit.in
|
||||
%endif
|
||||
|
||||
%configure \
|
||||
--enable-cider \
|
||||
--enable-dot-global \
|
||||
@ -57,7 +70,10 @@ and info format.
|
||||
--enable-xgraph \
|
||||
--enable-xspice \
|
||||
--with-x=yes \
|
||||
--with-readline=yes
|
||||
--with-readline=yes \
|
||||
%ifarch x86_64 sparc64 ppc64 amd64
|
||||
--enable-libsuffix=64 \
|
||||
%endif
|
||||
|
||||
# make in xgraph with another flag first so
|
||||
# that we can correctly use Fedora compiler flags.
|
||||
@ -73,7 +89,7 @@ chmod 644 src/xspice/*/*.{c,h,l,y}
|
||||
chmod 644 src/frontend/*.{c,h}
|
||||
chmod 644 src/include/*.h
|
||||
|
||||
make install DESTDIR=%{buildroot}
|
||||
%{__make} install DESTDIR=%{buildroot}
|
||||
%{__rm} -f doc/Makefile*
|
||||
%{__rm} -f doc/ngspice.info*
|
||||
|
||||
@ -81,7 +97,7 @@ chmod +x %{buildroot}%{_libdir}/spice/{xtraevt.cm,xtradev.cm,analog.cm,spice2pol
|
||||
rm -f %{buildroot}%{_libdir}/ng-spice-rework/libbsim4.a
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post doc
|
||||
/sbin/install-info --quiet --info-dir=%{_infodir}/dir %{_infodir}/%{name}.info.gz >/dev/null 2>&1
|
||||
@ -104,15 +120,9 @@ fi
|
||||
%{_bindir}/ngsconvert
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/xgraph
|
||||
%dir %{_datadir}/ng-spice-rework
|
||||
%{_datadir}/ng-spice-rework/helpdir
|
||||
%{_datadir}/ng-spice-rework/scripts
|
||||
%dir %{_libdir}/spice/
|
||||
%{_libdir}/spice/analog.cm
|
||||
%{_libdir}/spice/digital.cm
|
||||
%{_libdir}/spice/spice2poly.cm
|
||||
%{_libdir}/spice/xtradev.cm
|
||||
%{_libdir}/spice/xtraevt.cm
|
||||
%{_datadir}/ng-spice-rework
|
||||
%{_libdir}/spice/
|
||||
|
||||
|
||||
|
||||
%files doc
|
||||
@ -126,6 +136,9 @@ fi
|
||||
|
||||
|
||||
%Changelog
|
||||
* Thu Oct 12 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> 17-6
|
||||
- Testing on 64 bit arch
|
||||
|
||||
* Mon Sep 04 2006 Chitlesh Goorah <chitlesh@fedoraproject.org> 17-5
|
||||
- Added libXt-devel to include X headers
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user