File libx86.spec of Package libx86

#
# spec file for package libx86 (Version 1.1)
#
# Copyright (c) 2010 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:        26
Summary:        x86 real-mode library
License:        BSD3c
Group:          System/Libraries
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         /usr
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

%package -n libx86-1
License:        BSD3c
Group:          Development/Libraries/C and C++
Summary:        x86 real-mode library
Provides:       libx86 = %{version}
Obsoletes:      libx86 <= %{version}

%description -n libx86-1
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


%package devel
License:        BSD3c
Group:          Development/Libraries/C and C++
Requires:       libx86-1 = %{version}
Summary:        Development files for libx86

%description devel
Development files for libx86. libx86 is a x86 real-mode library.

%package devel-static
License:        BSD3c
Group:          Development/Libraries/C and C++
Requires:       %{name}-devel = %{version}
Summary:        Static development library for libx86

%description devel-static
Static development library for libx86. libx86 is a x86 real-mode library.

%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}
chmod a-x $RPM_BUILD_ROOT/%{_libdir}/libx86.a

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libx86-1 -p /sbin/ldconfig

%postun -n libx86-1 -p /sbin/ldconfig

%files -n libx86-1
%defattr (-,root,root)
%{_libdir}/libx86.so.*
%doc COPYRIGHT

%files devel
%defattr (-,root,root)
%{_libdir}/libx86.so
/usr/include/libx86.h

%files devel-static
%defattr (-,root,root)
%{_libdir}/libx86.a

%changelog
openSUSE Build Service is sponsored by