Skip to content

Commit

Permalink
adjust specfile for optional clang symlinks
Browse files Browse the repository at this point in the history
See previous commit. Providing an executable for a compiler that's not
actually there can break things.
  • Loading branch information
Luboš Luňák committed Jan 7, 2013
1 parent ef2ecba commit d815124
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions suse/icecream.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ Requires: libstdc++-devel
%description -n libicecream-devel
icecream is the next generation distcc.

%package -n icecream-clang-wrappers
Summary: Distributed Compile Wrappers for Clang
Group: Development/Tools/Building
Requires: icecream
Supplements: packageand(icecream:llvm-clang)

%description -n icecream-clang-wrappers
Wrapper symlinks for clang/clang++ for icecream distributed building.

%prep
%setup -q -n icecc-%{version}
# DO NOT ADD PATCHES without github reference
Expand All @@ -61,6 +70,7 @@ export CXXFLAGS="$RPM_OPT_FLAGS"
%configure \
%if 0%{?suse_version} >= 1230
--enable-clang-rewrite-includes \
--enable-clang-wrappers \
%endif
--libexecdir %_libexecdir
make %{?jobs:-j %jobs}
Expand Down Expand Up @@ -105,11 +115,15 @@ rm -rf -- %_localstatedir/cache/icecream/*
%_sbindir/rcicecream
%_mandir/man*/*
%_libexecdir/icecc
%exclude %_libexecdir/icecc/bin/clang
%exclude %_libexecdir/icecc/bin/clang++
%if 0%{?suse_version}
%_sysconfdir/sysconfig/SuSEfirewall2.d/services/*
%_localstatedir/adm/fillup-templates/sysconfig.icecream
%if 0%{?suse_version} <= 1220
/opt/icecream
%exclude /opt/icecream/bin/clang
%exclude /opt/icecream/bin/clang++
%endif
%endif
%attr(-,icecream,icecream) %_localstatedir/cache/icecream
Expand All @@ -121,4 +135,13 @@ rm -rf -- %_localstatedir/cache/icecream/*
%_libdir/libicecc.*
%_libdir/pkgconfig/icecc.pc

%files -n icecream-clang-wrappers
%defattr(-,root,root)
%_libexecdir/icecc/bin/clang
%_libexecdir/icecc/bin/clang++
%if 0%{?suse_version} <= 1220
/opt/icecream/bin/clang
/opt/icecream/bin/clang++
%endif

%changelog

0 comments on commit d815124

Please sign in to comment.