File libx86.spec of Package libx86
#
# spec file for package libx86 (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/
#
# norootforbuild
Name: libx86
Url: http://www.codon.org.uk/~mjg59/libx86
Version: 1.1
Release: 13
Summary: x86 real-mode library
License: BSD 3-Clause
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Prefix: /usr
Provides: %{name}-devel = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
ExclusiveArch: %ix86 x86_64
%description
A library to provide support for making real-mode calls x86 calls. On
x86 hardware, vm86 mode is used. On other platforms, x86 emulation is
provided.
Authors:
--------
Josh Vanderhoof
Matthew Garrett
Jonathan McDowell
%prep
%setup
%build
# %ifnarch %ix86
MAKEARGS="BACKEND=x86emu"
# %endif
make CFLAGS="$RPM_OPT_FLAGS -DDEBUG -g -fPIC" $MAKEARGS LIBDIR=%{_libdir}
%install
make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root)
%{_libdir}/libx86.*
/usr/include/libx86.h
%doc COPYRIGHT
%changelog
* Wed Aug 13 2008 ro@suse.de
- add ExclusiveArch
* Mon May 19 2008 seife@suse.de
- update to version 1.1, changes:
v1.1: Add makefile fixes from Till Maas
v1.0: Add PROT_EXEC to the mmap of the ROM
- use x86emu backend even on 32-bit systems (instead of LRMI)
- add the COPYRIGHT file
- care for some rpmlint warnings
* Thu Apr 17 2008 seife@suse.de
- upstream fixes (from the ubuntu hardy package), among others:
- Handle reading addresses that are outside the process range
with the x86emu backend
- Add xorg upstream fixes for cpuid, rdtsc, bsr, bsf opcodes
- fix a problem that appears with NX fixes in 2.6.25 by mmap()ing
video memory PROT_EXEC
* Mon Mar 05 2007 seife@suse.de
- initial submission, version 0.99