# # spec file for package linux32 (Version 1.0) # # 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: linux32 BuildRequires: update-desktop-files Url: ftp://ftp.x86-64.org/pub/linux/tools/linux32/ License: GPL v2 or later Group: System/Kernel Summary: 32-Bit Emulation Utility for x86-64 Version: 1.0 Release: 475 BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: x86_64 #Recommends: kdebase3 Source0: linux32.c Source1: linux32.1 Source2: %name.desktop Source3: konsole-linux32.png %description This is a small tool for 32-bit emulation in Linux/x86-64. It allows you to execute programs that need a uname -m of i386 with uname emulation. The uname -m is inherited by all child programs, but does not affect the current shell or processes above it in the process hierarchy. Authors: -------- Andi Kleen %prep mkdir -p linux32 cd linux32 cp $RPM_SOURCE_DIR/linux32.c . cp $RPM_SOURCE_DIR/linux32.1 . %build cd linux32 gcc $RPM_OPT_FLAGS -o linux32 linux32.c %install cd linux32 mkdir -p $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/share/man/man1 cp linux32 $RPM_BUILD_ROOT/usr/bin cp linux32.1 $RPM_BUILD_ROOT/usr/share/man/man1 ( cd $RPM_BUILD_ROOT/usr/share/man/man1 ; ln -s linux32.1.gz linux64.1.gz ) cd $RPM_BUILD_ROOT/usr/bin ln linux32 linux64 %suse_update_desktop_file -i %name TerminalEmulator %files %defattr(-,root,root) /usr/bin/linux32 /usr/bin/linux64 /usr/share/man/man1/linux32.1.gz /usr/share/man/man1/linux64.1.gz /usr/share/applications/* /usr/share/pixmaps/* %changelog * Wed Nov 05 2008 sf@suse.de - fix desktop file to start in an xterm - for non-KDE-user (bnc #408320) * Tue Nov 04 2008 coolo@suse.de - remove outdated translations * Tue Oct 21 2008 kukuk@suse.de - Build only on x86-64 - Fix at least on destkop file entry * Wed Oct 10 2007 bwalle@suse.de - fix some problems (#188554) o make linux64 working even if it's called with the full path o don't switch magically to linux32 if linux64 is called with arguments (--3gb/--4gb) o fix segmentation fault * Wed Mar 01 2006 sf@suse.de - added -32bit to name and generics name in .desktop file (#52279) * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Tue Nov 23 2004 adrian@suse.de - install icon file for desktop entry * Sun Aug 03 2003 adrian@suse.de - install the desktop file according to XDG instead of susewm * Fri Jun 20 2003 ak@suse.de - add linux32.1 as Source * Thu Jun 19 2003 ak@suse.de - eliminate README.linux32 - use RPM_OPT_FLAGS * Thu Jun 19 2003 ak@suse.de - fix neededforbuild - make --3gb the default - add manpage - use hardlink for linux64 * Thu Jun 05 2003 ak@suse.de - add --3gb support (needs kernel patch) - fix error handling * Thu Feb 20 2003 adrian@suse.de - add menu entry for 32 bit shell in System/Terminals/ * Fri May 10 2002 stepan@suse.de - initial version