Sisyphus repository
Last update: 18 september 2019 | SRPMs: 17444 | Visits: 15118160
en ru br
ALT Linux repos
S:0.16.19-alt1
5.0: 0.16.17-alt5
4.1: 0.16.17-alt5
4.0: 0.16.17-alt5
3.0: 0.16.17-alt2

Group :: Development/Other
RPM: dev86

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: dev86
Version: 0.16.19
Release: alt1

Summary: A real mode 80x86 assembler and linker
License: GPL+ and GPLv2+ and LGPLv2+
Group: Development/Other
Url: http://www.debath.co.uk/dev86/

# http://www.debath.co.uk/dev86/Dev86src-%version.tar.gz

Source: Dev86src-%version.tar

Patch1: dev86-0.16.16-rh-alt-owl-kinclude.patch
Patch2: dev86-0.16.19-owl-warnings.patch
Patch3: dev86-0.16.17-owl-makefile.patch
Patch4: dev86-0.16.19-alt-noelksemu.patch
Patch5: dev86-0.16.19-owl-tmp.patch
Patch6: dev86-0.16.19-alt-bcc.patch
Patch7: dev86-0.16.19-rh-nostrip.patch
Patch8: dev86-0.16.19-rh-bound.patch

Provides: bin86
Obsoletes: bin86

%package devel
Summary: Development files for dev86
Group: Development/Other
Requires: %name = %version-%release

%description
dev86 provides an assembler and linker for real mode 80x86 instructions.
You'll need to have this package installed in order to build programs
that run in real mode, including LILO and the kernel's bootstrapping code,
from their sources.

%description devel
dev86 provides an assembler and linker for real mode 80x86 instructions.
You'll need to have this package installed in order to build programs
that run in real mode, including LILO and the kernel's bootstrapping code,
from their sources.

This package provides C headers need to use bcc, the C compiler for
real mode x86.

Note that you don't need this package in order to build a kernel.

%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

find -type f -print0 |
xargs -r0 grep -FZl /usr/lib/liberror.txt -- |
xargs -r0 %__subst 's,/usr/lib/liberror\.txt,/usr/lib/bcc/liberror.txt,g' --

mkdir -p lib/bcc
ln -s ../../include lib/bcc/include

%build
make GCCFLAG='%optflags'

for f in `find -mindepth 2 -type f -name README\*`; do
d="${f%%/*}"
cp -p "$f" "${f##*/}.${d##*/}"
done

%install
%makeinstall_std DIST=%buildroot MANDIR=%_mandir

for f in nm86 size86; do
ln -sf objdump86 "%buildroot%_bindir/$f"
done

find %buildroot%_prefix/lib/bcc -type d |
grep -Fv /include |
sed -e "s|%buildroot|%%dir |g" >files.list

find %buildroot%_prefix/lib/bcc \! -type d |
grep -Fv /include |
sed -e "s|%buildroot||g" |
grep -Fv 86/lib | fgrep -v \.a >>files.list

%check
BCC_PREFIX=%buildroot%_prefix make -C tests BCC=%buildroot%_bindir/bcc

%files -f files.list
%_bindir/*
%_mandir/man?/*
%doc README* MAGIC Changes Contributors bin86

%files devel
%dir %_prefix/lib/bcc
%dir %_prefix/lib/bcc/i386
%_prefix/lib/bcc/i386/lib*.a
%_prefix/lib/bcc/lib*.a
%_prefix/lib/bcc/include

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin