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