1 Summary: Compiler cache
2 Summary(pl.UTF-8): Przyspieszacz kompilowania
3 Summary(pt_BR.UTF-8): Cache para compiladores C/C++
8 Group: Development/Tools
9 Source0: http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz
10 # Source0-md5: 73c1ed1e767c1752dd0f548ec1e66ce7
11 Patch0: %{name}-nohash_size_mtime.patch
12 Patch1: %{name}-utimes.patch
13 URL: http://ccache.samba.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _libdir %{_prefix}/%{_lib}/%{name}
21 ccache is a compiler cache. It acts as a caching pre-processor to
22 C/C++ compilers, using the -E compiler switch and a hash to detect
23 when a compilation can be satisfied from cache. This often results in
24 a 5 to 10 times speedup in common compilations.
26 %description -l pl.UTF-8
27 ccache działa jako cachujący preprocesor dla kompilatorów C/C++. Przy
28 użyciu opcji kompilatora -E oraz tablicy haszującej do wykrywania, czy
29 do kompilacji wystarczy zawartość cache. Daje to zazwyczaj
30 przyspieszenie kompilacji 5 do 10 razy.
32 %description -l pt_BR.UTF-8
33 ccache é um cache para compiladores. Ele funciona mantendo um cache de
34 pré-processamento para compiladores C/C++ utilizando-se do parâmetro
35 - -E e de um hash para detectar quando uma compilação pode ser
36 reaproveitada de um cache armazenado em disco. O ganho de tempo em
37 compilações comuns pode chegar a uma escala de até 10 vezes em relação
41 Summary: Symlinks for c++/cc/g++/gcc
42 Summary(pl.UTF-8): Dowiązania symboliczne do c++/cc/g++/gcc
43 Group: Development/Tools
44 Requires: %{name} = %{version}-%{release}
47 This package contains the softlinks to ccache for each compiler.
49 %description wrapper -l pl.UTF-8
50 Ten pakiet zawiera dowiązania symboliczne do ccache dla każdego
61 cp -f /usr/share/automake/config.* .
67 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT/etc/env.d
72 DESTDIR=$RPM_BUILD_ROOT
74 for X in CCACHE_DIR CCACHE_TEMPDIR CCACHE_LOGFILE CCACHE_PATH CCACHE_CC CCACHE_PREFIX \
75 CCACHE_DISABLE CCACHE_READONLY CCACHE_CPP2 CCACHE_NOSTATS CCACHE_NLEVELS \
76 CCACHE_HARDLINK CCACHE_RECACHE CCACHE_UMASK CCACHE_HASHDIR CCACHE_UNIFY \
77 CCACHE_EXTENSION CCACHE_NOHASH_SIZE_MTIME
79 echo "#${X}=\"\"" > $RPM_BUILD_ROOT/etc/env.d/${X}
82 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/profile.d}
83 for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do
84 ln -s ../../bin/%{name} $RPM_BUILD_ROOT%{_libdir}/$cc
86 echo 'export PATH=%{_libdir}:$PATH' > \
87 $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh
90 rm -fr $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/ccache
96 %{_mandir}/man1/ccache*
97 %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) /etc/profile.d/%{name}.sh
103 %attr(755,root,root) %{_libdir}/*