]> git.pld-linux.org Git - packages/ccache.git/blame - ccache.spec
- updated to 3.1.2
[packages/ccache.git] / ccache.spec
CommitLineData
4321e8e2 1Summary: Compiler cache
b23bd5c7
ER
2Summary(pl.UTF-8): Przyspieszacz kompilowania
3Summary(pt_BR.UTF-8): Cache para compiladores C/C++
8b92ebec 4Name: ccache
a7fd0584 5Version: 3.1.2
bb2da46b 6Release: 1
5b5229a4 7License: GPL v3
8b92ebec 8Group: Development/Tools
f286d628 9Source0: http://samba.org/ftp/ccache/%{name}-%{version}.tar.bz2
a7fd0584 10# Source0-md5: 213e4271c10133092c094ea371c409bb
7cb1815a 11Patch0: %{name}-nohash_size_mtime.patch
4321e8e2 12URL: http://ccache.samba.org/
b69824c3 13BuildRequires: automake
ba51398f 14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
fb6cdf11 15
d8626a6e
ER
16%define _libdir %{_prefix}/%{_lib}/%{name}
17
8b92ebec 18%description
19ccache is a compiler cache. It acts as a caching pre-processor to
20C/C++ compilers, using the -E compiler switch and a hash to detect
21when a compilation can be satisfied from cache. This often results in
22a 5 to 10 times speedup in common compilations.
23
40d90c5c
JR
24%description -l pl.UTF-8
25ccache działa jako cachujący preprocesor dla kompilatorów C/C++. Przy
26użyciu opcji kompilatora -E oraz tablicy haszującej do wykrywania, czy
27do kompilacji wystarczy zawartość cache. Daje to zazwyczaj
4321e8e2 28przyspieszenie kompilacji 5 do 10 razy.
8b92ebec 29
40d90c5c
JR
30%description -l pt_BR.UTF-8
31ccache é um cache para compiladores. Ele funciona mantendo um cache de
32pré-processamento para compiladores C/C++ utilizando-se do parâmetro
33- -E e de um hash para detectar quando uma compilação pode ser
ba51398f 34 reaproveitada de um cache armazenado em disco. O ganho de tempo em
40d90c5c 35 compilações comuns pode chegar a uma escala de até 10 vezes em relação
ba51398f 36 ao tempo normal.
37
d8626a6e
ER
38%package wrapper
39Summary: Symlinks for c++/cc/g++/gcc
b23bd5c7 40Summary(pl.UTF-8): Dowiązania symboliczne do c++/cc/g++/gcc
d8626a6e 41Group: Development/Tools
04b1fe9f 42Requires: %{name} = %{version}-%{release}
d8626a6e
ER
43
44%description wrapper
bfcd2997
JB
45This package contains the softlinks to ccache for each compiler.
46
40d90c5c
JR
47%description wrapper -l pl.UTF-8
48Ten pakiet zawiera dowiązania symboliczne do ccache dla każdego
bfcd2997 49kompilatora.
d8626a6e 50
8b92ebec 51%prep
6a72a66c 52%setup -q
f286d628 53%patch0 -p1
8b92ebec 54
55%build
b69824c3 56cp -f /usr/share/automake/config.* .
8b92ebec 57%configure
58
59%{__make}
60
61%install
62rm -rf $RPM_BUILD_ROOT
4321e8e2 63
7cb1815a 64install -d $RPM_BUILD_ROOT/etc/env.d
65
81dca979 66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
8b92ebec 68
7cb1815a 69for X in CCACHE_DIR CCACHE_TEMPDIR CCACHE_LOGFILE CCACHE_PATH CCACHE_CC CCACHE_PREFIX \
70 CCACHE_DISABLE CCACHE_READONLY CCACHE_CPP2 CCACHE_NOSTATS CCACHE_NLEVELS \
71 CCACHE_HARDLINK CCACHE_RECACHE CCACHE_UMASK CCACHE_HASHDIR CCACHE_UNIFY \
72 CCACHE_EXTENSION CCACHE_NOHASH_SIZE_MTIME
73do
74 echo "#${X}=\"\"" > $RPM_BUILD_ROOT/etc/env.d/${X}
75done
76
d8626a6e
ER
77install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/profile.d}
78for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do
79 ln -s ../../bin/%{name} $RPM_BUILD_ROOT%{_libdir}/$cc
80done
81echo 'export PATH=%{_libdir}:$PATH' > \
82 $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh
83
8b92ebec 84%clean
85rm -fr $RPM_BUILD_ROOT
86
87%files
88%defattr(644,root,root,755)
f286d628 89%doc AUTHORS.txt MANUAL.txt NEWS.txt README.txt
8b92ebec 90%attr(755,root,root) %{_bindir}/ccache
91%{_mandir}/man1/ccache*
9a2f9f9c 92%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
d8626a6e
ER
93
94%files wrapper
95%defattr(644,root,root,755)
96%attr(755,root,root) /etc/profile.d/%{name}.sh
97%dir %{_libdir}
98%attr(755,root,root) %{_libdir}/*
This page took 0.07317 seconds and 4 git commands to generate.