]>
Commit | Line | Data |
---|---|---|
2804323a | 1 | %define _snap_date 20070713 |
2 | %define _snap_id 4880 | |
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 |
2804323a | 7 | Version: 2.7.2 |
9bd8989f | 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 |
2804323a | 12 | # Source0-md5: 6aa8d11dd0af014124d7ae10f92f2bfe |
13 | Patch0: %{name}-simfix.patch | |
2766fe68 | 14 | URL: http://sdcc.sourceforge.net/ |
26f3710c | 15 | BuildRequires: autoconf |
cd12415c | 16 | BuildRequires: automake |
79712cbc AM |
17 | BuildRequires: bison |
18 | BuildRequires: flex | |
2804323a | 19 | BuildRequires: gc-devel |
64937913 | 20 | BuildRequires: latex2html |
79712cbc | 21 | BuildRequires: libstdc++-devel |
64937913 | 22 | BuildRequires: lyx >= 1.4.4 |
23 | BuildRequires: tetex-makeindex | |
80a5a011 | 24 | Obsoletes: ucsim |
d62c156f | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2766fe68 MP |
26 | |
27 | %description | |
79712cbc | 28 | SDCC is retargettable, optimizing ANSI - C compiler. The current |
25ff8dc3 JK |
29 | version targets the Intel 8051 and recently the Zilog Z80 based MCUs. |
30 | SDCC can be retargeted for other 8 bit MCUs or PICs and some day soon | |
31 | will be. Supported data types are short (8 bits, 1 byte), char (8 | |
32 | bits, 1 byte) , int (16 bits, 2 bytes ), long (32 bit, 4 bytes) and | |
79712cbc AM |
33 | float (4 byte IEEE). SDCC also comes with the source level debugger |
34 | SDCDB. | |
35 | ||
2d52e5b2 | 36 | %description -l pl.UTF-8 |
25ff8dc3 | 37 | SDCC jest kompilatorem ANSI C. Aktualna wersja wspiera procesory Intel |
2d52e5b2 JR |
38 | 8051 oraz Zilog Z80. SDCC może być łatwo zmodyfikowany by wspierać |
39 | inne 8 bitowe jednostki. Wspierane typy danych to short (8 bitów, 1 | |
40 | bajt), char (8 bitów, 1 bajt), int (16 bitów, 2 bajty), long (32 bity, | |
41 | 4 bajty) oraz float (4 bajty IEEE). SDCC dostarcza również debugger | |
50d48a2f | 42 | oparty na emulatorze ucsim. |
2766fe68 MP |
43 | |
44 | %prep | |
25ff8dc3 | 45 | %setup -qn %{name} |
2804323a | 46 | %patch0 -p1 |
2766fe68 MP |
47 | |
48 | %build | |
2804323a | 49 | find -type f -name 'configure.??' | while read FILE; do |
50 | cd $(dirname "$FILE") | |
5806496d | 51 | %{__autoconf} |
64937913 | 52 | cd - |
25ff8dc3 | 53 | done |
9bd8989f | 54 | |
55 | %configure \ | |
2804323a | 56 | --enable-doc \ |
57 | --enable-libgc \ | |
58 | --enable-ucsim \ | |
59 | --enable-xa \ | |
60 | --enable-serio \ | |
61 | --enable-statistic | |
9bd8989f | 62 | |
2766fe68 MP |
63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
26f3710c | 67 | install -d $RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp |
80a5a011 | 68 | |
69 | %{__make} install \ | |
70 | "DESTDIR=$RPM_BUILD_ROOT" \ | |
71 | "docdir=%{_docdir}/%{name}-%{version}" \ | |
72 | "STRIP=/bin/true" | |
2766fe68 | 73 | |
25ff8dc3 | 74 | # some cleanups in mess generated by make install |
eb778fab MP |
75 | #find $RPM_BUILD_ROOT -name "CVS" -type d | xargs rm -r |
76 | #mv $RPM_BUILD_ROOT%{_bindir}/*.el $RPM_BUILD_ROOT%{_libdir}/emacs/site-lisp | |
25ff8dc3 | 77 | |
2766fe68 MP |
78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %files | |
79712cbc | 82 | %defattr(644,root,root,755) |
25ff8dc3 JK |
83 | %doc %{_docdir}/%{name}-%{version} |
84 | %attr(755,root,root) %{_bindir}/* | |
85 | %{_datadir}/%{name} | |
eb778fab | 86 | #%{_libdir}/emacs/site-lisp/*.el |