File mol.spec of Package mol

#
# spec file for package mol
#
# Copyright (c) 2012 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
BuildRequires:  autoconf
BuildRequires:  bison
BuildRequires:  libpng-devel
BuildRequires:  ncurses-devel
BuildRequires:  xorg-x11-devel
Summary:        Mac on Linux
License:        GPL-2.0+
Group:          System/Emulators/Other
Version:        0.9.72.1
Release:        0
Source0:        http://prdownloads.sourceforge.net/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
Patch2:         mol.config.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.

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

%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
openSUSE Build Service is sponsored by