3 %bcond_without gnome # build without gnome(monitor) support
5 Summary: Program to distribute compilation of C or C++
6 Summary(pl): Program do rozdzielania kompilacji programów w C lub C++
8 Group: Development/Languages
12 Source0: http://distcc.samba.org/ftp/distcc/%{name}-%{version}.tar.bz2
13 # Source0-md5: a55b547d4ff62d8500e290b82671db50
14 # Source0-size: 339939
15 Source1: %{name}.inetd
19 Source5: %{name}.config
20 Source6: %{name}.logrotate
21 Patch0: %{name}-user.patch
22 URL: http://distcc.samba.org/
23 BuildRequires: autoconf >= 2.53
24 BuildRequires: automake
25 %{?with_gnome:BuildRequires: libgnomeui-devel >= 2.0}
26 BuildRequires: pkgconfig
27 BuildRequires: popt-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 distcc is a program to distribute compilation of C or C++ code across
32 several machines on a network. distcc should always generate the same
33 results as a local compile, is simple to install and use, and is often
34 two or more times faster than a local compile.
37 distcc jest programem pozwalaj±cym na dystrybucjê kompilacji C lub C++
38 na kilka maszyn w sieci. distcc powinien zawsze generowaæ takie same
39 rezultaty jak lokalna kompilacja, jest prosty w instalacji i u¿yciu
40 oraz bardzo czêsto dwa lub wiêcej razy szybszy ni¿ lokalna kompilacja.
43 Summary: Common files for inetd and standalone versions of distcc
44 Summary(pl): Pliki wspólne dla wersji inetd i standalone distcc
48 Obsoletes: distcc < 2.1-2
51 distcc is a program to distribute compilation of C or C++ code across
52 several machines on a network. distcc should always generate the same
53 results as a local compile, is simple to install and use, and is often
54 two or more times faster than a local compile.
56 %description common -l pl
57 distcc jest programem pozwalaj±cym na dystrybucjê kompilacji C lub C++
58 na kilka maszyn w sieci. distcc powinien zawsze generowaæ takie same
59 rezultaty jak lokalna kompilacja, jest prosty w instalacji i u¿yciu
60 oraz bardzo czêsto dwa lub wiêcej razy szybszy ni¿ lokalna kompilacja.
63 Summary: inetd configs for distcc
64 Summary(pl): Pliki konfiguracyjne do u¿ycia distcc poprzez inetd
66 PreReq: %{name}-common = %{version}-%{release}
68 Requires(pre): /usr/sbin/useradd
69 Requires(postun): /usr/sbin/userdel
70 Obsoletes: distcc < 2.1-2
73 distcc configs for running from inetd.
75 %description inetd -l pl
76 Pliki konfiguracyjna distcc do startowania demona poprzez inetd.
79 Summary: Standalone daemon configs for distcc
80 Summary(pl): Pliki konfiguracyjne do startowania distcc w trybie standalone
82 PreReq: %{name}-common = %{version}-%{release}
84 Requires(pre): /usr/sbin/useradd
85 Requires(postun): /usr/sbin/userdel
86 Obsoletes: distcc < 2.1-2
88 %description standalone
89 distcc configs for running as a standalone daemon.
91 %description standalone -l pl
92 Pliki konfiguracyjne distcc do startowania demona w trybie
96 Summary: Monitor for distcc
97 Summary(pl): Monitor dla distcc
103 %description monitor -l pl
106 %package monitor-gnome
107 Summary: gtk monitor for distcc
108 Summary(pl): Monitor gtk dla distcc
109 Group: X11/Applications
111 %description monitor-gnome
112 gtk monitor for distcc.
114 %description monitor-gnome -l pl
115 Monitor gtk dla distcc.
121 sed -i -e 's#PKGDATADIR#"%{_pixmapsdir}"#g' src/mon-gnome.c
124 cp -f /usr/share/automake/config.* .
129 %{?with_gnome:--with-gnome}
134 rm -rf $RPM_BUILD_ROOT
135 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d,profile.d,logrotate.d} \
136 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_var}/log}
139 DESTDIR=$RPM_BUILD_ROOT
141 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/distccd
142 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/distcc
143 install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d
144 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/distccd
145 install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/distccd
148 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/distccmon-gnome.desktop \
149 $RPM_BUILD_ROOT%{_desktopdir}
150 mv $RPM_BUILD_ROOT%{_datadir}/%{name}/distccmon-gnome-icon.png \
151 $RPM_BUILD_ROOT%{_pixmapsdir}
154 touch $RPM_BUILD_ROOT%{_var}/log/distcc
157 rm -rf $RPM_BUILD_ROOT
160 if [ -n "`/bin/id -u distcc 2>/dev/null`" ]; then
161 if [ "`/bin/id -u distcc`" != "137" ]; then
162 echo "Error: user distcc doesn't have uid=137. Correct this before installing distccd server." 1>&2
166 /usr/sbin/useradd -u 137 -d /tmp -s /bin/false -c "distcc user" -g distcc distcc 1>&2
170 if [ -f /var/lock/subsys/rc-inetd ]; then
171 /etc/rc.d/init.d/rc-inetd reload 1>&2
173 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
177 if [ -f /var/lock/subsys/rc-inetd ]; then
178 /etc/rc.d/init.d/rc-inetd reload
180 if [ "$1" = "0" ]; then
185 if [ -n "`/bin/id -u distcc 2>/dev/null`" ]; then
186 if [ "`/bin/id -u distcc`" != "137" ]; then
187 echo "Error: user distcc doesn't have uid=137. Correct this before installing distccd server." 1>&2
191 /usr/sbin/useradd -u 137 -d /tmp -s /bin/false -c "distccd user" -g distcc distcc 1>&2
195 /sbin/chkconfig --add distcc
196 if [ -f /var/lock/subsys/distccd ]; then
197 /etc/rc.d/init.d/distcc restart 1>&2
199 echo "Run \"/etc/rc.d/init.d/distcc start\" to start distcc daemon."
203 if [ "$1" = "0" ]; then
208 if [ "$1" = "0" ]; then
209 if [ -f /var/lock/subsys/distccd ]; then
210 /etc/rc.d/init.d/distcc stop 1>&2
212 /sbin/chkconfig --del distcc
216 %defattr(644,root,root,755)
217 %doc AUTHORS NEWS README *.txt
218 %attr(755,root,root) %{_bindir}/%{name}
219 %{_mandir}/man?/%{name}.*
220 %attr(755,root,root) /etc/profile.d/*sh
223 %defattr(644,root,root,755)
224 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/distccd
225 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/distccd
226 %attr(755,root,root) %{_bindir}/%{name}d
227 %{_mandir}/man?/%{name}d.*
228 %attr(640,distcc,root) %ghost %{_var}/log/distcc
231 %defattr(644,root,root,755)
232 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/distccd
235 %defattr(644,root,root,755)
236 %attr(754,root,root) /etc/rc.d/init.d/distcc
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_bindir}/distccmon-text
241 %{_mandir}/man1/distccmon-text.*
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_bindir}/distccmon-gnome
247 %{_desktopdir}/*.desktop