SPECS: ccache.spec - wrapper subpackage
glen
glen at pld-linux.org
Sun Dec 11 23:58:21 CET 2005
Author: glen Date: Sun Dec 11 22:58:21 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- wrapper subpackage
---- Files affected:
SPECS:
ccache.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/ccache.spec
diff -u SPECS/ccache.spec:1.15 SPECS/ccache.spec:1.16
--- SPECS/ccache.spec:1.15 Sun Aug 7 23:56:21 2005
+++ SPECS/ccache.spec Sun Dec 11 23:58:16 2005
@@ -4,7 +4,7 @@
Summary(pt_BR): Cache para compiladores C/C++
Name: ccache
Version: 2.4
-Release: 1
+Release: 1.2
License: GPL
Group: Development/Tools
Source0: http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz
@@ -14,6 +14,8 @@
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
C/C++ compilers, using the -E compiler switch and a hash to detect
@@ -34,6 +36,14 @@
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
+
+%description wrapper
+This package contains the softlinks to distcc for each compiler.
+
%prep
%setup -q
@@ -51,6 +61,13 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+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
@@ -60,12 +77,21 @@
%attr(755,root,root) %{_bindir}/ccache
%{_mandir}/man1/ccache*
+%files wrapper
+%defattr(644,root,root,755)
+%attr(755,root,root) /etc/profile.d/%{name}.sh
+%dir %{_libdir}
+%attr(755,root,root) %{_libdir}/*
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2005/12/11 22:58:16 glen
+- wrapper subpackage
+
Revision 1.15 2005/08/07 21:56:21 twittner
- use one `make install DESTDIR=... ' instead of 3x install foo ...
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/ccache.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list