File s390-32.spec of Package s390-32
#
# spec file for package s390-32 (Version 1.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: s390-32
License: GPL v2 or later
Group: Development/Tools/Other
AutoReqProv: on
Version: 1.1
Release: 118
Summary: Set 32bit compilation personality on 64bit s390x
Source: s390-32-%{version}.tar.bz2
Patch1: errno.patch
Patch2: personality.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: s390 s390x
%description
s390 is a simple utility to set the 32bit personality on 64bit s390x
machines. this creates an environment for the specified program (shell)
and all child processes. In the created environment, uname -m returns
s390, so all utilities believe they are running on a 32bit machine.
Authors:
--------
Jakub Jelinek <jj@ultra.linux.cz>
Susanne Oberhauser <feedback@suse.de>
%prep
%setup
%patch1
%patch2
%build
make CFLAGS="$RPM_OPT_FLAGS -g"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
make install DESTDIR=$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
- add missing exclusivearch
* Tue Aug 07 2007 jjolly@suse.de
- Default file ownership not set. Now set to root.
* Fri Nov 10 2006 ihno@suse.de
- compiler was confused by syscall declaration. removed and
declared functions to remove compiler warnings.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jul 21 2003 hare@suse.de
- include missing <errno.h>.
* Fri Aug 23 2002 froh@suse.de
- include/personality.h now defines a own 'personality'.
workaround: added #undef personality.
* Wed Apr 10 2002 froh@suse.de
- initial version cloned from sparc32
- added support for {$SHELL,/bin/sh} -i as default command (like chroot)