1 Summary: Bruce's C compiler
2 Summary(pl): Kompilator C Bruce'a
7 Group: Development/Languages
8 Source0: http://www.cix.co.uk/~mayday/dev86/Dev86src-%{version}.tar.gz
9 # Source0-md5: abe6bc03cf37703a7f3991bec8b5f715
10 Patch0: Dev86src-noroot.patch
11 Patch1: Dev86src-nobcc.patch
12 Patch2: Dev86src-opt.patch
13 Patch3: Dev86src-errno.patch
14 URL: http://www.cix.co.uk/~mayday/
16 ExclusiveArch: %{ix86}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 # don't try to strip Linux-8086 objects
20 %define no_install_post_strip 1
23 Bcc is a simple C compiler that produces 8086 assembler, in addition
24 compiler compile time options allow 80386 or 6809 versions. The
25 compiler understands traditional K&R C with just the restriction that
26 bit fields are mapped to one of the other integer types.
29 Bcc jest prostym kompilatorem C tworz±cym pliki asemblerowe 8086,
30 a dodatkowo pozwala na wybranie wersji 80386 lub 6809. Kompilator
31 rozumie tradycyjne C K&R z takim ograniczeniem, ¿e pola bitowe
32 s± odwzorowywane do jednego z innych typów ca³kowitych.
35 %setup -q -n dev86-%{version}
44 OPT="%{rpmcflags}" <<!FooBar!
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} install-all \
55 install $RPM_BUILD_ROOT/lib/elksemu $RPM_BUILD_ROOT%{_bindir}
56 cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc
58 ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86
59 ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/size86
61 # move header files out of %{_includedir} and into %{_libdir}/bcc/include
62 mv -f $RPM_BUILD_ROOT%{_includedir} $RPM_BUILD_ROOT%{_libdir}/bcc
64 # move man pages where they belong
65 install -d $RPM_BUILD_ROOT%{_mandir}
66 rm -f $RPM_BUILD_ROOT/usr/man/man1/{as,ld}86.1*
67 mv -f $RPM_BUILD_ROOT/usr/man/* $RPM_BUILD_ROOT%{_mandir}
68 # these are separated in bin86 package
69 rm -f $RPM_BUILD_ROOT%{_bindir}/{as86,ld86}
71 %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{ar86,bcc,elksemu,objdump86}}
72 %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/bcc/{bcc*,copt,unproto}}
74 mv -f bootblocks/README README.bootblocks
75 mv -f copt/README README.copt
76 mv -f dis88/README README.dis88
77 mv -f elksemu/README README.elksemu
78 mv -f unproto/README README.unproto
81 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
85 %doc Changes Contributors README*
86 %attr(755,root,root) %{_bindir}/bcc
87 %attr(755,root,root) %{_bindir}/ar86
88 %attr(755,root,root) %{_bindir}/as86_encap
89 %attr(755,root,root) %{_bindir}/dis86
90 %attr(755,root,root) %{_bindir}/objdump86
91 %attr(755,root,root) %{_bindir}/nm86
92 %attr(755,root,root) %{_bindir}/size86
93 %{_libdir}/liberror.txt
95 %attr(755,root,root) %{_libdir}/bcc/bcc-cpp
96 %attr(755,root,root) %{_libdir}/bcc/bcc-cc1
97 %attr(755,root,root) %{_libdir}/bcc/copt
98 %attr(755,root,root) %{_libdir}/bcc/unproto
101 %{_libdir}/bcc/include
102 %{_libdir}/bcc/kinclude
103 %attr(755,root,root) %{_bindir}/elksemu