File bin86.spec of Package bin86

# spec file for package bin86
# Copyright (c) 2011 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:           bin86
ExclusiveArch:  %ix86 x86_64
License:        GPLv2+
Group:          Development/Languages/Other
AutoReqProv:    on
Version:        0.16.17
Release:        103
Summary:        An 8086 Assembler and Linker
Source:         Dev86src-%{version}.tar.bz2
Source1:        rpmlintrc
Patch:          dev86-%{version}.dif
Patch2:         dev86-noelks.patch
Patch3:         dev86-x86_64.patch
%if 0%suse_version > 1020
BuildRequires:  fdupes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

An 8086 assembler and linker.

    Robert de Bath <>
    Bruce Evans <>
    Linus Torvalds <>
    H.J. Lu <>

%package -n dev86
License:        GPLv2+
Summary:        8086 Development Suite
Requires:       bin86 
Group:          Development/Languages/Other

%description -n dev86
This package contains tools for generating Elks/8086 programs and the
Elksemu for execution of these programs in Linux.

    Robert de Bath <>
    Bruce Evans <>
    Linus Torvalds <>
    H.J. Lu <>

%setup -n dev86-%{version}
%patch2 -p1 -b .noelks
%ifarch x86_64
%patch3 -p1 -b .x86_64

make GCCFLAG="$RPM_OPT_FLAGS -fno-strict-aliasing"

make install DIST=$RPM_BUILD_ROOT PREFIX=/usr MANDIR=/usr/share/man \
	LIBDIR=%_libdir/bcc \
make other
make install-other DIST=$RPM_BUILD_ROOT MANDIR=/usr/share/man
mv bootblocks/README bootblocks/README.bootblocks
mv copt/README copt/README.copt
mv dis88/README dis88/README.dis88
mv unproto/README unproto/README.unproto 
mv bin86/README bin86/README.bin86
mkdir $RPM_BUILD_ROOT/%_libdir/bcc/kinclude
cp -a libc/kinclude/arch $RPM_BUILD_ROOT/%_libdir/bcc/kinclude
cp -a libc/kinclude/linuxmt $RPM_BUILD_ROOT/%_libdir/bcc/kinclude
%if 0%suse_version > 1020
%fdupes %buildroot


%doc /usr/share/man/man1/as86.1.gz
%doc /usr/share/man/man1/ld86.1.gz

%files -n dev86
%doc MAGIC Contributors bootblocks/README.bootblocks copt/README.copt
%doc dis88/README.dis88
%doc unproto/README.unproto bin86/README-0.4
%doc bin86/README.bin86 bin86/ChangeLog
%doc /usr/share/man/man1/bcc.1.gz
%doc /usr/share/man/man1/dis86.1.gz
%exclude /usr/share/man/man1/elks.1.gz
%exclude /usr/share/man/man1/elksemu.1.gz