-Summary: A software emulation of the Aplle Macintosh
-Summary(pl): Programowy emulator Maca
-Name: BasiliskII
-Version: 0.6
-Release: 1
-URL: http://www.uni-mainz.de/~bauec002/B2Main.html
-Source: BasiliskII_src_120799.tar.gz
-Copyright: GPL
-Group: Applications/Emulators
-Group(pl): Aplikacje/Emulatory
-Vendor: PLD
-Packager: Roman Niewiarowski <newrom@pasjo.net.pl>
-BuildRoot: /tmp/%{name}-%{version}-root
+Summary: A software emulation of the Apple Macintosh
+Summary(pl.UTF-8): Programowy emulator komputera Macintosh
+Name: BasiliskII
+Version: 0.9
+Release: 7
+License: GPL
+Group: Applications/Emulators
+Source0: http://iphcip1.physik.uni-mainz.de/~cbauer/%{name}_src_31052001.tar.gz
+# Source0-md5: 5017e21226c27a4a029da0486dcf04e1
+Source1: %{name}.desktop
+Source2: AppleX.png
+Patch0: %{name}-devices.patch
+Patch1: %{name}-acfix.patch
+URL: http://www.uni-mainz.de/~bauec002/B2Main.html
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libstdc++-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-BasiliskII is a software emulation of Aple Macintosh system
-hardware, which enables you to run most available Mac software. Since
-it is a software emulation, no extra or special hardware is needed.
-BasiliskII can be run with MacOS 7.X or 8.X (but 7.0.0 is not recommended)
-ROM file are not included in this archive, You need a really mac 68k
+BasiliskII is a software emulation of Apple Macintosh system hardware,
+which enables you to run most available Mac software. Since it is a
+software emulation, no extra or special hardware is needed. BasiliskII
+can be run with MacOS 7.X or 8.X (but 7.0.0 is not recommended) ROM
+files are not included in this archive, You need a real mac 68k
Warning!!! This is the alpha release!!!
-%description -l pl
-BasiliskII jest programowym emulatorem komputera Aplle Macintosh,
-pozwal±jacym na uruchomienie wiêkszosci aplikacji MacOSa.
-Emulacja przeprowadzana jest programowo wiêc nie jest konieczne posiadanie
-dodatkowego sprzêtu. BasiliskII mo¿e pracowaæ z MacOSem 7.X lub 8.X
-(aczkolwiek 7.0.0 nie jest polecany)
-Uwaga!!! Program jest w stadium alfa!!!!
+%description -l pl.UTF-8
+BasiliskII jest programowym emulatorem komputera Apple Macintosh,
+pozwalającym na uruchomienie większości aplikacji MacOSa. Emulacja
+przeprowadzana jest programowo, więc nie jest konieczne posiadanie
+dodatkowego sprzętu. BasiliskII może pracować z MacOSem 7.X lub 8.X
+(aczkolwiek 7.0.0 nie jest polecany) Uwaga!!! Program jest w stadium
+alfa!!!
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
cd src/Unix
-./configure --prefix=/usr
+cp -f /usr/share/automake/config.* .
+%{__autoconf}
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%configure LDFLAGS="%{rpmldflags} -lstdc++"
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
-install -d $RPM_BUILD_ROOT/usr/lib/BasiliskII/Linux
-install -d $RPM_BUILD_ROOT/usr/X11R6/bin
+%{__make} install -C src/Unix \
+ DESTDIR=$RPM_BUILD_ROOT
-install -m755 -s src/Unix/BasiliskII $RPM_BUILD_ROOT/usr/X11R6/bin
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -R src/Unix/Linux/* $RPM_BUILD_ROOT/usr/lib/BasiliskII/Linux
-mkdir docs
-cp CHANGES COPYING README TECH TODO docs
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root)
-%doc docs/*
-/usr/lib/BasiliskII
-/usr/X11R6/bin/*
-
-%changelog
-* Fri Jul 23 1999 Roman Niewiarowski <newrom@pasjo.net.pl>
- [0.6-1]
-- First rpm release
-- Hallo World ;)
-
-%changelog -l pl
-* Fri Jul 23 1999 Roman Niewiarowski <newrom@pasjo.net.pl>
- [0.6-1]
-- Pierwsze wydanie w rpmie :)
-- Hallo World ;)
+%defattr(644,root,root,755)
+%doc ChangeLog README TECH TODO src/Unix/Linux
+%attr(755,root,root) %{_bindir}/*
+%{_desktopdir}/*.desktop
+%{_pixmapsdir}/*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/fbdevices
+%{_datadir}/%{name}/keycodes
+%{_mandir}/man1/*