Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37567929
en ru br
ALT Linux repos
S:0.9.27-alt4.740.g347c036
5.0: 0.9.23-alt4
4.1: 0.9.23-alt4
4.0: 0.9.23-alt4
3.0: 0.9.22-alt1

Group :: Development/C
RPM: tcc

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: tcc
Version: 0.9.22
Release: alt1

Summary: The smallest ANSI C compiler
Group: Development/C
License: LGPL

URL: http://fabrice.bellard.free.fr/tcc/
Source: %name-%version.tar.bz2

# use RPM_OPT_FLAGS, remove hardcoded -march=i386

Patch0: %name-0.9.22-alt-Makefile.patch

%description
TCC (for Tiny C Compiler) is a small, fast, unlimited and safe ANSI C
compiler.  It generates optimized x86 code, and can compile, assemble,
and link several times faster than 'gcc -O0'.  Any C dynamic library
can be used directly.  It includes an optional memory and bounds
checker, and bounds-checked code can be mixed freely with standard
code.  C script is also supported via the usual hash-bang mechanism.

%prep
%setup -q
%patch0 -p1
%__subst -p 's/\<expect *(/tcc_expect(/g' *.[ch]
%__subst -p 's,/usr/local/bin/,%_bindir/,g' *

%build
%configure
%make_build

%install
%makeinstall docdir=tmp

%files
%doc Changelog README TODO tcc-doc.html
%_bindir/%name
%_bindir/arm-%name
%_bindir/c67-%name
%_man1dir/%name.*
%dir %_libdir/%name
%_libdir/%name/bcheck.o
%_libdir/%name/libtcc1.a
%dir %_libdir/%name/include
%_libdir/%name/include/*.h

# XXX lib%name-devel ?

%_includedir/lib%name.h
%_libdir/lib%name.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin