[svn] r3084 - in trunk/rpms: . BasiliskII SheepShaver cxmon

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Sat Apr 2 21:00:37 CEST 2005


Author: thias
Date: 2005-04-02 21:00:35 +0200 (Sat, 02 Apr 2005)
New Revision: 3084

Added:
   trunk/rpms/BasiliskII/BasiliskII.png
   trunk/rpms/SheepShaver/
   trunk/rpms/SheepShaver/SheepShaver-2.2-misc.patch
   trunk/rpms/SheepShaver/SheepShaver-2.2-stats.patch
   trunk/rpms/SheepShaver/SheepShaver.png
   trunk/rpms/SheepShaver/SheepShaver.spec
   trunk/rpms/cxmon/
   trunk/rpms/cxmon/cxmon.spec
Modified:
   trunk/rpms/BasiliskII/BasiliskII.spec
Log:
Add cxmon 3.1, SheepShaver 2.2 20050315 and update BasiliskII to 20050322.


Added: trunk/rpms/BasiliskII/BasiliskII.png
===================================================================
(Binary files differ)


Property changes on: trunk/rpms/BasiliskII/BasiliskII.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/rpms/BasiliskII/BasiliskII.spec
===================================================================
--- trunk/rpms/BasiliskII/BasiliskII.spec	2005-04-02 16:51:37 UTC (rev 3083)
+++ trunk/rpms/BasiliskII/BasiliskII.spec	2005-04-02 19:00:35 UTC (rev 3084)
@@ -1,11 +1,14 @@
 # $Id$
 # Authority: dag
 
-%define date 20041109
-%define inv_date 09112004
+%define date 20050322
+%define inv_date 22032005
+%define mon_version 3.1
+%define desktop_vendor rpmforge
 
 %{?dist: %{expand: %%define %dist 1}}
 %{!?dist:%define _with_banks 1}
+%{?fc4:  %define _with_banks 1}
 %{?el4:  %define _with_banks 1}
 %{?fc3:  %define _with_banks 1}
 
@@ -17,11 +20,14 @@
 Group: Applications/Emulators
 URL: http://gwenole.beauchesne.online.fr/basilisk2/
 
-Source: http://gwenole.beauchesne.online.fr/basilisk2/files/BasiliskII_src_%{inv_date}.tar.bz2
+Source0: http://gwenole.beauchesne.online.fr/basilisk2/files/BasiliskII_src_%{inv_date}.tar.bz2
+Source1: http://wwwthep.physik.uni-mainz.de/~cbauer/cxmon-%{mon_version}.tar.gz
+Source2: BasiliskII.png
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 
-BuildRequires: gtk+-devel >= 1.2, esound-devel >= 0.2.8, gcc-c++
-BuildRequires: SDL-devel
+BuildRequires: gcc-c++, gtk+-devel >= 1.2, esound-devel >= 0.2.8
+BuildRequires: desktop-file-utils, readline-devel
+#BuildRequires: SDL-devel
 
 %description
 Basilisk II is an Open Source 68k Macintosh emulator. That is, it enables
@@ -29,39 +35,77 @@
 different operating system. However, you still need a copy of MacOS and
 a Macintosh ROM image to use Basilisk II.
 
+
 %prep
-%setup
+%setup -a 1
 
+
 %build
 pushd src/Unix
 %configure \
     --datadir=%{_sysconfdir} \
     %{?_with_banks:--enable-addressing="banks"} \
-    %{!?_with_banks:--enable-jit-compiler}
+    %{!?_with_banks:--enable-jit-compiler} \
+    %{!?_without_mon: --with-mon=../../cxmon-%{mon_version}/src}
 #   --enable-sdl-video \
-#   --enable-sdl-audio \
+#   --enable-sdl-audio
 %{__make} %{?_smp_mflags}
 popd
 
+
 %install
 %{__rm} -rf %{buildroot}
 %makeinstall -C src/Unix \
     datadir="%{buildroot}%{_sysconfdir}"
 
+# Create the system menu entry
+%{__cat} > %{name}.desktop << EOF
+[Desktop Entry]
+Name=Basilisk II
+Comment=68k Macintosh Emulator
+Exec=BasiliskII
+Icon=BasiliskII.png
+Terminal=false
+Type=Application
+Categories=Application;Utility;
+Encoding=UTF-8
+EOF
+
+%{__mkdir_p} %{buildroot}%{_datadir}/applications
+desktop-file-install --vendor %{desktop_vendor} \
+    --dir %{buildroot}%{_datadir}/applications \
+    %{name}.desktop
+
+%{__install} -D -p -m 0644 %{SOURCE2} \
+    %{buildroot}%{_datadir}/pixmaps/BasiliskII.png
+
+
 %clean
 %{__rm} -rf %{buildroot}
 
+
 %files
 %defattr(-, root, root, 0755)
-%doc ChangeLog COPYING INSTALL README TECH TODO
+%doc ChangeLog COPYING README TECH TODO
 %dir %{_sysconfdir}/BasiliskII/
 %config %{_sysconfdir}/BasiliskII/fbdevices
 %config %{_sysconfdir}/BasiliskII/keycodes
 %config %{_sysconfdir}/BasiliskII/tunconfig
-%{_bindir}/*
-%{_mandir}/man1/*
+%{_bindir}/BasiliskII
+%{_datadir}/pixmaps/BasiliskII.png
+%{_datadir}/applications/%{desktop_vendor}-%{name}.desktop
+%{_mandir}/man1/BasiliskII.1*
 
+
 %changelog
+* Fri Apr  1 2005 Matthias Saou <http://freshrpms.net/> 1.0-0.20050322
+- Update to latest snapshot.
+- Add a menu entry.
+- Addressing of "banks" type is still required.
+- SDL still doesn't display properly.
+- Add cxmon support, can be disabled with --without mon.
+- Add readline-devel build dependency.
+
 * Mon Dec 13 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.20041109
 - Update to latest BasilikII JIT snapshot.
 - Override datadir to sysconfdir as it makes more sense to have configuration

Added: trunk/rpms/SheepShaver/SheepShaver-2.2-misc.patch
===================================================================
--- trunk/rpms/SheepShaver/SheepShaver-2.2-misc.patch	2005-04-02 16:51:37 UTC (rev 3083)
+++ trunk/rpms/SheepShaver/SheepShaver-2.2-misc.patch	2005-04-02 19:00:35 UTC (rev 3084)
@@ -0,0 +1,11 @@
+--- SheepShaver-2.2/src/Unix/Linux/ether_linux.cpp.misc	2004-05-14 18:31:28.000000000 +0200
++++ SheepShaver-2.2/src/Unix/Linux/ether_linux.cpp	2004-05-14 18:58:40.000000000 +0200
+@@ -427,7 +427,7 @@ void EtherIRQ(void)
+ 	uint8 packet[1516];
+ 	for (;;) {
+ 
+-		if (net_if_type != NET_IF_SHEEPNET) {
++		if (1) {
+ 
+ 			// Read packet from ethertap device
+ 			ssize_t size = read(fd, packet, net_if_type == NET_IF_ETHERTAP ? 1516 : 1514);

Added: trunk/rpms/SheepShaver/SheepShaver-2.2-stats.patch
===================================================================
--- trunk/rpms/SheepShaver/SheepShaver-2.2-stats.patch	2005-04-02 16:51:37 UTC (rev 3083)
+++ trunk/rpms/SheepShaver/SheepShaver-2.2-stats.patch	2005-04-02 19:00:35 UTC (rev 3084)
@@ -0,0 +1,13 @@
+--- SheepShaver-2.2/src/Unix/sysdeps.h.stats	2003-12-01 14:50:17.000000000 +0100
++++ SheepShaver-2.2/src/Unix/sysdeps.h	2003-12-01 14:58:08.000000000 +0100
+@@ -81,8 +81,8 @@
+ #define PPC_CHECK_INTERRUPTS (ASYNC_IRQ ? 0 : 1)
+ #define PPC_DECODE_CACHE 1
+ #define PPC_FLIGHT_RECORDER 1
+-#define PPC_PROFILE_COMPILE_TIME 0
+-#define PPC_PROFILE_GENERIC_CALLS 0
++#define PPC_PROFILE_COMPILE_TIME 1
++#define PPC_PROFILE_GENERIC_CALLS 1
+ #define KPX_MAX_CPUS 1
+ #else
+ // Mac ROM is write protected

Added: trunk/rpms/SheepShaver/SheepShaver.png
===================================================================
(Binary files differ)


Property changes on: trunk/rpms/SheepShaver/SheepShaver.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/rpms/SheepShaver/SheepShaver.spec
===================================================================
--- trunk/rpms/SheepShaver/SheepShaver.spec	2005-04-02 16:51:37 UTC (rev 3083)
+++ trunk/rpms/SheepShaver/SheepShaver.spec	2005-04-02 19:00:35 UTC (rev 3084)
@@ -0,0 +1,103 @@
+# $Id$
+# Authority: matthias
+
+%define date 20050315
+%define mon_version 3.1
+%define desktop_vendor rpmforge
+
+Summary: Power Macintosh emulator
+Name: SheepShaver
+Version: 2.2
+Release: 0.%{date}
+License: GPL
+Group: Applications/Emulators
+URL: http://gwenole.beauchesne.free.fr/sheepshaver/
+Source0: http://gwenole.beauchesne.free.fr/sheepshaver/files/SheepShaver-%{version}-%{date}.tar.bz2
+Source1: http://wwwthep.physik.uni-mainz.de/~cbauer/cxmon-%{mon_version}.tar.gz
+Source2: SheepShaver.png
+Patch0: SheepShaver-2.2-misc.patch
+Patch1: SheepShaver-2.2-stats.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: gcc-c++, gtk+-devel >= 1.2, esound-devel >= 0.2.8
+BuildRequires: desktop-file-utils, readline-devel
+#BuildRequires: SDL-devel
+# Other archs need an instruction skipper on well-known invalid
+# memory references (e.g. illegal writes to ROM).
+ExclusiveArch: %{ix86} ppc x86_64
+
+%description
+SheepShaver is a MacOS run-time environment that allows you to run classic
+MacOS applications. This means that both Linux and MacOS applications can
+run at the same time (usually in a window on the Linux desktop).
+
+If you are using a PowerPC-based system, applications will run at native
+speed (i.e. with no emulation involved). There is also a built-in PowerPC
+G4 emulator, without MMU support, for non-PowerPC systems.
+
+
+%prep
+%setup -a 1
+%patch0 -p1 -b .misc
+%patch1 -p1 -b .stats
+
+
+%build
+pushd src/Unix
+%configure \
+    --datadir=%{_sysconfdir} \
+    %{!?_without_mon: --with-mon=../../cxmon-%{mon_version}/src}
+#   --enable-sdl-video \
+#   --enable-sdl-audio
+%{__make} %{?_smp_mflags}
+popd
+
+
+%install
+%{__rm} -rf %{buildroot}
+%makeinstall -C src/Unix \
+    datadir="%{buildroot}%{_sysconfdir}"
+
+# Create the system menu entry
+%{__cat} > %{name}.desktop << EOF
+[Desktop Entry]
+Name=Sheep Shaver
+Comment=Power Macintosh Emulator
+Exec=SheepShaver
+Icon=SheepShaver.png
+Terminal=false
+Type=Application
+Categories=Application;Utility;
+Encoding=UTF-8
+EOF
+
+%{__mkdir_p} %{buildroot}%{_datadir}/applications
+desktop-file-install --vendor %{desktop_vendor} \
+    --dir %{buildroot}%{_datadir}/applications \
+    %{name}.desktop
+
+%{__install} -D -p -m 0644 %{SOURCE2} \
+    %{buildroot}%{_datadir}/pixmaps/SheepShaver.png
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc COPYING NEWS doc/Linux/*
+%dir %{_sysconfdir}/SheepShaver/
+%{_sysconfdir}/SheepShaver/keycodes
+%{_sysconfdir}/SheepShaver/tunconfig
+%{_bindir}/SheepShaver
+%{_datadir}/pixmaps/SheepShaver.png
+%{_datadir}/applications/%{desktop_vendor}-%{name}.desktop
+%{_mandir}/man1/SheepShaver.1*
+
+
+%changelog
+* Sat Apr 21 2005 Matthias Saou <http://freshrpms.net/> 2.2-0.20050315
+- Spec file cleanup, based on the .src.rpm from the SheepShaver website.
+- Make cxmon support optionnal with --without mon.
+- Add menu entry.
+


Property changes on: trunk/rpms/SheepShaver/SheepShaver.spec
___________________________________________________________________
Name: svn:keywords
   + Id

Added: trunk/rpms/cxmon/cxmon.spec
===================================================================
--- trunk/rpms/cxmon/cxmon.spec	2005-04-02 16:51:37 UTC (rev 3083)
+++ trunk/rpms/cxmon/cxmon.spec	2005-04-02 19:00:35 UTC (rev 3084)
@@ -0,0 +1,52 @@
+# $Id$
+# Authority: matthias
+
+Summary: Command-line file manipulation tool and disassembler
+Name: cxmon
+Version: 3.1
+Release: 1
+License: GPL
+Group: Applications/File
+URL: http://www.uni-mainz.de/~bauec002/CXMain.html
+Source: http://wwwthep.physik.uni-mainz.de/~cbauer/cxmon-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires: gcc-c++, ncurses-devel, readline-devel
+
+%description
+cxmon is an interactive command-driven file manipulation tool that is
+inspired by the "Amiga Monitor" by Timo Rossi. It has commands and features
+similar to a machine code monitor/debugger, but it lacks any functions for
+running/tracing code. There are, however, built-in PowerPC, 680x0, 80x86,
+x86-64, 6502 and Z80 disassemblers and special support for disassembling
+MacOS code.
+
+
+%prep
+%setup
+
+
+%build
+%configure
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%makeinstall
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc AUTHORS COPYING ChangeLog README
+%{_bindir}/cxmon
+%{_mandir}/man1/cxmon.1*
+
+
+%changelog
+* Sat Apr  2 2005 Matthias Saou <http://freshrpms.net/> 3.1-1
+- Initial RPM release.
+


Property changes on: trunk/rpms/cxmon/cxmon.spec
___________________________________________________________________
Name: svn:keywords
   + Id

_______________________________________________
svn-commits mailing list
svn-commits at lists.rpmforge.net
http://lists.rpmforge.net/mailman/listinfo/svn-commits



More information about the commits mailing list