]> git.pld-linux.org Git - packages/bcc.git/blame - bcc.spec
- release 4
[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
7b0d8521 5Release: 4
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 18# don't try to strip Linux-8086 objects
7d6c1aee 19# TODO: use _noautostrip
4aacfb22
JB
20%define no_install_post_strip 1
21
ad7c69fa
AM
22%description
23Bcc is a simple C compiler that produces 8086 assembler, in addition
24compiler compile time options allow 80386 or 6809 versions. The
25compiler understands traditional K&R C with just the restriction that
26bit fields are mapped to one of the other integer types.
27
8c14594a
JR
28%description -l pl.UTF-8
29Bcc jest prostym kompilatorem C tworzącym pliki asemblerowe 8086,
ad7c69fa 30a dodatkowo pozwala na wybranie wersji 80386 lub 6809. Kompilator
8c14594a
JR
31rozumie tradycyjne C K&R z takim ograniczeniem, że pola bitowe
32są odwzorowywane do jednego z innych typów całkowitych.
ad7c69fa
AM
33
34%prep
35%setup -q -n dev86-%{version}
6b452b5b 36%patch0 -p1
37%patch1 -p1
ad7c69fa 38
02103d98
ER
39mv -f bootblocks/README README.bootblocks
40mv -f copt/README README.copt
41mv -f dis88/README README.dis88
42mv -f elksemu/README README.elksemu
43mv -f unproto/README README.unproto
44
ad7c69fa 45%build
63acc6f4 46CC="%{__cc}" \
4cc830eb 47%{__make} -j1 all other \
63acc6f4 48 OPT="%{rpmcflags}" <<!FooBar!
ad7c69fa
AM
495
50quit
51!FooBar!
52
53%install
54rm -rf $RPM_BUILD_ROOT
55
4cc830eb 56%{__make} -j1 install-all \
6b452b5b 57 DIST=$RPM_BUILD_ROOT
ad7c69fa 58
726244e8
JB
59# FFU (dis88/Makefile is not ready)
60# MANDIR=%{_mandir}
61
6b452b5b 62cp -R libc/kinclude $RPM_BUILD_ROOT%{_libdir}/bcc
ad7c69fa 63
6b452b5b 64ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/nm86
65ln -sf objdump86 $RPM_BUILD_ROOT%{_bindir}/size86
ad7c69fa 66
726244e8
JB
67# these are separated in bin86 package
68rm -f $RPM_BUILD_ROOT%{_bindir}/{as86,ld86}
69rm -f $RPM_BUILD_ROOT/usr/man/man1/{as,ld}86.1*
0af5fdb9 70# move man pages where they belong
6b452b5b 71install -d $RPM_BUILD_ROOT%{_mandir}
b1e1f518 72mv -f $RPM_BUILD_ROOT/usr/man/* $RPM_BUILD_ROOT%{_mandir}
4aacfb22
JB
73
74%{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_bindir}/{ar86,bcc,elksemu,objdump86}}
75%{!?debug:strip -R .comment -R .note $RPM_BUILD_ROOT%{_libdir}/bcc/{bcc*,copt,unproto}}
6b452b5b 76
ad7c69fa 77%clean
6b452b5b 78rm -rf $RPM_BUILD_ROOT
ad7c69fa
AM
79
80%files
81%defattr(644,root,root,755)
4aacfb22 82%doc Changes Contributors README*
4aacfb22 83%attr(755,root,root) %{_bindir}/ar86
726244e8 84%attr(755,root,root) %{_bindir}/bcc
4aacfb22 85%attr(755,root,root) %{_bindir}/dis86
726244e8
JB
86%attr(755,root,root) %{_bindir}/elksemu
87%attr(755,root,root) %{_bindir}/makeboot
ad7c69fa 88%attr(755,root,root) %{_bindir}/nm86
726244e8 89%attr(755,root,root) %{_bindir}/objdump86
ad7c69fa 90%attr(755,root,root) %{_bindir}/size86
4aacfb22 91%dir %{_libdir}/bcc
726244e8 92%attr(755,root,root) %{_libdir}/bcc/as86_encap
0af5fdb9 93%attr(755,root,root) %{_libdir}/bcc/bcc-cc1
726244e8 94%attr(755,root,root) %{_libdir}/bcc/bcc-cpp
0af5fdb9
AM
95%attr(755,root,root) %{_libdir}/bcc/copt
96%attr(755,root,root) %{_libdir}/bcc/unproto
4aacfb22
JB
97%{_libdir}/bcc/i386
98%{_libdir}/bcc/include
99%{_libdir}/bcc/kinclude
726244e8
JB
100%{_libdir}/bcc/crt*.o
101%{_libdir}/bcc/lib*.a
102%{_libdir}/bcc/rules.*
ad7c69fa 103%{_mandir}/man1/*
This page took 0.14339 seconds and 4 git commands to generate.