%define distcc_uid 28 %define distcc_gid 28 Name: distcc Version: 3.3.2 Release: 1mamba Summary: A program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://github.com/distcc/distcc Source: https://github.com/distcc/distcc.git/v%{version}/distcc-%{version}.tar.bz2 Source1: distcc-initscript Source2: distcc-logrotate Source3: distcc-sysconfig Source4: distcc-profile Patch0: distcc-3.1-gcc-4.8.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: GConf-devel BuildRequires: glibc-devel BuildRequires: libart_lgpl-devel BuildRequires: libatk-devel BuildRequires: libavahi-devel BuildRequires: libbonobo-devel BuildRequires: libbonoboui-devel BuildRequires: libcairo-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel BuildRequires: libgnomecanvas-devel BuildRequires: libgnome-devel BuildRequires: libgnomeui-devel BuildRequires: libgnome-vfs-devel BuildRequires: libgtk2-devel BuildRequires: libICE-devel BuildRequires: libpango-devel BuildRequires: libpopt-devel BuildRequires: libpython27-devel BuildRequires: libpython-devel BuildRequires: libSM-devel BuildRequires: ORBit2-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description distcc is a program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network. distcc should always generate the same results as a local build, is simple to install and use, and is often two or more times faster than a local compile. distcc does not require all machines to share a filesystem, have synchronized clocks, or to have the same libraries or header files installed. They can even have different processors or operating systems, if cross-compilers are installed. %package monitor Group: Graphical Desktop/Applications/Development Summary: Monitoring interface for distcc %description monitor A gnome base monitoring interface for distcc, a program to distribute builds of C, C++, Objective C or Objective. %prep %setup -q #%patch0 -p0 %build ./autogen.sh %configure \ --with-gnome \ --disable-Werror \ PYTHON=%{__python36} %make %install %makeinstall install -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/distccd install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/distccd install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/distccd install -D -m 0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/distcc.sh install -d %{buildroot}/var/log/distccd %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre if [ $1 -ge 1 ]; then # new install or update groupadd distcc -g %{distcc_gid} 2>/dev/null || true useradd distcc -c "Distcc user" -d /dev/null \ -s /bin/false -u %{distcc_uid} -g %{distcc_gid} 2>/dev/null || true fi exit 0 %post # upgrade if [ $1 -eq 1 ]; then service distccd condrestart fi exit 0 %postun if [ $1 -eq 0 ]; then # erase chkconfig --del distccd service distccd stop userdel distcc || true fi exit 0 %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/distccd %config(noreplace) %{_sysconfdir}/logrotate.d/distccd %{_sysconfdir}/default/distcc %{_sysconfdir}/distcc/clients.allow %{_sysconfdir}/distcc/commands.allow.sh %{_sysconfdir}/distcc/hosts %{_sysconfdir}/profile.d/distcc.sh %{_initrddir}/distccd %{_bindir}/distcc %{_bindir}/distccd %{_bindir}/distccmon-text %{_bindir}/lsdistcc %{_bindir}/pump %{_sbindir}/update-distcc-symlinks %{python36_sitearch}/include_server/* %{python36_sitearch}/include_server-%{version}-py%{python36_version}.egg-info %dir %{_datadir}/doc/distcc %{_datadir}/doc/distcc/* %{_mandir}/man1/* %attr(0755,distcc,distcc) /var/log/distccd %files monitor %defattr(-,root,root) %{_bindir}/distccmon-gnome %{_datadir}/distcc/distccmon-gnome-icon.png %{_datadir}/distcc/distccmon-gnome.desktop %changelog * Sun Jul 29 2018 Silvan Calarco 3.3.2-1mamba - update to 3.3.2 * Sun Jun 02 2013 Silvan Calarco 3.1-3mamba - python 2.7 mass rebuild * Thu Feb 04 2010 Silvan Calarco 3.1-2mamba - rebuilt to remove executable requirements * Sun Jan 11 2009 Silvan Calarco 3.1-1mamba - update to 3.1 * Tue Dec 20 2005 Silvan Calarco 2.18.3-4qilnx - added profile script to set DISTCC_HOSTS system wide variable * Fri Dec 16 2005 Silvan Calarco 2.18.3-3qilnx - added logfile dir * Thu Dec 15 2005 Silvan Calarco 2.18.3-2qilnx - added initscript, logrotate and sysconfig support * Wed Dec 07 2005 Silvan Calarco 2.18.3-1qilnx - update to version 2.18.3 by autospec - added distcc user creation * Mon Oct 22 2003 Silvan Calarco 2.11.1-1qilnx - first build