]> git.pld-linux.org Git - packages/distcc.git/blame - distcc.spec
- disable -Werror
[packages/distcc.git] / distcc.spec
CommitLineData
ac9e77da 1#
2# Conditional build:
23795b41 3%bcond_without gnome # build without gnome(monitor) support
5fac6119 4#
6aad4547 5Summary: Program to distribute compilation of C or C++
363c8ff8 6Summary(pl.UTF-8): Program do rozdzielania kompilacji programów w C lub C++
6aad4547 7Name: distcc
9c952e41
AG
8Version: 3.0
9Release: 0.1
6aad4547 10License: GPL
e6318e62 11Group: Development/Languages
9c952e41
AG
12Source0: http://distcc.googlecode.com/files/%{name}-%{version}.tar.bz2
13# Source0-md5: a3cab94fb8514687805456bcca9a15ea
6aad4547 14Source1: %{name}.inetd
953fcc0d 15Source2: %{name}.init
16Source3: %{name}.sh
17Source4: %{name}.csh
fc307e5b 18Source5: %{name}.config
9d35c6e8 19Source6: %{name}.logrotate
454bf4cb 20Patch0: %{name}-user.patch
9c952e41 21URL: http://www.distcc.org/
4ff4770e 22BuildRequires: autoconf >= 2.53
6e659ed6 23BuildRequires: automake
55a0572b 24%{?with_gnome:BuildRequires: libgnomeui-devel >= 2.0}
54448e74 25BuildRequires: pkgconfig
cf3c1b61 26BuildRequires: popt-devel
9c952e41 27BuildRequires: python-devel-tools
e6318e62 28BuildRequires: rpmbuild(macros) >= 1.268
29c8cd62 29BuildRequires: sed >= 4.0
6aad4547
AM
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33distcc is a program to distribute compilation of C or C++ code across
34several machines on a network. distcc should always generate the same
35results as a local compile, is simple to install and use, and is often
36two or more times faster than a local compile.
37
06d40241
JR
38%description -l pl.UTF-8
39distcc jest programem pozwalającym na dystrybucję kompilacji C lub C++
40na kilka maszyn w sieci. distcc powinien zawsze generować takie same
41rezultaty jak lokalna kompilacja, jest prosty w instalacji i użyciu
42oraz bardzo często dwa lub więcej razy szybszy niż lokalna kompilacja.
6aad4547 43
953fcc0d 44%package common
725fa96f 45Summary: Common files for inetd and standalone versions of distcc
363c8ff8 46Summary(pl.UTF-8): Pliki wspólne dla wersji inetd i standalone distcc
0e630aaf 47Group: Daemons
e6318e62
ER
48Requires(postun): /usr/sbin/groupdel
49Requires(postun): /usr/sbin/userdel
1f47eaf4 50Requires(pre): /bin/id
51Requires(pre): /usr/bin/getgid
52Requires(pre): /usr/sbin/groupadd
47a5d923 53Requires(pre): /usr/sbin/useradd
c1cecbca 54Suggests: gcc
55Suggests: gcc-c++
1f47eaf4 56Provides: group(distcc)
57Provides: user(distcc)
55a0572b 58Obsoletes: distcc < 2.1-2
953fcc0d 59
953fcc0d 60%description common
61distcc is a program to distribute compilation of C or C++ code across
62several machines on a network. distcc should always generate the same
63results as a local compile, is simple to install and use, and is often
64two or more times faster than a local compile.
65
06d40241
JR
66%description common -l pl.UTF-8
67distcc jest programem pozwalającym na dystrybucję kompilacji C lub C++
68na kilka maszyn w sieci. distcc powinien zawsze generować takie same
69rezultaty jak lokalna kompilacja, jest prosty w instalacji i użyciu
70oraz bardzo często dwa lub więcej razy szybszy niż lokalna kompilacja.
953fcc0d 71
9c952e41 72%package include_server
9677354d
JB
73Summary: Conservative approximation of include dependencies for C/C++
74Summary(pl.UTF-8): Konserwatywna aproksymacja zależności nagłówków dla C/C++
9c952e41
AG
75Group: Daemons
76
77%description include_server
78include_server.py starts an include server process. This process
79answers queries from distcc(1) clients about what files to include in
80C/C++ compilations. The include_server.py command itself terminates as
81soon as the include server has been spawned.
82
83%description include_server -l pl.UTF-8
84include_server.py wywołuje proces serwera include. Proces ten odpowiada
85na zapytania klientów distcc(1) dotyczące plików, które należy dołączyć
86na etapie kompilacji C/C++. Polecenie incluse_server.py kończy działanie
87jak tylko wywołany zostanie proces serwera.
88
953fcc0d 89%package inetd
90Summary: inetd configs for distcc
363c8ff8 91Summary(pl.UTF-8): Pliki konfiguracyjne do użycia distcc poprzez inetd
0e630aaf 92Group: Daemons
e6318e62
ER
93Requires: %{name}-common = %{version}-%{release}
94Requires: rc-inetd
55a0572b 95Obsoletes: distcc < 2.1-2
953fcc0d 96
97%description inetd
98distcc configs for running from inetd.
99
06d40241 100%description inetd -l pl.UTF-8
953fcc0d 101Pliki konfiguracyjna distcc do startowania demona poprzez inetd.
102
103%package standalone
8a419537 104Summary: Standalone daemon configs for distcc
363c8ff8 105Summary(pl.UTF-8): Pliki konfiguracyjne do startowania distcc w trybie standalone
953fcc0d 106Group: Daemons
cf89e5cf 107Requires(post,preun): /sbin/chkconfig
e6318e62
ER
108Requires: %{name}-common = %{version}-%{release}
109Requires: rc-scripts
55a0572b 110Obsoletes: distcc < 2.1-2
953fcc0d 111
112%description standalone
113distcc configs for running as a standalone daemon.
114
06d40241 115%description standalone -l pl.UTF-8
47a5d923 116Pliki konfiguracyjne distcc do startowania demona w trybie standalone.
953fcc0d 117
51fb516c 118%package monitor
1f47eaf4 119Summary: Monitor for distcc
363c8ff8 120Summary(pl.UTF-8): Monitor dla distcc
1f47eaf4 121Group: Applications
51fb516c
AM
122
123%description monitor
124Monitor for distcc.
125
06d40241 126%description monitor -l pl.UTF-8
51fb516c
AM
127Monitor dla distcc.
128
129%package monitor-gnome
1f47eaf4 130Summary: GTK+ monitor for distcc
363c8ff8 131Summary(pl.UTF-8): Monitor GTK+ dla distcc
1f47eaf4 132Group: X11/Applications
51fb516c
AM
133
134%description monitor-gnome
c8eab2f6 135GTK+ monitor for distcc.
51fb516c 136
06d40241 137%description monitor-gnome -l pl.UTF-8
c8eab2f6 138Monitor GTK+ dla distcc.
51fb516c 139
6aad4547
AM
140%prep
141%setup -q
fc00bbf7 142%patch0 -p1
454bf4cb 143
8ec2d073 144sed -i -e 's#PKGDATADIR#"%{_pixmapsdir}"#g' src/mon-gnome.c
6e659ed6
JB
145
146%build
9c952e41 147%{__aclocal}
e3949423 148%{__autoconf}
149%{__autoheader}
ac9e77da 150%configure \
c5869176 151 --enable-rfc2553 \
47a5d923 152 %{?with_gnome:--with-gnome}
ac9e77da 153
9c952e41 154%{__make} \
531ce2da 155 WERROR_CFLAGS="" \
9c952e41 156 CC="%{__cc}"
6aad4547
AM
157
158%install
159rm -rf $RPM_BUILD_ROOT
9d35c6e8 160install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,rc.d/init.d,profile.d,logrotate.d} \
6e659ed6 161 $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir},%{_var}/log}
6aad4547 162
87073c74
PG
163%{__make} install \
164 DESTDIR=$RPM_BUILD_ROOT
953fcc0d 165
6aad4547 166install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/distccd
953fcc0d 167install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/distcc
168install %{SOURCE3} %{SOURCE4} $RPM_BUILD_ROOT/etc/profile.d
fc3f3536 169install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/distccd
9d35c6e8 170install %{SOURCE6} $RPM_BUILD_ROOT/etc/logrotate.d/distccd
6aad4547 171
9c952e41
AG
172%py_comp $RPM_BUILD_ROOT%{py_sitedir}
173%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
174%py_postclean
175
5fac6119 176%if %{with gnome}
865c00be 177mv $RPM_BUILD_ROOT%{_datadir}/%{name}/distccmon-gnome.desktop \
55a0572b 178 $RPM_BUILD_ROOT%{_desktopdir}
865c00be 179mv $RPM_BUILD_ROOT%{_datadir}/%{name}/distccmon-gnome-icon.png \
e3949423 180 $RPM_BUILD_ROOT%{_pixmapsdir}
181%endif
182
5fac6119 183touch $RPM_BUILD_ROOT%{_var}/log/distcc
9c952e41
AG
184rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
185
e3949423 186
725fa96f
JB
187%clean
188rm -rf $RPM_BUILD_ROOT
189
9536ab6c 190%pre common
6e7561ad
ER
191%groupadd -P %{name}-common -g 137 distcc
192%useradd -P %{name}-common -u 137 -d /tmp -s /bin/false -c "distcc user" -g distcc distcc
607bc1af 193
9536ab6c
AM
194%postun common
195if [ "$1" = "0" ]; then
1f47eaf4 196 %userremove distcc
197 %groupremove distcc
9536ab6c
AM
198fi
199
953fcc0d 200%post inetd
e6318e62 201%service -q rc-inetd reload
6aad4547 202
953fcc0d 203%postun inetd
48f922ca
ER
204if [ "$1" = 0 ]; then
205 %service -q rc-inetd reload
206fi
6aad4547 207
953fcc0d 208%post standalone
209/sbin/chkconfig --add distcc
e6318e62 210%service distcc restart "distcc daemon"
953fcc0d 211
212%preun standalone
213if [ "$1" = "0" ]; then
e6318e62 214 %service distcc stop
a6d80f15 215 /sbin/chkconfig --del distcc
953fcc0d 216fi
217
51fb516c 218%files
6aad4547 219%defattr(644,root,root,755)
e35de25d 220%doc AUTHORS NEWS README *.txt
51fb516c 221%attr(755,root,root) %{_bindir}/%{name}
9c952e41
AG
222%attr(755,root,root) %{_bindir}/lsdistcc
223%attr(755,root,root) %{_bindir}/pump
5fac6119 224%{_mandir}/man?/%{name}.*
9c952e41 225%{_mandir}/man1/pump.1*
32cbd1d6 226%attr(755,root,root) /etc/profile.d/*sh
953fcc0d 227
51fb516c
AM
228%files common
229%defattr(644,root,root,755)
47a5d923
ER
230%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/distccd
231%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/distccd
51fb516c 232%attr(755,root,root) %{_bindir}/%{name}d
5fac6119 233%{_mandir}/man?/%{name}d.*
607bc1af 234%attr(640,distcc,root) %ghost %{_var}/log/distcc
51fb516c 235
9c952e41
AG
236%files include_server
237%defattr(644,root,root,755)
238%{py_sitedir}/include_server
239%{_mandir}/man1/include_server.1*
240
953fcc0d 241%files inetd
5fac6119 242%defattr(644,root,root,755)
47a5d923 243%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/distccd
953fcc0d 244
245%files standalone
5fac6119 246%defattr(644,root,root,755)
6a436b6c 247%attr(754,root,root) /etc/rc.d/init.d/distcc
51fb516c
AM
248
249%files monitor
64cd2051 250%defattr(644,root,root,755)
51fb516c 251%attr(755,root,root) %{_bindir}/distccmon-text
865c00be 252%{_mandir}/man1/distccmon-text.*
8ec2d073 253
5fac6119 254%if %{with gnome}
8ec2d073 255%files monitor-gnome
55a0572b 256%defattr(644,root,root,755)
e3949423 257%attr(755,root,root) %{_bindir}/distccmon-gnome
55a0572b
JB
258%{_desktopdir}/*.desktop
259%{_pixmapsdir}/*.png
e3949423 260%endif
This page took 0.0834819999999999 seconds and 4 git commands to generate.