diff options
author | Elan Ruusamäe | 2019-06-21 14:06:00 (GMT) |
---|---|---|
committer | Elan Ruusamäe | 2019-06-21 14:06:00 (GMT) |
commit | 1903a89368b71180a24f3f1b1cd84e15996fb705 (patch) | |
tree | 4c86702b852dd36cc3ed5f08c132ab1dbf591f9e | |
parent | ee176c971fe47718a33be72717fa8888cbcc60ac (diff) | |
download | ccache-1903a89368b71180a24f3f1b1cd84e15996fb705.zip ccache-1903a89368b71180a24f3f1b1cd84e15996fb705.tar.gz |
fix wrapper paths for x32auto/th/ccache-3.6-2
-rw-r--r-- | ccache.spec | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ccache.spec b/ccache.spec index 696394c..75014e5 100644 --- a/ccache.spec +++ b/ccache.spec @@ -3,7 +3,7 @@ Summary(pl.UTF-8): Pamięć podręczna dla kompilatora Summary(pt_BR.UTF-8): Cache para compiladores C/C++ Name: ccache Version: 3.6 -Release: 1 +Release: 2 License: GPL v3+ Group: Development/Tools Source0: https://www.samba.org/ftp/ccache/%{name}-%{version}.tar.xz @@ -76,7 +76,12 @@ install -d $RPM_BUILD_ROOT/etc/env.d V=1 install -d $RPM_BUILD_ROOT{%{_bindir},%{pkglibexecdir},/etc/profile.d} -for cc in cc c++ g++ gcc %{_target_cpu}-pld-linux-gcc %{_target_cpu}-pld-linux-g++; do +%ifarch x32 +target=x86_64-%{_target_vendor}-%{_target_os}-gnux32 +%else +target=%{_target_cpu}-%{_target_vendor}-%{_target_os} +%endif +for cc in cc c++ g++ gcc $target-gcc $target-g++; do ln -s ../../bin/%{name} $RPM_BUILD_ROOT%{pkglibexecdir}/$cc done echo 'export PATH=%{pkglibexecdir}:$PATH' > \ @@ -99,5 +104,5 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{pkglibexecdir}/cc %attr(755,root,root) %{pkglibexecdir}/g++ %attr(755,root,root) %{pkglibexecdir}/gcc -%attr(755,root,root) %{pkglibexecdir}/%{_target_cpu}-pld-linux-g++ -%attr(755,root,root) %{pkglibexecdir}/%{_target_cpu}-pld-linux-gcc +%attr(755,root,root) %{pkglibexecdir}/*-g++ +%attr(755,root,root) %{pkglibexecdir}/*-gcc |