]> git.pld-linux.org Git - packages/sdcc.git/blame - sdcc.spec
- for sdcc 2.7.4
[packages/sdcc.git] / sdcc.spec
CommitLineData
2804323a 1%define _snap_date 20070713
2%define _snap_id 4880
9bd8989f 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
2804323a 7Version: 2.7.2
9bd8989f 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
2804323a 12# Source0-md5: 6aa8d11dd0af014124d7ae10f92f2bfe
13Patch0: %{name}-simfix.patch
2766fe68 14URL: http://sdcc.sourceforge.net/
26f3710c 15BuildRequires: autoconf
cd12415c 16BuildRequires: automake
79712cbc
AM
17BuildRequires: bison
18BuildRequires: flex
2804323a 19BuildRequires: gc-devel
64937913 20BuildRequires: latex2html
79712cbc 21BuildRequires: libstdc++-devel
64937913 22BuildRequires: lyx >= 1.4.4
23BuildRequires: tetex-makeindex
80a5a011 24Obsoletes: ucsim
d62c156f 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2766fe68
MP
26
27%description
79712cbc 28SDCC is retargettable, optimizing ANSI - C compiler. The current
25ff8dc3
JK
29version targets the Intel 8051 and recently the Zilog Z80 based MCUs.
30SDCC can be retargeted for other 8 bit MCUs or PICs and some day soon
31will be. Supported data types are short (8 bits, 1 byte), char (8
32bits, 1 byte) , int (16 bits, 2 bytes ), long (32 bit, 4 bytes) and
79712cbc
AM
33float (4 byte IEEE). SDCC also comes with the source level debugger
34SDCDB.
35
2d52e5b2 36%description -l pl.UTF-8
25ff8dc3 37SDCC jest kompilatorem ANSI C. Aktualna wersja wspiera procesory Intel
2d52e5b2
JR
388051 oraz Zilog Z80. SDCC może być łatwo zmodyfikowany by wspierać
39inne 8 bitowe jednostki. Wspierane typy danych to short (8 bitów, 1
40bajt), char (8 bitów, 1 bajt), int (16 bitów, 2 bajty), long (32 bity,
414 bajty) oraz float (4 bajty IEEE). SDCC dostarcza również debugger
50d48a2f 42oparty na emulatorze ucsim.
2766fe68
MP
43
44%prep
25ff8dc3 45%setup -qn %{name}
2804323a 46%patch0 -p1
2766fe68
MP
47
48%build
2804323a 49find -type f -name 'configure.??' | while read FILE; do
50 cd $(dirname "$FILE")
5806496d 51 %{__autoconf}
64937913 52 cd -
25ff8dc3 53done
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
66rm -rf $RPM_BUILD_ROOT
26f3710c 67install -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
79rm -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
This page took 0.067267 seconds and 4 git commands to generate.