]> git.pld-linux.org Git - packages/bcc.git/blame - bcc.spec
- tabs in preamble
[packages/bcc.git] / bcc.spec
CommitLineData
ad7c69fa 1Summary: Bruce's C compiler
57604c05 2Summary(pl.UTF-8): Kompilator C Bruce'a
ad7c69fa 3Name: bcc
549a0d65 4Version: 0.16.17
a7de289a 5Release: 2
ad7c69fa
AM
6License: GPL
7Group: Development/Languages
f11e9fe0 8#Source0Download: http://www.cix.co.uk/~mayday/
d1e9cf0f 9Source0: http://www.cix.co.uk/~mayday/dev86/Dev86src-%{version}.tar.gz
549a0d65 10# Source0-md5: e7bbfdbe61c2fb964994a087e29b0087
ad7c69fa 11Patch0: Dev86src-noroot.patch
726244e8 12Patch1: Dev86src-opt.patch
79386f7d 13URL: http://homepage.ntlworld.com/robert.debath/
75215f97 14Requires: bin86
eb0bf301 15ExclusiveArch: %{ix86}
f274ed64 16BuildRoot: %{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
22Bcc is a simple C compiler that produces 8086 assembler, in addition
23compiler compile time options allow 80386 or 6809 versions. The
24compiler understands traditional K&R C with just the restriction that
25bit fields are mapped to one of the other integer types.
26
8c14594a
JR
27%description -l pl.UTF-8
28Bcc jest prostym kompilatorem C tworzącym pliki asemblerowe 8086,
ad7c69fa 29a dodatkowo pozwala na wybranie wersji 80386 lub 6809. Kompilator
8c14594a
JR
30rozumie tradycyjne C K&R z takim ograniczeniem, że pola bitowe
31są 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
38mv -f bootblocks/README README.bootblocks
39mv -f copt/README README.copt
40mv -f dis88/README README.dis88
41mv -f elksemu/README README.elksemu
42mv -f unproto/README README.unproto
43
ad7c69fa 44%build
63acc6f4
JB
45CC="%{__cc}" \
46%{__make} all other \
47 OPT="%{rpmcflags}" <<!FooBar!
ad7c69fa
AM
485
49quit
50!FooBar!
51
52%install
53rm -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 61cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc
ad7c69fa 62
6b452b5b 63ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86
64ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/size86
ad7c69fa 65
726244e8
JB
66# these are separated in bin86 package
67rm -f $RPM_BUILD_ROOT%{_bindir}/{as86,ld86}
68rm -f $RPM_BUILD_ROOT/usr/man/man1/{as,ld}86.1*
0af5fdb9 69# move man pages where they belong
6b452b5b 70install -d $RPM_BUILD_ROOT%{_mandir}
b1e1f518 71mv -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 77rm -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/*
This page took 0.056523 seconds and 4 git commands to generate.