]>
Commit | Line | Data |
---|---|---|
e2899b45 | 1 | %define _snap_date 20100201 |
2 | %define _snap_id 5667 | |
9bd8989f | 3 | |
396dd56d | 4 | Summary: C compiler for Intel 8051 and Zilog Z80 |
6e9646c0 | 5 | Summary(pl.UTF-8): Kompilator C dla Intel 8051 i Zilog Z80 |
2766fe68 | 6 | Name: sdcc |
e2899b45 | 7 | Version: 2.9.7 |
1ed556ae | 8 | Release: 0.%{_snap_date}.1 |
2766fe68 | 9 | License: GPL |
79712cbc | 10 | Group: Development/Languages |
9bd8989f | 11 | Source0: http://sdcc.sourceforge.net/snapshots/sdcc-src/%{name}-src-%{_snap_date}-%{_snap_id}.tar.bz2 |
e2899b45 | 12 | # Source0-md5: 3ac7944d920410df511d5595a25bd5f1 |
30c720f8 | 13 | Patch0: %{name}-mcs51-pcall.patch |
14 | Patch1: %{name}-mcs51-stack-probe.patch | |
15 | Patch2: %{name}-gstabs.patch | |
2766fe68 | 16 | URL: http://sdcc.sourceforge.net/ |
26f3710c | 17 | BuildRequires: autoconf |
cd12415c | 18 | BuildRequires: automake |
79712cbc AM |
19 | BuildRequires: bison |
20 | BuildRequires: flex | |
2804323a | 21 | BuildRequires: gc-devel |
21a15d8c | 22 | BuildRequires: gputils |
64937913 | 23 | BuildRequires: latex2html |
79712cbc | 24 | BuildRequires: libstdc++-devel |
64937913 | 25 | BuildRequires: lyx >= 1.4.4 |
ecf69603 | 26 | BuildRequires: texlive-fonts-cmsuper |
27 | BuildRequires: texlive-fonts-type1-urw | |
28 | BuildRequires: texlive-format-pdflatex | |
29 | BuildRequires: texlive-latex-ams | |
30 | BuildRequires: texlive-makeindex | |
31 | BuildRequires: texlive-tex-babel | |
80a5a011 | 32 | Obsoletes: ucsim |
d62c156f | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2766fe68 | 34 | |
21a15d8c | 35 | %define _noautostrip .*sdcc.lib.*\\.\\(lib\\|a\\) |
36 | ||
2766fe68 | 37 | %description |
79712cbc | 38 | SDCC is retargettable, optimizing ANSI - C compiler. The current |
25ff8dc3 JK |
39 | version targets the Intel 8051 and recently the Zilog Z80 based MCUs. |
40 | SDCC can be retargeted for other 8 bit MCUs or PICs and some day soon | |
41 | will be. Supported data types are short (8 bits, 1 byte), char (8 | |
42 | bits, 1 byte) , int (16 bits, 2 bytes ), long (32 bit, 4 bytes) and | |
79712cbc AM |
43 | float (4 byte IEEE). SDCC also comes with the source level debugger |
44 | SDCDB. | |
45 | ||
2d52e5b2 | 46 | %description -l pl.UTF-8 |
25ff8dc3 | 47 | SDCC jest kompilatorem ANSI C. Aktualna wersja wspiera procesory Intel |
2d52e5b2 JR |
48 | 8051 oraz Zilog Z80. SDCC może być łatwo zmodyfikowany by wspierać |
49 | inne 8 bitowe jednostki. Wspierane typy danych to short (8 bitów, 1 | |
50 | bajt), char (8 bitów, 1 bajt), int (16 bitów, 2 bajty), long (32 bity, | |
51 | 4 bajty) oraz float (4 bajty IEEE). SDCC dostarcza również debugger | |
50d48a2f | 52 | oparty na emulatorze ucsim. |
2766fe68 MP |
53 | |
54 | %prep | |
25ff8dc3 | 55 | %setup -qn %{name} |
2804323a | 56 | %patch0 -p1 |
d67fff5f | 57 | %patch1 -p1 |
30c720f8 | 58 | %patch2 -p1 |
2766fe68 MP |
59 | |
60 | %build | |
2804323a | 61 | find -type f -name 'configure.??' | while read FILE; do |
62 | cd $(dirname "$FILE") | |
5806496d | 63 | %{__autoconf} |
64937913 | 64 | cd - |
25ff8dc3 | 65 | done |
9bd8989f | 66 | |
67 | %configure \ | |
2804323a | 68 | --enable-doc \ |
69 | --enable-libgc \ | |
70 | --enable-ucsim \ | |
71 | --enable-xa \ | |
72 | --enable-serio \ | |
73 | --enable-statistic | |
9bd8989f | 74 | |
ecf69603 | 75 | %{__make} -j1 |
2766fe68 | 76 | |
386e1cdb | 77 | cd device/lib |
20adaccf | 78 | %{__make} -j1 model-mcs51-stack-auto |
79 | %{__make} -j1 model-mcs51-xstack-auto | |
386e1cdb | 80 | cd - |
81 | ||
2766fe68 MP |
82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
26f3710c | 84 | install -d $RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp |
80a5a011 | 85 | |
86 | %{__make} install \ | |
87 | "DESTDIR=$RPM_BUILD_ROOT" \ | |
88 | "docdir=%{_docdir}/%{name}-%{version}" \ | |
89 | "STRIP=/bin/true" | |
2766fe68 | 90 | |
25ff8dc3 | 91 | # some cleanups in mess generated by make install |
eb778fab MP |
92 | #find $RPM_BUILD_ROOT -name "CVS" -type d | xargs rm -r |
93 | #mv $RPM_BUILD_ROOT%{_bindir}/*.el $RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp | |
25ff8dc3 | 94 | |
2766fe68 MP |
95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %files | |
79712cbc | 99 | %defattr(644,root,root,755) |
25ff8dc3 JK |
100 | %doc %{_docdir}/%{name}-%{version} |
101 | %attr(755,root,root) %{_bindir}/* | |
102 | %{_datadir}/%{name} | |
eb778fab | 103 | #%{_libdir}/emacs/site-lisp/*.el |