File mol.spec of Package mol

#
# spec file for package mol (Version 0.9.72.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           mol
BuildRequires:  alsa-devel bison libpng-devel ncurses-devel xorg-x11-devel
Summary:        Mac on Linux
Version:        0.9.72.1
Release:        76
License:        GPL v2 or later
Group:          System/Emulators/Other
Source0:        ftp://ftp.sourceforge.net/pub/sourceforge/m/ma/mac-on-linux/mol-%{version}.tar.bz2
Source1:        rpmlintrc
Url:            http://mac-on-linux.sourceforge.net/
Patch0:         mol.make-verbose.patch
Patch1:         mol.insmod.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  ppc

%description
Mac-On-Linux lets you run MacOS under LinuxPPC on PowerPC based
machines. Because it runs natively on the processor, it is very fast.
Unlike most Mac emulators, Mac-on-Linux runs MacOS 8.6 and later
WITHOUT A ROM IMAGE*. To run earlier versions, a ROM image is probably
needed.



Authors:
--------
    Samuel Rydh <samuel@ibrium.se>

%prep
%setup -q 
%patch0 -p1
%patch1 -p1

%build
CFLAGS="$RPM_OPT_FLAGS -U_FORTIFY_SOURCE -Wall -D_FILE_OFFSET_BITS=64" \
STRIP=true \
./configure
yes '' | make  MAKE=make config
make  MAKE=make BUILD_MODS=n prefix=/usr docdir=%{_docdir}/%{name}

%install
make MAKE=make install prefix=/usr docdir=%{_docdir}/%{name} DESTDIR=$RPM_BUILD_ROOT
chmod 755 $RPM_BUILD_ROOT/usr/lib/mol/*/bin/mol
chmod -x $RPM_BUILD_ROOT%{_docdir}/%{name}/COPYING

%post
%run_permissions

%files
%defattr (-,root,root)
%{_docdir}/%{name}
%dir /etc/mol
%config (noreplace) /etc/mol/*
/usr/bin/*
/usr/lib/mol
/usr/share/mol
/var/lib/mol
%{_mandir}/man?/*

%changelog
* Thu Sep 25 2008 olh@suse.de
- use exclusivearch ppc
* Mon Aug 11 2008 ro@suse.de
- use exclusivearch
* Sat Oct 13 2007 schwab@suse.de
- Update to mol 0.9.72.1.
  * Fix building on FC7 by adding missing headers
  * Additional fixes for find_physical_rom
  * Fix bus frequency reporting
  * 2.6.22 kmod fixes
  * Remove TUN from defconfig (again)
  * Fix XDGA off by one error
  * Update netdriver Kconfig
  * Re-arrange the Kconfig menus
  * Remove configure directory
  * OSX Compatibility fixes
* Sat May 26 2007 schwab@suse.de
- Add patch to fix XDGA support.
* Sat Mar 31 2007 schwab@suse.de
- Add bison and ncurses-devel to BuildRequires.
* Mon Mar 12 2007 schwab@suse.de
- Update to mol 0.9.72.
  - changes include:
  * Fixed tilde key
  * Fix CPU clock speed reporting
  * VNC - Redraw request fix
  * Remove cache coherency requirement for AmigaOne support
  * usleep -> nanosleep
  * Added nvram.x installation back
  * Reverted BootX init.S changes (fixes cdboot bug)
  * Fixed test invocations (== is invalid)
  * Fixed VT Switching
  * Updated BootX's init.S to match MOL's version
  * Removed nvram.x, fix doesn't really work
  * Fixed another MacOS segfault on startup
  * Fixed MacOS ethernet softlock (Thanks SolraBizna for noticing)
  * Fixed MacOS segfault on startup (Thanks to SolraBizna for noticing)
  * Fixed BootX read size bug preventing booting on QCOW/DMG
  * Integrated patch from Marcus Comstedt for USB mice
  * Fix mol-img bug
  * Added support to recognize HFSX disks
  * Added block driver abstraction layer
  * Added qcow disk support
  * Added compressed dmg support
* Thu Feb 01 2007 schwab@suse.de
- Add -fno-stack-protector.
* Mon Oct 30 2006 schwab@suse.de
- Update to mol 0.9.71.1.
  * Added new molvconfig manpage from debian
  * Compile fixes for 2.6.19
* Mon Oct 09 2006 schwab@suse.de
- Update to mol 0.9.71 (just cleanups).
* Wed Jul 19 2006 schwab@suse.de
- Use the version from Gentoo.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 schwab@suse.de
- Don't strip binaries.
* Sat Oct 22 2005 olh@suse.de
- fix warnings
  remove tap support, was removed in 2.6.12-rc2
* Mon Aug 29 2005 olh@suse.de
- fix typo in last change, add a bit delay
* Mon Aug 29 2005 olh@suse.de
- load mol.ko via modprobe, it is part of kernel-default
* Tue Jun 21 2005 olh@suse.de
- update to 0.9.70
  build with alsa and libpng
  remove km_mol, kernel driver will be a kernel patch
* Thu Nov 06 2003 olh@suse.de
- package all km_mol directories
* Sat Nov 01 2003 olh@suse.de
- update to current bk version
* Mon Mar 10 2003 olh@suse.de
- update to current bk version
* Mon Nov 18 2002 schwab@suse.de
- Enable LFS.
- Fix off_t configure test.
- Fix use of off_t if it is 64 bits.
* Mon Oct 28 2002 schwab@suse.de
- Override -fsigned-char from RPM_OPT_FLAGS, there are some places
  that depend on char == unsigned char.
* Wed Oct 16 2002 olh@suse.de
- use EXPAND_STACK_HAS_3_ARGS to check for aa patch:
  000_silent-stack-overflow
* Fri Sep 06 2002 olh@suse.de
- update to 0.9.65 final with MacOS X support
* Thu Aug 15 2002 olh@suse.de
- add mol-automake.diff, from schwab, for latest automake
  update mol.diff to current bk status
* Sun Aug 04 2002 olh@suse.de
- update to current bk status, some OS X support
* Wed Jul 24 2002 olh@suse.de
- use wildcard in Makefile.module to catch all kernel drivers
* Mon Jul 08 2002 olh@suse.de
- update to 0.9.64, remove suid from /usr/lib/mol/*/bin/mol
* Thu Jun 06 2002 olh@suse.de
- update to 0.9.63 + bk update
* Mon Mar 04 2002 olh@suse.de
- update to latest bk version
* Wed Feb 27 2002 olh@suse.de
- use own default .config
* Sun Oct 14 2001 olh@suse.de
- use -DEXPORT_SYMTAB for molsymglue
* Mon Oct 01 2001 olh@suse.de
- apply some bk changesets to fix keymappings:
  mol-changeset-1.179.diff
  mol-changeset-1.183.diff
  mol-changeset-1.184.diff
  mol-changeset-1.185.diff
* Thu Sep 20 2001 olh@suse.de
- do some ugly hackery to get module loading right (#10822)
* Tue Sep 18 2001 olh@suse.de
- do not require mol version for kernel modules,
  the installer can not handle it
* Fri Aug 31 2001 olh@suse.de
- update to 0.9.60 final
* Mon Jul 09 2001 olh@suse.de
- add EXPAND_STACK_HAS_3_ARGS check to mmu.c
* Fri Jun 29 2001 olh@suse.de
- add binary_libs, not included in bk tree
* Thu Jun 28 2001 olh@suse.de
- update to 0.9.60 for recent 2.4.6-pre6 MM changes
* Wed Jun 06 2001 olh@suse.de
- update to 0.9.58
* Sun Apr 01 2001 olh@suse.de
- update to current bk snapshot
* Fri Mar 23 2001 olh@suse.de
- update to 0.9.56 snapshot
* Sat Dec 30 2000 olh@suse.de
- fix dif
* Fri Dec 29 2000 olh@suse.de
- Requires: mol_kernel_modules_0.9.53
* Fri Dec 29 2000 olh@suse.de
- fix module install path, add patch for 2.4 kernel
* Mon Dec 18 2000 olh@suse.de
- fixed sheep.c compile against 2.2 headers
* Mon Dec 18 2000 ro@suse.de
- fixed version
* Fri Dec 15 2000 olh@suse.de
- fix 2.4 compilation again.
* Sat Dec 02 2000 olh@suse.de
- update to 0.9.53 to prevent segfault on new PowerMacs
* Wed Nov 22 2000 olh@suse.de
- add km_mol again, needs TARGETKERNEL for k_*.spec files
* Tue Oct 24 2000 olh@suse.de
- fix typo in /etc/mol.rc , putonftp
* Wed Oct 04 2000 olh@suse.de
- upate startscript and network script
* Sat Sep 02 2000 olh@suse.de
- update to 0.9.50
* Tue Jul 18 2000 olh@suse.de
- update to 0.9.48
* Sun Mar 05 2000 olh@suse.de
- update to 0.9.41
* Thu Feb 24 2000 uli@suse.de
- souped up fb.modes parser so it won't throw up when parsing the fb.modes
  file from recent fbset packages
- bash script "molpatching" now uses "wc" instead of "stat" which doesn't
  exist on SuSE Linux
- mmu.c: changed expand_stack() call to new format (3 args)
* Sun Feb 06 2000 olh@suse.de
- update to 0.9.40
* Sun Jan 30 2000 olh@suse.de
- add mol to SuSE PPC dist
openSUSE Build Service is sponsored by