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