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