File powerpc32.spec of Package powerpc32

#
# spec file for package powerpc32 (Version 1.2)
#
# 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/
#

# norootforbuild


Name:           powerpc32
License:        GPL v2 or later; LGPL v2.1 or later
Group:          System/Base
AutoReqProv:    on
Version:        1.2
Release:        156
Summary:        PowerPC32 compilation environment for PowerPC64
Source:         powerpc32-%{version}.tar.bz2
Patch:          powerpc32-1.2.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  ppc ppc64

%description
Powerpc32 is a simple utility for compiling PowerPC32 packages on
PowerPC64 machines. Powerpc32 creates an environment for the specified
program (shell) and all child processes. In the created environment,
uname -m returns ppc, so you can create 32 bit PowerPC programs.



Authors:
--------
    Jakub Jelinek <jj@ultra.linux.cz>

%prep
%setup -q
%patch

%build
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
make install PREFIX=$RPM_BUILD_ROOT MANDIR=%{_mandir}
strip $RPM_BUILD_ROOT/usr/bin/*

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/bin/*
%doc %{_mandir}/man8/*

%changelog
* Wed Oct 15 2008 ro@suse.de
- added ExclusiveArch
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Oct 13 2004 olh@suse.de
- check for uname == ppc64 instead of powerpc64 (#47174 - LTC11789)
* Wed Nov 19 2003 meissner@suse.de
- Use <sys/personality.h>, not <linux/*>
* Tue Nov 18 2003 meissner@suse.de
- Make it recompile on STABLE, cleanups.
* Fri Sep 07 2001 olh@suse.de
- initial relase via sed from sparc32