# # spec file for package icecream # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # #Compat macro for new _fillupdir macro introduced in Nov 2017 %if ! %{defined _fillupdir} %define _fillupdir %{_localstatedir}/adm/fillup-templates %endif Name: icecream Version: 1.1 Release: 0 Summary: For Distributed Compile in the Network License: GPL-2.0+ AND LGPL-2.1+ Group: Development/Tools/Building URL: https://github.com/icecc/icecream Source0: https://github.com/icecc/icecream/archive/%{version}.tar.gz BuildRequires: docbook2x BuildRequires: gcc-c++ BuildRequires: libcap-ng-devel BuildRequires: libtool BuildRequires: libxslt-tools BuildRequires: lzo-devel Requires: %{_bindir}/bzip2 Requires: /bin/tar Requires: logrotate Requires(pre): %fillup_prereq Requires(pre): %insserv_prereq Requires(pre): %{_sbindir}/groupadd Requires(pre): %{_sbindir}/useradd Recommends: gcc-c++ %if 0%{?suse_version} > 1315 BuildRequires: clang-devel %endif %description Distributed compiler with a central scheduler to share build load. %package -n libicecream-devel Summary: For Distributed Compile in the Network Group: Development/Tools/Building Requires: libcap-ng-devel 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: clang Requires: icecream Supplements: packageand(icecream:clang) %description -n icecream-clang-wrappers Wrapper symlinks for clang/clang++ for icecream distributed building. %prep %setup -q # DO NOT ADD PATCHES without github reference %build autoreconf -fiv %configure \ --enable-clang-rewrite-includes \ --enable-clang-wrappers \ --libexecdir %{_libexecdir} make %{?_smp_mflags} V=1 %install %make_install templatesdir=%{_fillupdir} %preun %stop_on_removal icecream %pre %{_sbindir}/groupadd -r icecream 2> /dev/null || : %{_sbindir}/useradd -r -g icecream -s /bin/false -c "Icecream Daemon" -d %{_localstatedir}/cache/icecream icecream 2> /dev/null || : %post # older icecream versions may have left some files owned by root:root in the cache rm -rf -- %{_localstatedir}/cache/icecream/* %if 0%{?suse_version} %{fillup_and_insserv -n icecream icecream} %endif %postun %restart_on_update icecream %insserv_cleanup %files %doc COPYING README.md NEWS %config %{_sysconfdir}/logrotate.d/icecream %config %{_sysconfdir}/init.d/icecream %{_bindir}/icecc-create-env %{_bindir}/icecc %{_bindir}/icerun %{_sbindir}/icecc-scheduler %{_sbindir}/iceccd %{_sbindir}/rcicecream %{_mandir}/man*/* %{_libexecdir}/icecc %exclude %{_libexecdir}/icecc/bin/clang %exclude %{_libexecdir}/icecc/bin/clang++ %if 0%{?suse_version} %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/* %{_fillupdir}/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 %attr(-,icecream,icecream) %{_localstatedir}/log/icecream %files -n libicecream-devel %{_includedir}/icecc %{_libdir}/libicecc.* %{_libdir}/pkgconfig/icecc.pc %files -n icecream-clang-wrappers %{_libexecdir}/icecc/bin/clang %{_libexecdir}/icecc/bin/clang++ %if 0%{?suse_version} <= 1220 /opt/icecream/bin/clang /opt/icecream/bin/clang++ %endif %changelog