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