+++ /dev/null
-###############################################################################
-# IPFire.org - An Open Source Firewall Solution #
-# Copyright (C) - IPFire Development Team <info@ipfire.org> #
-###############################################################################
-
-name = icecream
-version = 1.0.0
-release = 1
-
-maintainer = Michael Tremer <michael.tremer@ipfire.org>
-groups = Development/Compilers
-url = http://en.opensuse.org/Icecream
-license = GPLv2+
-summary = Distributed compiler.
-
-description
- Icecream is a distributed compile system. It allows parallel compiling by
- distributing the compile jobs to several nodes of a compile network running the
- icecc daemon. The icecc scheduler routes the jobs and provides status and
- statistics information to the icecc monitor. Each compile node can accept one
- or more compile jobs depending on the number of processors and the settings of
- the daemon. Link jobs and other jobs which cannot be distributed are executed
- locally on the node where the compilation is started.
-end
-
-source_dl = ftp://ftp.suse.com/pub/projects/icecream/
-sources = icecc-%{version}.tar.bz2
-
-build
- requires
- gcc-c++
- end
-
- DIR_APP = %{DIR_SRC}/icecc-%{version}
-
- configure_options += \
- --disable-static \
- --enable-shared
-
- install_cmds
- mkdir -pv %{BUILDROOT}%{libdir}/icecc/bin
- for i in gcc g++ cc c++; do
- ln -svf ../../../bin/icecc %{BUILDROOT}%{prefix}/lib/icecc/bin/${i}
- ln -svf ../../../bin/icecc %{BUILDROOT}%{prefix}/lib/icecc/bin/%{DISTRO_BUILDTARGET}-${i}
- done
- ln -svf icecc %{BUILDROOT}%{bindir}/icerun
- sed -e 's|^#!.*|#!/bin/bash|' -i %{BUILDROOT}%{prefix}/lib/icecc/icecc-create-env
-
- mkdir -pv %{BUILDROOT}/etc/profile.d
- sed -e "s|@LIBDIR@|%{prefix}/lib|g" \
- < %{DIR_SOURCE}/icecream.sh > %{BUILDROOT}/etc/profile.d/icecream.sh
-
- # create default working dir
- mkdir -pv %{BUILDROOT}/var/cache/icecream
-
- # Remove unwanted symlinks.
- rm -rvf %{BUILDROOT}/usr/bin/c++
- rm -rvf %{BUILDROOT}/usr/bin/cc
- rm -rvf %{BUILDROOT}/usr/bin/g++
- rm -rvf %{BUILDROOT}/usr/bin/gcc
-
- # Create Logfiles.
- mkdir -pv %{BUILDROOT}/var/log
- touch %{BUILDROOT}/var/log/icecc{d,-scheduler}.log
- end
-end
-
-packages
- package %{name}
- requires
- gcc-c++
- /usr/bin/ldd
- end
-
- prerequires += systemd-units
-
- script postin
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
- end
-
- script preun
- /bin/systemctl --no-reload disable iceccd.service \
- icecc-scheduler.service >/dev/null 2>&1 || :
- /bin/systemctl stop iceccd.service \
- icecc-scheduler.service >/dev/null 2>&1 || :
- end
-
- script postun
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
- end
-
- script postup
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
- /bin/systemctl try-restart iceccd.service \
- icecc-scheduler.service >/dev/null 2>&1 || :
- end
- end
-
- package %{name}-devel
- template DEVEL
- end
-
- package %{name}-debuginfo
- template DEBUGINFO
- end
-end