1 Summary: Program to distribute compilation of C or C++
2 Summary(pl): Program do rozdzielania kompilacji programów w C lub C++
4 Group: Development/Languages
8 URL: http://distcc.samba.org
9 Source0: http://distcc.samba.org/ftp/distcc/%{name}-%{version}.tar.bz2
10 Source1: %{name}.inetd
14 Source5: %{name}.config
15 Patch0: %{name}-user.patch
16 Patch1: %{name}-hostopt.patch
17 BuildRequires: popt-devel
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 distcc is a program to distribute compilation of C or C++ code across
22 several machines on a network. distcc should always generate the same
23 results as a local compile, is simple to install and use, and is often
24 two or more times faster than a local compile.
27 distcc jest programem pozwalaj±cym na dystrybucjê kompilacji C lub C++
28 na kilka maszyn w sieci. distcc powinien zawsze generowaæ takie same
29 rezultaty jak lokalna kompilacja, jest prosty w instalacji i u¿yciu
30 oraz bardzo czêsto dwa lub wiêcej razy szybszy ni¿ lokalna kompilacja.
33 Summary: Common files for inetd and standalone versions of distcc
34 Summary(pl): Pliki wspólne dla wersji inetd i standalone distcc
38 Obsoletes: %{name} < %{name}-2.1-2
41 distcc is a program to distribute compilation of C or C++ code across
42 several machines on a network. distcc should always generate the same
43 results as a local compile, is simple to install and use, and is often
44 two or more times faster than a local compile.
46 %description -l pl common
47 distcc jest programem pozwalaj±cym na dystrybucjê kompilacji C lub C++
48 na kilka maszyn w sieci. distcc powinien zawsze generowaæ takie same
49 rezultaty jak lokalna kompilacja, jest prosty w instalacji i u¿yciu
50 oraz bardzo czêsto dwa lub wiêcej razy szybszy ni¿ lokalna kompilacja.
54 Summary: inetd configs for distcc
55 Summary(pl): Pliki konfiguracyjne do u¿ycia distcc poprzez inetd
57 PreReq: %{name}-common = %{version}
59 Obsoletes: %{name} < %{name}-2.1-2
62 distcc configs for running from inetd.
64 %description inetd -l pl
65 Pliki konfiguracyjna distcc do startowania demona poprzez inetd.
68 Summary: standalone daemon configs for distcc
69 Summary(pl): Pliki konfiguracyjne do startowania distcc w trybie standalone
71 PreReq: %{name}-common = %{version}
73 Requires(post,preun): /sbin/chkconfig
74 Obsoletes: %{name} < %{name}-2.1-2
76 %description standalone
77 distcc configs for running as a standalone daemon.
79 %description standalone -l pl
80 Pliki konfiguracyjne distcc do startowania demona w trybie
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd \
96 $RPM_BUILD_ROOT/etc/rc.d/init.d \
97 $RPM_BUILD_ROOT/etc/profile.d
99 %{__make} DESTDIR=$RPM_BUILD_ROOT install
101 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/distccd
102 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/distcc
103 install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d
104 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/distccd
107 rm -rf $RPM_BUILD_ROOT
110 if [ -f /var/lock/subsys/rc-inetd ]; then
111 /etc/rc.d/init.d/rc-inetd reload 1>&2
113 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
117 if [ -f /var/lock/subsys/rc-inetd ]; then
118 /etc/rc.d/init.d/rc-inetd reload
122 /sbin/chkconfig --add distcc
123 if [ -f /var/lock/subsys/distccd ]; then
124 /etc/rc.d/init.d/distcc restart 1>&2
126 echo "Run \"/etc/rc.d/init.d/distcc start\" to start distcc daemon."
130 if [ "$1" = "0" ]; then
131 if [ -f /var/lock/subsys/distccd ]; then
132 /etc/rc.d/init.d/distcc stop 1>&2
134 /sbin/chkconfig --del distcc
138 %defattr(644,root,root,755)
139 %doc AUTHORS NEWS README linuxdoc/html/*
140 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/distccd
141 %attr(755,root,root) %{_bindir}/*
142 %attr(644,root,root) %{_mandir}/man?/*
143 %attr(644,root,root) /etc/profile.d/*sh
146 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/distccd
149 %attr(755,root,root) /etc/rc.d/init.d/distcc