bin86/bin86.spec

128 lines
3.3 KiB
RPMSpec

#
# spec file for package bin86
#
# Copyright (c) 2014 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: bin86
ExclusiveArch: %ix86 x86_64
Version: 0.16.17
Release: 0
Summary: An 8086 Assembler and Linker
License: GPL-2.0+
Group: Development/Languages/Other
Url: http://www.cix.co.uk/~mayday/
Source: Dev86src-%{version}.tar.bz2
Source1: bin86-rpmlintrc
Patch: dev86-%{version}.dif
Patch2: dev86-noelks.patch
Patch3: dev86-x86_64.patch
%if 0%suse_version > 1020
BuildRequires: fdupes
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
An 8086 assembler and linker.
Authors:
--------
Robert de Bath <rdebath@poboxes.com>
Bruce Evans <bde@runx.oz.au>
Linus Torvalds <torvalds@transmeta.com>
H.J. Lu <hjl@nynexst.com>
%package -n dev86
Summary: 8086 Development Suite
Group: Development/Languages/Other
Requires: bin86
%description -n dev86
This package contains tools for generating Elks/8086 programs and the
Elksemu for execution of these programs in Linux.
Authors:
--------
Robert de Bath <rdebath@poboxes.com>
Bruce Evans <bde@runx.oz.au>
Linus Torvalds <torvalds@transmeta.com>
H.J. Lu <hjl@nynexst.com>
%prep
%setup -n dev86-%{version}
%patch
%patch2 -p1 -b .noelks
%ifarch x86_64
%patch3 -p1 -b .x86_64
%endif
%build
make GCCFLAG="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
rm -rf $RPM_BUILD_ROOT
make install DIST=$RPM_BUILD_ROOT PREFIX=/usr MANDIR=/usr/share/man \
LIBDIR=%_libdir/bcc \
INCLDIR=%_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
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
/usr/bin/as86
/usr/bin/ld86
/usr/bin/nm86
/usr/bin/objdump86
/usr/bin/size86
%doc /usr/share/man/man1/as86.1.gz
%doc /usr/share/man/man1/ld86.1.gz
%files -n dev86
%defattr(-,root,root)
%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
/usr/bin/ar86
/usr/bin/bcc
/usr/bin/dis86
/usr/bin/makeboot
%_libdir/bcc
%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
%changelog