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 # Source0-md5: fa4cbb8dbebb0d87b0d1da7d2d34bf57
11 Source1: %{name}.inetd
15 Source5: %{name}.config
16 Patch0: %{name}-user.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
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd \
94 $RPM_BUILD_ROOT/etc/rc.d/init.d \
95 $RPM_BUILD_ROOT/etc/profile.d
98 DESTDIR=$RPM_BUILD_ROOT
100 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/distccd
101 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/distcc
102 install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d
103 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/distccd
106 rm -rf $RPM_BUILD_ROOT
109 if [ -f /var/lock/subsys/rc-inetd ]; then
110 /etc/rc.d/init.d/rc-inetd reload 1>&2
112 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2
116 if [ -f /var/lock/subsys/rc-inetd ]; then
117 /etc/rc.d/init.d/rc-inetd reload
121 /sbin/chkconfig --add distcc
122 if [ -f /var/lock/subsys/distccd ]; then
123 /etc/rc.d/init.d/distcc restart 1>&2
125 echo "Run \"/etc/rc.d/init.d/distcc start\" to start distcc daemon."
129 if [ "$1" = "0" ]; then
130 if [ -f /var/lock/subsys/distccd ]; then
131 /etc/rc.d/init.d/distcc stop 1>&2
133 /sbin/chkconfig --del distcc
137 %defattr(644,root,root,755)
138 %doc AUTHORS NEWS README *.txt
139 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/distccd
140 %attr(755,root,root) %{_bindir}/*
141 %attr(644,root,root) %{_mandir}/man?/*
142 %attr(644,root,root) /etc/profile.d/*sh
145 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/distccd
148 %attr(755,root,root) /etc/rc.d/init.d/distcc