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

# 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

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.

    Jakub Jelinek <>

%setup -q


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/*


%doc %{_mandir}/man8/*

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