diff --git a/ccache.spec b/ccache.spec index f6fe961..daf3152 100644 --- a/ccache.spec +++ b/ccache.spec @@ -3,7 +3,7 @@ Name: ccache Version: 2.4 -Release: 3 +Release: 4%{?dist} Summary: C/C++ compiler cache Group: Development/Tools @@ -14,9 +14,9 @@ Patch0: %{name}-html-links.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description -ccache is a compiler cache. It acts as a caching pre-processor to +ccache is a compiler cache. It acts as a caching pre-processor to 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 +when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. @@ -29,13 +29,13 @@ a 5 to 10 times speedup in common compilations. %configure %{__make} %{?_smp_mflags} cat < %{name}.sh -if ! echo "\$PATH" | grep -q %{_libdir}/ccache/bin ; then - PATH="%{_libdir}/ccache/bin:\$PATH" +if ! echo "\$PATH" | grep -q %{_libdir}/ccache ; then + PATH="%{_libdir}/ccache:\$PATH" fi EOF cat < %{name}.csh -if ( "\$path" !~ *%{_libdir}/ccache/bin* ) then - set path = ( %{_libdir}/ccache/bin \$path ) +if ( "\$path" !~ *%{_libdir}/ccache* ) then + set path = ( %{_libdir}/ccache \$path ) endif EOF @@ -44,12 +44,12 @@ EOF rm -rf $RPM_BUILD_ROOT %{name}-%{version}.compilers make install DESTDIR=$RPM_BUILD_ROOT install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d -install -pm 755 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d -install -dm 755 $RPM_BUILD_ROOT%{_libdir}/ccache/bin +install -pm 644 %{name}.sh %{name}.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d +install -dm 755 $RPM_BUILD_ROOT%{_libdir}/ccache for name in %{compilers} ; do for c in $name %{_target_cpu}-%{_vendor}-%{_target_os}-$name ; do - ln -s %{_bindir}/ccache $RPM_BUILD_ROOT%{_libdir}/ccache/bin/$c - echo "%ghost %{_libdir}/ccache/bin/$c" >> %{name}-%{version}.compilers + ln -s %{_bindir}/ccache $RPM_BUILD_ROOT%{_libdir}/ccache/$c + echo "%ghost %{_libdir}/ccache/$c" >> %{name}-%{version}.compilers done done @@ -61,14 +61,14 @@ rm -fr $RPM_BUILD_ROOT %triggerin -- %{pkgs} for name in %{compilers} ; do for c in $name %{_target_cpu}-%{_vendor}-%{_target_os}-$name ; do - [ ! -x %{_bindir}/$c ] || ln -sf %{_bindir}/ccache %{_libdir}/ccache/bin/$c + [ ! -x %{_bindir}/$c ] || ln -sf %{_bindir}/ccache %{_libdir}/ccache/$c done done %triggerpostun -- %{pkgs} for name in %{compilers} ; do for c in $name %{_target_cpu}-%{_vendor}-%{_target_os}-$name ; do - [ -x %{_bindir}/$c ] || rm -f %{_libdir}/ccache/bin/$c + [ -x %{_bindir}/$c ] || rm -f %{_libdir}/ccache/$c done done @@ -79,11 +79,14 @@ done %config %{_sysconfdir}/profile.d/%{name}.*sh %{_bindir}/ccache %dir %{_libdir}/ccache -%dir %{_libdir}/ccache/bin %{_mandir}/man1/ccache.1* %changelog +* Sat Nov 26 2005 Ville Skyttä - 2.4-4 +- Drop "bin" from compiler symlink path. +- Make profile.d snippets non-executable (#35714). + * Sun May 1 2005 Ville Skyttä - 2.4-3 - Auto-symlink update: add compat-gcc-32 and compat-gcc-32-c++, drop bunch of no longer relevant compilers.