+#
+# Conditional build:
+# _without_gtk build without gtk2(monitor) support
+#
Summary: Program to distribute compilation of C or C++
Summary(pl): Program do rozdzielania kompilacji programów w C lub C++
Name: distcc
Group: Development/Languages
-Version: 2.7
-Release: 1
+Version: 2.9
+Release: 2
License: GPL
-URL: http://distcc.samba.org
-# Source0-md5: 7f367102fb645b769368b901ec57e159
+URL: http://distcc.samba.org/
Source0: http://distcc.samba.org/ftp/distcc/%{name}-%{version}.tar.bz2
+# Source0-md5: fa4cbb8dbebb0d87b0d1da7d2d34bf57
Source1: %{name}.inetd
Source2: %{name}.init
Source3: %{name}.sh
Source4: %{name}.csh
Source5: %{name}.config
Patch0: %{name}-user.patch
+%{!?_without_gtk:BuildRequires: gtk+2-devel >= 2.0}
BuildRequires: popt-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package common
Summary: Common files for inetd and standalone versions of distcc
Summary(pl): Pliki wspólne dla wersji inetd i standalone distcc
-Group: Daemons
+Group: Daemons
Requires: gcc
Requires: gcc-c++
-Obsoletes: %{name} < %{name}-2.1-2
+Obsoletes: %{name} < %{name}-2.1-2
%description common
distcc is a program to distribute compilation of C or C++ code across
results as a local compile, is simple to install and use, and is often
two or more times faster than a local compile.
-%description -l pl common
+%description common -l pl
distcc jest programem pozwalaj±cym na dystrybucjê kompilacji C lub C++
na kilka maszyn w sieci. distcc powinien zawsze generowaæ takie same
rezultaty jak lokalna kompilacja, jest prosty w instalacji i u¿yciu
%package inetd
Summary: inetd configs for distcc
-Summary(pl): Pliki konfiguracyjne do u¿ycia distcc poprzez inetd
-Group: Daemons
-PreReq: %{name}-common = %{version}
-PreReq: rc-inetd
-Obsoletes: %{name} < %{name}-2.1-2
+Summary(pl): Pliki konfiguracyjne do u¿ycia distcc poprzez inetd
+Group: Daemons
+PreReq: %{name}-common = %{version}
+PreReq: rc-inetd
+Obsoletes: %{name} < %{name}-2.1-2
%description inetd
distcc configs for running from inetd.
PreReq: %{name}-common = %{version}
PreReq: rc-scripts
Requires(post,preun): /sbin/chkconfig
-Obsoletes: %{name} < %{name}-2.1-2
+Obsoletes: %{name} < %{name}-2.1-2
%description standalone
distcc configs for running as a standalone daemon.
%prep
%setup -q
-
%patch -p1
%build
-%configure
+%configure \
+ %{!?_without_gtk:--enable-gnome}
+
%{__make}
%install
$RPM_BUILD_ROOT/etc/rc.d/init.d \
$RPM_BUILD_ROOT/etc/profile.d
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/distccd
install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/distcc
%files common
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README linuxdoc/html/*
+%doc AUTHORS NEWS README *.txt
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/distccd
%attr(755,root,root) %{_bindir}/*
%attr(644,root,root) %{_mandir}/man?/*