]> git.pld-linux.org Git - packages/sdcc.git/blame - sdcc.spec
- readded, with directory names updated
[packages/sdcc.git] / sdcc.spec
CommitLineData
e2899b45 1%define _snap_date 20100201
2%define _snap_id 5667
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
e2899b45 7Version: 2.9.7
1ed556ae 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
e2899b45 12# Source0-md5: 3ac7944d920410df511d5595a25bd5f1
30c720f8 13Patch0: %{name}-mcs51-pcall.patch
14Patch1: %{name}-mcs51-stack-probe.patch
15Patch2: %{name}-gstabs.patch
2766fe68 16URL: http://sdcc.sourceforge.net/
26f3710c 17BuildRequires: autoconf
cd12415c 18BuildRequires: automake
79712cbc
AM
19BuildRequires: bison
20BuildRequires: flex
2804323a 21BuildRequires: gc-devel
21a15d8c 22BuildRequires: gputils
64937913 23BuildRequires: latex2html
79712cbc 24BuildRequires: libstdc++-devel
64937913 25BuildRequires: lyx >= 1.4.4
ecf69603 26BuildRequires: texlive-fonts-cmsuper
27BuildRequires: texlive-fonts-type1-urw
28BuildRequires: texlive-format-pdflatex
29BuildRequires: texlive-latex-ams
30BuildRequires: texlive-makeindex
31BuildRequires: texlive-tex-babel
80a5a011 32Obsoletes: ucsim
d62c156f 33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
2766fe68 34
21a15d8c 35%define _noautostrip .*sdcc.lib.*\\.\\(lib\\|a\\)
36
2766fe68 37%description
79712cbc 38SDCC is retargettable, optimizing ANSI - C compiler. The current
25ff8dc3
JK
39version targets the Intel 8051 and recently the Zilog Z80 based MCUs.
40SDCC can be retargeted for other 8 bit MCUs or PICs and some day soon
41will be. Supported data types are short (8 bits, 1 byte), char (8
42bits, 1 byte) , int (16 bits, 2 bytes ), long (32 bit, 4 bytes) and
79712cbc
AM
43float (4 byte IEEE). SDCC also comes with the source level debugger
44SDCDB.
45
2d52e5b2 46%description -l pl.UTF-8
25ff8dc3 47SDCC jest kompilatorem ANSI C. Aktualna wersja wspiera procesory Intel
2d52e5b2
JR
488051 oraz Zilog Z80. SDCC może być łatwo zmodyfikowany by wspierać
49inne 8 bitowe jednostki. Wspierane typy danych to short (8 bitów, 1
50bajt), char (8 bitów, 1 bajt), int (16 bitów, 2 bajty), long (32 bity,
514 bajty) oraz float (4 bajty IEEE). SDCC dostarcza również debugger
50d48a2f 52oparty 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 61find -type f -name 'configure.??' | while read FILE; do
62 cd $(dirname "$FILE")
5806496d 63 %{__autoconf}
64937913 64 cd -
25ff8dc3 65done
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 77cd device/lib
20adaccf 78%{__make} -j1 model-mcs51-stack-auto
79%{__make} -j1 model-mcs51-xstack-auto
386e1cdb 80cd -
81
2766fe68
MP
82%install
83rm -rf $RPM_BUILD_ROOT
26f3710c 84install -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
96rm -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
This page took 0.077844 seconds and 4 git commands to generate.