SPECS: ccache.spec - -nohash_size_mtime.patch: add support to turn...

twittner twittner at pld-linux.org
Mon Dec 26 08:23:22 CET 2005


Author: twittner                     Date: Mon Dec 26 07:23:22 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- -nohash_size_mtime.patch: add support to turn off hasing the
  compiler size and mtime via a enviroment variable
  CCACHE_NOHASH_SIZE_MTIME (from FreeBSD cvs)
- add support for /etc/env.d

---- Files affected:
SPECS:
   ccache.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: SPECS/ccache.spec
diff -u SPECS/ccache.spec:1.18 SPECS/ccache.spec:1.19
--- SPECS/ccache.spec:1.18	Tue Dec 13 19:54:06 2005
+++ SPECS/ccache.spec	Mon Dec 26 08:23:17 2005
@@ -4,11 +4,13 @@
 Summary(pt_BR):	Cache para compiladores C/C++
 Name:		ccache
 Version:	2.4
-Release:	1.3
+Release:	1.4
 License:	GPL
 Group:		Development/Tools
 Source0:	http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz
 # Source0-md5:	73c1ed1e767c1752dd0f548ec1e66ce7
+# http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/ccache/Makefile?rev=1.35&content-type=text/x-cvsweb-markup
+Patch0:		%{name}-nohash_size_mtime.patch
 URL:		http://ccache.samba.org/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -51,6 +53,7 @@
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %{__aclocal}
@@ -63,9 +66,19 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT/etc/env.d
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+for X in CCACHE_DIR CCACHE_TEMPDIR CCACHE_LOGFILE CCACHE_PATH CCACHE_CC CCACHE_PREFIX \
+	CCACHE_DISABLE CCACHE_READONLY CCACHE_CPP2 CCACHE_NOSTATS CCACHE_NLEVELS \
+	CCACHE_HARDLINK CCACHE_RECACHE CCACHE_UMASK CCACHE_HASHDIR CCACHE_UNIFY \
+	CCACHE_EXTENSION CCACHE_NOHASH_SIZE_MTIME
+do
+	echo "#${X}=\"\"" > $RPM_BUILD_ROOT/etc/env.d/${X}
+done
+
 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
@@ -81,6 +94,7 @@
 %doc README
 %attr(755,root,root) %{_bindir}/ccache
 %{_mandir}/man1/ccache*
+%attr(644,root,root) %config(noreplace,missingok) %verify(not md5 size mtime) /etc/env.d/*
 
 %files wrapper
 %defattr(644,root,root,755)
@@ -94,6 +108,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2005/12/26 07:23:17  twittner
+- -nohash_size_mtime.patch: add support to turn off hasing the
+  compiler size and mtime via a enviroment variable
+  CCACHE_NOHASH_SIZE_MTIME (from FreeBSD cvs)
+- add support for /etc/env.d
+
 Revision 1.18  2005/12/13 18:54:06  qboosh
 - fixed en, added pl for -wrapper
 
@@ -105,6 +125,13 @@
 
 Revision 1.15  2005/08/07 21:56:21  twittner
 - use one `make install DESTDIR=... ' instead of 3x install foo ...
+
+$Log$
+Revision 1.19  2005/12/26 07:23:17  twittner
+- -nohash_size_mtime.patch: add support to turn off hasing the
+  compiler size and mtime via a enviroment variable
+  CCACHE_NOHASH_SIZE_MTIME (from FreeBSD cvs)
+- add support for /etc/env.d
 
 Revision 1.14  2004/09/13 20:15:07  areq
 - 2.4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ccache.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list