X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ccache.spec;h=7dc3013fbbf7a0fc0fe33382c65203d859fff6d6;hb=bfcd299760cbe473a2852021790d09bf7ff771e2;hp=b6b6078d356a29682eb9a63a8eb7f3d9929838b2;hpb=4321e8e2ce359099b4e75520868ff5d6b49688e3;p=packages%2Fccache.git diff --git a/ccache.spec b/ccache.spec index b6b6078..7dc3013 100644 --- a/ccache.spec +++ b/ccache.spec @@ -1,13 +1,19 @@ Summary: Compiler cache -Summary(pl): Przyspieszacz kompilowania +Summary(pl): Przyspieszacz kompilowania +Summary(pt_BR): Cache para compiladores C/C++ Name: ccache -Version: 1.8 -Release: 1 +Version: 2.4 +Release: 1.3 License: GPL Group: Development/Tools Source0: http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz +# Source0-md5: 73c1ed1e767c1752dd0f548ec1e66ce7 URL: http://ccache.samba.org/ -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +BuildRequires: autoconf +BuildRequires: automake +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _libdir %{_prefix}/%{_lib}/%{name} %description ccache is a compiler cache. It acts as a caching pre-processor to @@ -15,34 +21,68 @@ C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. -%description -l pl +%description -l pl ccache dzia³a jako cachuj±cy preprocesor dla kompilatorów C/C++. Przy u¿yciu opcji kompilatora -E oraz tablicy haszuj±cej do wykrywania, czy do kompilacji wystarczy zawarto¶æ cache. Daje to zazwyczaj przyspieszenie kompilacji 5 do 10 razy. +%description -l pt_BR +ccache é um cache para compiladores. Ele funciona mantendo um cache de +pré-processamento para compiladores C/C++ utilizando-se do parâmetro +- -E e de um hash para detectar quando uma compilação pode ser + reaproveitada de um cache armazenado em disco. O ganho de tempo em + compilações comuns pode chegar a uma escala de até 10 vezes em relação + ao tempo normal. + +%package wrapper +Summary: Symlinks for c++/cc/g++/gcc +Summary(pl): Dowi±zania symboliczne do c++/cc/g++/gcc +Group: Development/Tools +Requires: %{name} = %{version}-%{release} + +%description wrapper +This package contains the softlinks to ccache for each compiler. + +%description wrapper -l pl +Ten pakiet zawiera dowi±zania symboliczne do ccache dla ka¿dego +kompilatora. + %prep -%setup -q -n ccache-1.8 +%setup -q %build +%{__aclocal} +%{__autoconf} +cp -f /usr/share/automake/config.* . %configure %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} -install ccache $RPM_BUILD_ROOT%{_bindir} -install ccache.1 $RPM_BUILD_ROOT%{_mandir}/man1 +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -9nf README +install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/profile.d} +for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do + ln -s ../../bin/%{name} $RPM_BUILD_ROOT%{_libdir}/$cc +done +echo 'export PATH=%{_libdir}:$PATH' > \ + $RPM_BUILD_ROOT/etc/profile.d/%{name}.sh %clean rm -fr $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc README %attr(755,root,root) %{_bindir}/ccache %{_mandir}/man1/ccache* -%doc *.gz + +%files wrapper +%defattr(644,root,root,755) +%attr(755,root,root) /etc/profile.d/%{name}.sh +%dir %{_libdir} +%attr(755,root,root) %{_libdir}/*