SPECS: spim.spec - updated to 7.2.1 - works but xspim segfaults on...

sparky sparky at pld-linux.org
Wed Feb 1 22:12:59 CET 2006


Author: sparky                       Date: Wed Feb  1 21:12:59 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated to 7.2.1
- works but xspim segfaults on amd64 if compiled with -O greater than 0

---- Files affected:
SPECS:
   spim.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/spim.spec
diff -u SPECS/spim.spec:1.21 SPECS/spim.spec:1.22
--- SPECS/spim.spec:1.21	Tue Mar 15 22:32:16 2005
+++ SPECS/spim.spec	Wed Feb  1 22:12:54 2006
@@ -2,15 +2,14 @@
 Summary:	MIPS simulator
 Summary(pl):	symulator MIPS-a
 Name:		spim
-Version:	7.1
+Version:	7.2.1
 Release:	0.1
 License:	own, incompatibile with GPL
 Group:		Applications/Emulators
 Source0:	http://www.cs.wisc.edu/~larus/SPIM/%{name}.tar.gz
-# Source0-md5:	24546da54bca92d96bf2ea284e81d6eb
+# Source0-md5:	0fe5696659364d38660f5610ef380ad0
 Patch0:		%{name}-dirs.patch
 URL:		http://www.cs.wisc.edu/~larus/spim.html
-BuildRequires:	glibc-static
 BuildRequires:	imake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,34 +39,56 @@
 
 %prep
 %setup -q
-%patch0 -p0
+%patch0 -p1
+ln -sf ../spim/configuration xspim/configuration
 
 %build
-./Configure
+cat << EOF > spim/configuration
+%ifarch %{ix86} %{x8664}
+-DLITTLEENDIAN
+%else
+-DBIGENDIAN
+%endif
+-DUSE_TERMIOS
+EOF
+
+%{__make} -C spim spim \
+	CC="%{__cc} %{rpmcflags}" \
+	LDFLAGS="%{rpmldflags} -lm"
+
+cd xspim
 xmkmf
-%{__make}
-%{__make} xspim
+%{__make} xspim	\
+	CC="%{__cc}" \
+	LD="%{__cc} -nostdlib" \
+	CCOPTIONS="%{rpmcflags}" \
+	EXTRA_LDOPTIONS="%{rpmldflags}"
+cd ..
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/spim
+install -d $RPM_BUILD_ROOT{%{_datadir}/spim,%{_bindir},%{_mandir}/man1}
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+install spim/spim $RPM_BUILD_ROOT%{_bindir}
+install xspim/xspim $RPM_BUILD_ROOT%{_bindir}
+install Documentation/spim.man $RPM_BUILD_ROOT%{_mandir}/man1/spim.1
+install Documentation/xspim.man $RPM_BUILD_ROOT%{_mandir}/man1/xspim.1
+install CPU/exceptions.s $RPM_BUILD_ROOT%{_datadir}/spim
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README Documentation/*.ps
+%doc ChangeLog README VERSION Documentation/SPIM.html
 %attr(755,root,root) %{_bindir}/spim
-%dir %{_datadir}/spim
-%{_datadir}/spim/exceptions.s
+%{_datadir}/spim
+%{_mandir}/man1/spim.1*
 
 %files -n xspim
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/xspim
+%{_mandir}/man1/xspim.1*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -75,6 +96,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2006/02/01 21:12:54  sparky
+- updated to 7.2.1
+- works but xspim segfaults on amd64 if compiled with -O greater than 0
+
 Revision 1.21  2005/03/15 21:32:16  qboosh
 - strict internal dep, BR: imake
 
@@ -107,7 +132,7 @@
 - new %%doc
 
 Revision 1.11  2002/04/05 10:54:38  roman
-s/GNU/GPL in License
+- s/GNU/GPL in License
 
 Revision 1.10  2002/04/02 18:36:15  kloczek
 - removed using %%{__install} macro.
@@ -123,13 +148,13 @@
   Group field using gettext).
 
 Revision 1.6  2002/01/18 02:15:03  kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
 
 Revision 1.5  2001/10/03 09:05:36  qboosh
 - added Source URL
 
 Revision 1.4  2001/07/26 13:46:39  agaran
-just adapterized
+- just adapterized
 
 Revision 1.3  2001/03/17 22:45:57  pawelk
 - improved descriptions and added Url
@@ -138,4 +163,4 @@
 - added gzipping %doc and few cosmetics.
 
 Revision 1.1  2001/03/12 18:07:19  pawelk
-MIPS emulator -- initial release
+- MIPS emulator -- initial release
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/spim.spec?r1=1.21&r2=1.22&f=u



More information about the pld-cvs-commit mailing list