Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > by-pkgid > 37e040a0ce1cdf9b0109d4b456e515ac > files > 4

tcc-0.9.23-6mdv2009.0.src.rpm

Summary:	Tiny C Compiler
Name:		tcc
Version:	0.9.23
Release:	%mkrel 6
License:	GPL
Group:		Development/C
URL:		http://fabrice.bellard.free.fr/tcc/
Source0:	http://fabrice.bellard.free.fr/tcc/%{name}-%{version}.tar.bz2
Patch0:		tcc-0.9.23-DESTDIR.diff
# http://www.mail-archive.com/tinycc-devel%40nongnu.org/msg00297.html
Patch1:		tcc-0.9.23-binutils_fix.diff
Patch2:		tcc_0.9.23-2.diff
ExclusiveArch:	%{ix86}
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C 
compiler

%prep

%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1

# path fix
find -type f | xargs perl -pi -e "s|^#\!/usr/local/bin|#\!%{_bindir}|g"

# fix attribs
chmod 644 examples/*

%build

%configure

make CFLAGS="%{optflags}"
#make test

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_mandir}/man1

%makeinstall_std tcc_install libinstall


# cleanup
rm -rf %{buildroot}%{_docdir}/tcc

%if %mdkversion < 200900
%post -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -p /sbin/ldconfig
%endif

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc Changelog README TODO *.html examples
%defattr(-,root,root)
%{_bindir}/tcc
%{_libdir}/tcc/*.o
%{_libdir}/tcc/include/*.h
%{_libdir}/tcc/*.a
%{_libdir}/*.a
%{_includedir}/*.h
%{_mandir}/man1/tcc.1*




%changelog
* Wed Jul 23 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.9.23-6mdv2009.0
+ Revision: 242855
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Fri Aug 10 2007 Pascal Terjan <pterjan@mandriva.org> 0.9.23-4mdv2008.0
+ Revision: 61306
- Rebuild to sync x86_64


* Mon Feb 19 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.9.23-3mdv2007.0
+ Revision: 122783
- rebuild in order to get the same extension on x86_64
- Import tcc

* Mon Jun 05 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.23-2mdv2007.0
- fix #22862 (P1)
- added debian patches

* Fri Jun 02 2006 Oden Eriksson <oeriksson@mandriva.com> 0.9.23-1mdv2007.0
- 0.9.23

* Wed May 24 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.9.22-2mdk
- use %%mkrel 2
- rebuild with new toolchain

* Fri May 13 2005 Oden Eriksson <oeriksson@mandriva.com> 0.9.22-1mdk
- 0.9.22
- added P0 by Paul Furber to make is somewhat work under x86_64

* Sat Apr 24 2004 Michael Scherer <misc@mandrake.org> 0.9.20-1mdk
- New release 0.9.20