]>
Commit | Line | Data |
---|---|---|
ad7c69fa | 1 | Summary: Bruce's C compiler |
57604c05 | 2 | Summary(pl.UTF-8): Kompilator C Bruce'a |
ad7c69fa | 3 | Name: bcc |
549a0d65 | 4 | Version: 0.16.17 |
a7de289a | 5 | Release: 2 |
ad7c69fa AM |
6 | License: GPL |
7 | Group: Development/Languages | |
f11e9fe0 | 8 | #Source0Download: http://www.cix.co.uk/~mayday/ |
d1e9cf0f | 9 | Source0: http://www.cix.co.uk/~mayday/dev86/Dev86src-%{version}.tar.gz |
549a0d65 | 10 | # Source0-md5: e7bbfdbe61c2fb964994a087e29b0087 |
ad7c69fa | 11 | Patch0: Dev86src-noroot.patch |
726244e8 | 12 | Patch1: Dev86src-opt.patch |
79386f7d | 13 | URL: http://homepage.ntlworld.com/robert.debath/ |
75215f97 | 14 | Requires: bin86 |
eb0bf301 | 15 | ExclusiveArch: %{ix86} |
f274ed64 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ad7c69fa | 17 | |
4aacfb22 JB |
18 | # don't try to strip Linux-8086 objects |
19 | %define no_install_post_strip 1 | |
20 | ||
ad7c69fa AM |
21 | %description |
22 | Bcc is a simple C compiler that produces 8086 assembler, in addition | |
23 | compiler compile time options allow 80386 or 6809 versions. The | |
24 | compiler understands traditional K&R C with just the restriction that | |
25 | bit fields are mapped to one of the other integer types. | |
26 | ||
8c14594a JR |
27 | %description -l pl.UTF-8 |
28 | Bcc jest prostym kompilatorem C tworzącym pliki asemblerowe 8086, | |
ad7c69fa | 29 | a dodatkowo pozwala na wybranie wersji 80386 lub 6809. Kompilator |
8c14594a JR |
30 | rozumie tradycyjne C K&R z takim ograniczeniem, że pola bitowe |
31 | są odwzorowywane do jednego z innych typów całkowitych. | |
ad7c69fa AM |
32 | |
33 | %prep | |
34 | %setup -q -n dev86-%{version} | |
6b452b5b | 35 | %patch0 -p1 |
36 | %patch1 -p1 | |
ad7c69fa | 37 | |
02103d98 ER |
38 | mv -f bootblocks/README README.bootblocks |
39 | mv -f copt/README README.copt | |
40 | mv -f dis88/README README.dis88 | |
41 | mv -f elksemu/README README.elksemu | |
42 | mv -f unproto/README README.unproto | |
43 | ||
ad7c69fa | 44 | %build |
63acc6f4 JB |
45 | CC="%{__cc}" \ |
46 | %{__make} all other \ | |
47 | OPT="%{rpmcflags}" <<!FooBar! | |
ad7c69fa AM |
48 | 5 |
49 | quit | |
50 | !FooBar! | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
4aacfb22 | 55 | %{__make} install-all \ |
6b452b5b | 56 | DIST=$RPM_BUILD_ROOT |
ad7c69fa | 57 | |
726244e8 JB |
58 | # FFU (dis88/Makefile is not ready) |
59 | # MANDIR=%{_mandir} | |
60 | ||
6b452b5b | 61 | cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc |
ad7c69fa | 62 | |
6b452b5b | 63 | ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86 |
64 | ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/size86 | |
ad7c69fa | 65 | |
726244e8 JB |
66 | # these are separated in bin86 package |
67 | rm -f $RPM_BUILD_ROOT%{_bindir}/{as86,ld86} | |
68 | rm -f $RPM_BUILD_ROOT/usr/man/man1/{as,ld}86.1* | |
0af5fdb9 | 69 | # move man pages where they belong |
6b452b5b | 70 | install -d $RPM_BUILD_ROOT%{_mandir} |
b1e1f518 | 71 | mv -f $RPM_BUILD_ROOT/usr/man/* $RPM_BUILD_ROOT%{_mandir} |
4aacfb22 JB |
72 | |
73 | %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{ar86,bcc,elksemu,objdump86}} | |
74 | %{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/bcc/{bcc*,copt,unproto}} | |
6b452b5b | 75 | |
ad7c69fa | 76 | %clean |
6b452b5b | 77 | rm -rf $RPM_BUILD_ROOT |
ad7c69fa AM |
78 | |
79 | %files | |
80 | %defattr(644,root,root,755) | |
4aacfb22 | 81 | %doc Changes Contributors README* |
4aacfb22 | 82 | %attr(755,root,root) %{_bindir}/ar86 |
726244e8 | 83 | %attr(755,root,root) %{_bindir}/bcc |
4aacfb22 | 84 | %attr(755,root,root) %{_bindir}/dis86 |
726244e8 JB |
85 | %attr(755,root,root) %{_bindir}/elksemu |
86 | %attr(755,root,root) %{_bindir}/makeboot | |
ad7c69fa | 87 | %attr(755,root,root) %{_bindir}/nm86 |
726244e8 | 88 | %attr(755,root,root) %{_bindir}/objdump86 |
ad7c69fa | 89 | %attr(755,root,root) %{_bindir}/size86 |
4aacfb22 | 90 | %dir %{_libdir}/bcc |
726244e8 | 91 | %attr(755,root,root) %{_libdir}/bcc/as86_encap |
0af5fdb9 | 92 | %attr(755,root,root) %{_libdir}/bcc/bcc-cc1 |
726244e8 | 93 | %attr(755,root,root) %{_libdir}/bcc/bcc-cpp |
0af5fdb9 AM |
94 | %attr(755,root,root) %{_libdir}/bcc/copt |
95 | %attr(755,root,root) %{_libdir}/bcc/unproto | |
4aacfb22 JB |
96 | %{_libdir}/bcc/i386 |
97 | %{_libdir}/bcc/include | |
98 | %{_libdir}/bcc/kinclude | |
726244e8 JB |
99 | %{_libdir}/bcc/crt*.o |
100 | %{_libdir}/bcc/lib*.a | |
101 | %{_libdir}/bcc/rules.* | |
ad7c69fa | 102 | %{_mandir}/man1/* |