X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=sdcc.spec;h=862be2a9e4aee90f6b5caad7342b5b704d032dca;hb=b4649d69ac20fa5e21b79b754448c517a1ed9290;hp=1db35ce9acf4cab42e25ae6bf93511833c5f9ddb;hpb=510205c652e6e6ce1aac8b2451c01fbfa59f8417;p=fw%2Fsdcc diff --git a/sdcc.spec b/sdcc.spec index 1db35ce9..862be2a9 100644 --- a/sdcc.spec +++ b/sdcc.spec @@ -1,43 +1,52 @@ -Summary: Small Device C Compiler -Name: sdcc -Version: 2.2.2 -Release: 0.20010225 -Copyright: GPL -Group: Applications/Engineering -Source: sdcc-2.2.2.tar.gz -URL: http://sdcc.sourceforge.net/ -Packager: Stephen Williams - -BuildRoot: /tmp/sdcc +# +# spec file for package sdcc +# + +Name: sdcc +Requires: /bin/sh +License: GPL, LGPL +Group: Applications/Engineering +Provides: sdcc +Summary: Small Device C Compiler +Version: 2.3.7 +Release: 4 +Source: %{name}-%{version}.tar.bz2 +URL: http://sdcc.sourceforge.net/ +Packager: Bernhard Held +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -SDC is a C compiler for 8051 class and similar microcontrollers. -The packge includes the compiler, assemblers and linkers, a device +SDCC is a C compiler for 8051 class and similar microcontrollers. +The package includes the compiler, assemblers and linkers, a device simulator and a core library. The processors supported (to a varying -degree) include the 8051, avr and z80. +degree) include the 8051, ds390, z80, hc08, and PIC. %prep -%setup -n sdcc-2.2.2 +%setup -n sdcc %build -./configure --prefix=/usr/local -make all +./configure CFLAGS="$RPM_OPT_FLAGS" --prefix=/usr docdir=$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name} +make +cd doc +make +cd .. %install -make prefix=$RPM_BUILD_ROOT/usr/local install +rm -rf $RPM_BUILD_ROOT/usr +make prefix=$RPM_BUILD_ROOT/usr install +cd doc +make install +cd .. %files - -%attr(-,root,root) /usr/local/bin/sdcc -%attr(-,root,root) /usr/local/bin/sdcpp -%attr(-,root,root) /usr/local/bin/asx8051 -%attr(-,root,root) /usr/local/bin/aslink -%attr(-,root,root) /usr/local/bin/packihx -%attr(-,root,root) /usr/local/bin/sdcdb -%attr(-,root,root) /usr/local/share/sdcc - -%attr(-,root,root) /usr/local/bin/s51 -%attr(-,root,root) /usr/local/bin/savr -%attr(-,root,root) /usr/local/bin/sz80 - -%attr(-,root,root) %doc /usr/local/doc/ucsim +%defattr(-,root,root) +/usr/bin +/usr/share/sdcc/include +/usr/share/sdcc/lib +%doc %{_defaultdocdir} + +%changelog +* Sun Jan 04 2004 - bernhard@bernhardheld.de +- updated +* Sat Apr 27 2002 - steve@icarus.com +- first version from Stephen Williams