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