]>
Commit | Line | Data |
---|---|---|
ad7c69fa | 1 | Summary: Bruce's C compiler |
57604c05 | 2 | Summary(pl.UTF-8): Kompilator C Bruce'a |
ad7c69fa | 3 | Name: bcc |
7992e3f2 | 4 | Version: 0.16.18 |
66d65e6e | 5 | Release: 2 |
ad7c69fa AM |
6 | License: GPL |
7 | Group: Development/Languages | |
7992e3f2 JB |
8 | Source0: http://www.debath.co.uk/dev86/Dev86src-%{version}.tar.gz |
9 | # Source0-md5: f2e06b547397383b2b2650b9c4fd9bab | |
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 | |
7992e3f2 JB |
14 | Patch4: dev86-64bit.patch |
15 | Patch5: dev86-noelks.patch | |
16 | Patch6: dev86-long.patch | |
17 | Patch7: dev86-nostrip.patch | |
18 | Patch8: dev86-print-overflow.patch | |
19 | Patch9: dev86-make.patch | |
66d65e6e | 20 | Patch10: dev86-copt.patch |
7992e3f2 JB |
21 | URL: http://www.debath.co.uk/ |
22 | Requires: bin86 >= %{version} | |
f274ed64 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ad7c69fa | 24 | |
4aacfb22 | 25 | # don't try to strip Linux-8086 objects |
7992e3f2 JB |
26 | %define _noautostrip .*%{_libdir}/bcc/.*\\.[ao] |
27 | ||
4aacfb22 | 28 | |
ad7c69fa AM |
29 | %description |
30 | Bcc is a simple C compiler that produces 8086 assembler, in addition | |
31 | compiler compile time options allow 80386 or 6809 versions. The | |
32 | compiler understands traditional K&R C with just the restriction that | |
33 | bit fields are mapped to one of the other integer types. | |
34 | ||
8c14594a JR |
35 | %description -l pl.UTF-8 |
36 | Bcc jest prostym kompilatorem C tworzącym pliki asemblerowe 8086, | |
ad7c69fa | 37 | a dodatkowo pozwala na wybranie wersji 80386 lub 6809. Kompilator |
8c14594a JR |
38 | rozumie tradycyjne C K&R z takim ograniczeniem, że pola bitowe |
39 | są odwzorowywane do jednego z innych typów całkowitych. | |
ad7c69fa AM |
40 | |
41 | %prep | |
42 | %setup -q -n dev86-%{version} | |
6b452b5b | 43 | %patch0 -p1 |
44 | %patch1 -p1 | |
45c7a6c2 AM |
45 | %patch2 -p1 |
46 | %patch3 -p0 | |
7992e3f2 JB |
47 | %if "%{_lib}" == "lib64" |
48 | %patch4 -p1 | |
49 | %endif | |
50 | %ifnarch %{ix86} | |
f24e9fd9 | 51 | %patch5 -p1 |
f24e9fd9 | 52 | %endif |
7992e3f2 | 53 | %patch6 -p1 |
f24e9fd9 JR |
54 | %patch7 -p1 |
55 | %patch8 -p1 | |
56 | %patch9 -p1 | |
66d65e6e | 57 | %patch10 -p1 |
ad7c69fa | 58 | |
02103d98 ER |
59 | mv -f bootblocks/README README.bootblocks |
60 | mv -f copt/README README.copt | |
61 | mv -f dis88/README README.dis88 | |
62 | mv -f elksemu/README README.elksemu | |
63 | mv -f unproto/README README.unproto | |
64 | ||
ad7c69fa | 65 | %build |
63acc6f4 | 66 | CC="%{__cc}" \ |
4cc830eb | 67 | %{__make} -j1 all other \ |
45c7a6c2 | 68 | OPT="%{rpmcppflags} %{rpmcflags}" <<!FooBar! |
ad7c69fa AM |
69 | 5 |
70 | quit | |
71 | !FooBar! | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
4cc830eb | 76 | %{__make} -j1 install-all \ |
f24e9fd9 JR |
77 | DIST=$RPM_BUILD_ROOT \ |
78 | LIBDIR=%{_libdir}/bcc \ | |
79 | INCLDIR=%{_libdir}/bcc \ | |
7992e3f2 JB |
80 | LOCALPREFIX=%{_prefix} \ |
81 | MANDIR=%{_mandir} | |
726244e8 | 82 | |
6b452b5b | 83 | cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc |
ad7c69fa | 84 | |
6b452b5b | 85 | ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86 |
86 | ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/size86 | |
ad7c69fa | 87 | |
726244e8 | 88 | # these are separated in bin86 package |
f24e9fd9 | 89 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/{as86,ld86} |
7992e3f2 | 90 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{as,ld}86.1* |
4aacfb22 | 91 | |
7992e3f2 JB |
92 | %ifnarch %{ix86} |
93 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/elks*.1 | |
f24e9fd9 | 94 | %endif |
6b452b5b | 95 | |
ad7c69fa | 96 | %clean |
6b452b5b | 97 | rm -rf $RPM_BUILD_ROOT |
ad7c69fa AM |
98 | |
99 | %files | |
100 | %defattr(644,root,root,755) | |
4aacfb22 | 101 | %doc Changes Contributors README* |
4aacfb22 | 102 | %attr(755,root,root) %{_bindir}/ar86 |
726244e8 | 103 | %attr(755,root,root) %{_bindir}/bcc |
4aacfb22 | 104 | %attr(755,root,root) %{_bindir}/dis86 |
7992e3f2 | 105 | %ifarch %{ix86} |
726244e8 | 106 | %attr(755,root,root) %{_bindir}/elksemu |
f24e9fd9 | 107 | %endif |
726244e8 | 108 | %attr(755,root,root) %{_bindir}/makeboot |
ad7c69fa | 109 | %attr(755,root,root) %{_bindir}/nm86 |
726244e8 | 110 | %attr(755,root,root) %{_bindir}/objdump86 |
ad7c69fa | 111 | %attr(755,root,root) %{_bindir}/size86 |
4aacfb22 | 112 | %dir %{_libdir}/bcc |
726244e8 | 113 | %attr(755,root,root) %{_libdir}/bcc/as86_encap |
0af5fdb9 | 114 | %attr(755,root,root) %{_libdir}/bcc/bcc-cc1 |
726244e8 | 115 | %attr(755,root,root) %{_libdir}/bcc/bcc-cpp |
0af5fdb9 AM |
116 | %attr(755,root,root) %{_libdir}/bcc/copt |
117 | %attr(755,root,root) %{_libdir}/bcc/unproto | |
4aacfb22 JB |
118 | %{_libdir}/bcc/i386 |
119 | %{_libdir}/bcc/include | |
120 | %{_libdir}/bcc/kinclude | |
726244e8 JB |
121 | %{_libdir}/bcc/crt*.o |
122 | %{_libdir}/bcc/lib*.a | |
123 | %{_libdir}/bcc/rules.* | |
7992e3f2 JB |
124 | %{_mandir}/man1/bcc.1* |
125 | %{_mandir}/man1/dis86.1* | |
126 | %ifarch %{ix86} | |
127 | %{_mandir}/man1/elks.1* | |
128 | %{_mandir}/man1/elksemu.1* | |
129 | %endif |