Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d815124

Browse files
author
Luboš Luňák
committed
adjust specfile for optional clang symlinks
See previous commit. Providing an executable for a compiler that's not actually there can break things.
1 parent ef2ecba commit d815124

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

suse/icecream.spec.in

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ Requires: libstdc++-devel
5151
%description -n libicecream-devel
5252
icecream is the next generation distcc.
5353

54+
%package -n icecream-clang-wrappers
55+
Summary: Distributed Compile Wrappers for Clang
56+
Group: Development/Tools/Building
57+
Requires: icecream
58+
Supplements: packageand(icecream:llvm-clang)
59+
60+
%description -n icecream-clang-wrappers
61+
Wrapper symlinks for clang/clang++ for icecream distributed building.
62+
5463
%prep
5564
%setup -q -n icecc-%{version}
5665
# DO NOT ADD PATCHES without github reference
@@ -61,6 +70,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
6170
%configure \
6271
%if 0%{?suse_version} >= 1230
6372
--enable-clang-rewrite-includes \
73+
--enable-clang-wrappers \
6474
%endif
6575
--libexecdir %_libexecdir
6676
make %{?jobs:-j %jobs}
@@ -105,11 +115,15 @@ rm -rf -- %_localstatedir/cache/icecream/*
105115
%_sbindir/rcicecream
106116
%_mandir/man*/*
107117
%_libexecdir/icecc
118+
%exclude %_libexecdir/icecc/bin/clang
119+
%exclude %_libexecdir/icecc/bin/clang++
108120
%if 0%{?suse_version}
109121
%_sysconfdir/sysconfig/SuSEfirewall2.d/services/*
110122
%_localstatedir/adm/fillup-templates/sysconfig.icecream
111123
%if 0%{?suse_version} <= 1220
112124
/opt/icecream
125+
%exclude /opt/icecream/bin/clang
126+
%exclude /opt/icecream/bin/clang++
113127
%endif
114128
%endif
115129
%attr(-,icecream,icecream) %_localstatedir/cache/icecream
@@ -121,4 +135,13 @@ rm -rf -- %_localstatedir/cache/icecream/*
121135
%_libdir/libicecc.*
122136
%_libdir/pkgconfig/icecc.pc
123137

138+
%files -n icecream-clang-wrappers
139+
%defattr(-,root,root)
140+
%_libexecdir/icecc/bin/clang
141+
%_libexecdir/icecc/bin/clang++
142+
%if 0%{?suse_version} <= 1220
143+
/opt/icecream/bin/clang
144+
/opt/icecream/bin/clang++
145+
%endif
146+
124147
%changelog

0 commit comments

Comments
 (0)