]> git.pld-linux.org Git - packages/sdcc.git/blame - sdcc.spec
- tabs in preamble
[packages/sdcc.git] / sdcc.spec
CommitLineData
9bd8989f 1%define _snap_date 20060817
2%define _snap_id 4339
3
396dd56d 4Summary: C compiler for Intel 8051 and Zilog Z80
6e9646c0 5Summary(pl.UTF-8): Kompilator C dla Intel 8051 i Zilog Z80
2766fe68 6Name: sdcc
9bd8989f 7Version: 2.6.1
8Release: 0.%{_snap_date}.1
2766fe68 9License: GPL
79712cbc 10Group: Development/Languages
9bd8989f 11Source0: http://sdcc.sourceforge.net/snapshots/sdcc-src/%{name}-src-%{_snap_date}-%{_snap_id}.tar.bz2
12# Source0-md5: 458994e708645c0901dda8e331013f50
2766fe68 13URL: http://sdcc.sourceforge.net/
26f3710c 14BuildRequires: autoconf
cd12415c 15BuildRequires: automake
79712cbc
AM
16BuildRequires: bison
17BuildRequires: flex
18BuildRequires: libstdc++-devel
9bd8989f 19BuildRequires: lyx
80a5a011 20Obsoletes: ucsim
d62c156f 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2766fe68
MP
22
23%description
79712cbc 24SDCC is retargettable, optimizing ANSI - C compiler. The current
25ff8dc3
JK
25version targets the Intel 8051 and recently the Zilog Z80 based MCUs.
26SDCC can be retargeted for other 8 bit MCUs or PICs and some day soon
27will be. Supported data types are short (8 bits, 1 byte), char (8
28bits, 1 byte) , int (16 bits, 2 bytes ), long (32 bit, 4 bytes) and
79712cbc
AM
29float (4 byte IEEE). SDCC also comes with the source level debugger
30SDCDB.
31
2d52e5b2 32%description -l pl.UTF-8
25ff8dc3 33SDCC jest kompilatorem ANSI C. Aktualna wersja wspiera procesory Intel
2d52e5b2
JR
348051 oraz Zilog Z80. SDCC może być łatwo zmodyfikowany by wspierać
35inne 8 bitowe jednostki. Wspierane typy danych to short (8 bitów, 1
36bajt), char (8 bitów, 1 bajt), int (16 bitów, 2 bajty), long (32 bity,
374 bajty) oraz float (4 bajty IEEE). SDCC dostarcza również debugger
50d48a2f 38oparty na emulatorze ucsim.
2766fe68
MP
39
40%prep
25ff8dc3 41%setup -qn %{name}
2766fe68
MP
42
43%build
cd12415c 44
45cp -f /usr/share/automake/config.* sim/ucsim/
46
c4869c98 47for 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 52done
9bd8989f 53
54%configure \
55 --enable-doc
56
2766fe68
MP
57%{__make}
58
59%install
60rm -rf $RPM_BUILD_ROOT
26f3710c 61install -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
73rm -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
This page took 0.088475 seconds and 4 git commands to generate.