/[smecontribs]/rpms/plague/contribs8/plague.spec
ViewVC logotype

Contents of /rpms/plague/contribs8/plague.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Mar 27 16:07:38 2008 UTC (16 years, 3 months ago) by slords
Branch: MAIN
CVS Tags: plague-0_4_4_1-10_el5_sme
Import on branch contribs8 of package plague-0.4.4.1-10.el5.sme.src.rpm

1 BuildArch: noarch
2
3 Summary: Distributed build system for RPMs
4 Name: plague
5 Version: 0.4.4.1
6 Release: 10%{?dist}
7 License: GPL
8 Group: Development/Tools
9 Source: http://fedoraproject.org/projects/plague/releases/%{name}-%{version}.tar.bz2
10 URL: http://www.fedoraproject.org/wiki/Projects/Plague
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 Requires: createrepo >= 0.4.3
13 Requires: %{name}-common = %{version}-%{release}
14 Requires(post): /sbin/chkconfig
15 Requires(post): /sbin/service
16 Requires(preun): /sbin/chkconfig
17 Requires(preun): /sbin/service
18
19 Patch0: plague-0.4-daemonize.patch
20 Patch1: plague-0.4-py25.patch
21 Patch2: plague-0.4.4.1-authed.patch
22 Patch3: plague-0.4.4.1-srpm-umask.patch
23 Patch4: plague-0.4.4.1-etc.patch
24 Patch5: plague-0.4.4.1-pause.patch
25 Patch6: plague-0.4.4.1-racecondition.patch
26 Patch7: plague-0.4.4.1-preperrormsg.patch
27 Patch8: plague-0.4.4.1-kill.patch
28 Patch9: plague-0.4.4.1-mock-0.8.patch
29 Patch10: plague-0.4.4.1-update-builders.patch
30 Patch11: plague-0.4.4.1-filedownloader.patch
31 Patch12: plague-0.4.4.1-faster-downloads.patch
32 Patch13: plague-0.4.4.1-buildsys-fixes.patch
33 Patch14: plague-0.4.4.1-repolock.patch
34 Patch15: plague-0.4.4.1-repoadd.patch
35 Patch100: plague-0.4.4.1-pushscript-extras.patch
36
37
38 %description
39 The Plague build system is a client/server distributed build system for
40 building RPM packages. This package provides the plague server.
41
42
43 %package common
44 Summary: Common resources for the Plague build system
45 Group: Development/Tools
46 Requires: pyOpenSSL
47
48 %description common
49 This package includes the common Python module that all Plague services require.
50
51
52 %package builder
53 Summary: Builder daemon for Plague builder slaves
54 Group: Development/Tools
55 Requires: %{name}-common = %{version}-%{release}
56 Requires: yum >= 2.2.1, mock >= 0.8
57 Requires(post): /sbin/chkconfig
58 Requires(post): /sbin/service
59 Requires(preun): /sbin/chkconfig
60 Requires(preun): /sbin/service
61 Requires(pre): /usr/sbin/useradd
62
63 %description builder
64 The Plague builder does the actual RPM package building on slave machines.
65
66 %package client
67 Summary: Package queueing client for the Plague build system
68 Group: Development/Tools
69 Requires: %{name}-common = %{version}-%{release}
70
71 %description client
72 Client program for enqueueing package builds and interrogating the build system.
73
74
75 %package utils
76 Summary: Utility programs for the Plague build system
77 Group: Development/Tools
78 Requires: %{name}-common = %{version}-%{release}
79
80 %description utils
81 This package includes user utilities for the Plague build system, including
82 the interface to the build server.
83
84
85 %prep
86 %setup -q
87 %patch0 -p0 -b .umask
88 %patch1 -p1 -b .py25
89 %patch2 -p1 -b .authed
90 %patch3 -p1 -b .srpm-umask
91 %patch4 -p1 -b .etc
92 %patch5 -p1 -b .pause
93 %patch6 -p1 -b .racecondition
94 %patch7 -p1 -b .preperrormsg
95 %patch8 -p1 -b .kill
96 %patch9 -p1 -b .mock8
97 %patch10 -p1 -b .update-builders
98 %patch11 -p1 -b .filedownloader
99 %patch12 -p1 -b .faster-downloads
100 %patch13 -p1 -b .buildsys-fixes
101 %patch14 -p1 -b .repolock
102 %patch15 -p1 -b .repoadd
103 %patch100 -p1 -b .pushscript-extras
104
105
106 %build
107 make
108
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112 make DESTDIR=$RPM_BUILD_ROOT install
113 install -D -m 0644 etc/plague-builder.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-builder
114 install -D -m 0755 etc/plague-builder.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-builder
115 install -D -m 0644 etc/plague-server.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-server
116 install -D -m 0755 etc/plague-server.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-server
117 mkdir -p $RPM_BUILD_ROOT/srv/plague_builder
118
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123
124 %post
125 /sbin/chkconfig --add plague-server
126 /sbin/service plague-server condrestart >> /dev/null || :
127
128 %preun
129 if [ $1 = 0 ]; then
130 /sbin/service plague-server stop &> /dev/null
131 /sbin/chkconfig --del plague-server
132 fi
133
134 %pre builder
135 /usr/sbin/useradd -G mock -s /sbin/nologin -M -r -d /srv/plague_builder plague-builder 2>/dev/null || :
136
137 %post builder
138 /sbin/chkconfig --add plague-builder
139 /sbin/service plague-builder condrestart >> /dev/null || :
140
141 %preun builder
142 if [ $1 = 0 ]; then
143 /sbin/service plague-builder stop &> /dev/null
144 /sbin/chkconfig --del plague-builder
145 fi
146
147 %files
148 %defattr(-, root, root)
149 %{_bindir}/%{name}-server
150 %dir %{_datadir}/%{name}/server
151 %{_datadir}/%{name}/server/*.py*
152 %dir %{_sysconfdir}/%{name}/server
153 %dir %{_sysconfdir}/%{name}/server/certs
154 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server
155 %{_initrddir}/%{name}-server
156
157 %files common
158 %defattr(-, root, root)
159 %doc README ChangeLog
160 %dir %{_sysconfdir}/%{name}
161 %dir %{_datadir}/%{name}
162 %dir /usr/lib/python?.?/site-packages/%{name}
163 /usr/lib/python?.?/site-packages/%{name}/*.py*
164
165 %files builder
166 %defattr(-, root, root)
167 %{_bindir}/%{name}-builder
168 %dir %{_datadir}/%{name}/builder
169 %{_datadir}/%{name}/builder/*.py*
170 %dir %{_sysconfdir}/%{name}/builder
171 %dir %{_sysconfdir}/%{name}/builder/certs
172 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-builder
173 %{_initrddir}/%{name}-builder
174 %attr(0755, plague-builder, plague-builder) /srv/plague_builder
175
176 %files client
177 %defattr(-, root, root)
178 %{_bindir}/%{name}-client
179
180 %files utils
181 %defattr(-, root, root)
182 %{_bindir}/%{name}-user-manager.py*
183 %{_bindir}/%{name}-certhelper.py*
184
185
186 %changelog
187 * Fri Jan 18 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-10.el5
188 - Patch add_to_repo stage.
189
190 * Wed Jan 9 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-9.el5
191 - Updated etc/ patch.
192
193 * Sat Jan 5 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-8.el5
194 - Add patches: repolock, filedownloader, faster downloads
195 - Merged post-0.4.4.1 patches from buildsys.fedoraproject.org server
196 - Merge the jobs db cleanup (in this form it is specific to Extras/EPEL
197 buildsys and disables the "finish" command)
198
199 * Wed Dec 26 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-7.el5
200 - Fix update_builders command for non-admin users.
201
202 * Wed Nov 14 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-6.el5
203 - Add patches for bug-fixes and mock 0.8 support.
204
205 * Tue Sep 18 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-5
206 - Add dirs /etc/plague and /usr/share/plague to plague-common
207 since "plague-builder" and "plague" use them (#233904).
208
209 * Fri Dec 15 2006 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.4.4.1-4
210 - Small fix for a change in python 2.5's xmlrpc library. The patch has been
211 upstreamed.
212
213 * Thu Dec 14 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.4.4.1-3
214 - Rebuild for new Python
215
216 * Thu Sep 14 2006 Dennis Gilmore <dennis@ausil.us> 0.4.4.0-2
217 - add patch for bad umask setting
218
219 * Mon Mar 13 2006 Dan Williams <dcbw@redhat.com> 0.4.4.1-1
220 - Update to 0.4.4.1
221 - Fix createrepo dep to >= 0.4.3 (#rh170531)
222
223 * Sun Mar 12 2006 Dan Williams <dcbw@redhat.com> 0.4.4-1
224 - Update to 0.4.4 release
225 - Don't use pyOpenSSL's sendall() call, but simulate it to achieve
226 timeouts, better error handling, and more efficient CPU usage
227 - Fix up initscripts and lifecycle management
228 - Implement a TERM handler in server & builder for clean shutdown
229 - Ensure jobs don't hang around on builders if they get left there for
230 some reason (ie, server didn't unlock repo for the job)
231 - Make Additional Package Arches really work (kmod support)
232 - Own /usr/lib/python?.?/site-packages/plague (#rh172794#)
233 - Require createrepo >= 4.3 (#rh170531#)
234
235 * Tue Jan 24 2006 Dan Williams <dcbw@redhat.com> 0.4.3-6
236 - Increase build server builder thread sleep time to work around SSL issues
237 - Spawn mock in a new process group, and when killing jobs kill the entire
238 process group. Hopefully fix orphaned rpmbuild processes on job kill
239
240 * Mon Jan 23 2006 Dan Williams <dcbw@redhat.com> 0.4.3-5
241 - Restore builder connection timeout
242
243 * Mon Jan 23 2006 Dan Williams <dcbw@redhat.com> 0.4.3-4
244 - Revert SSL fixes from last build
245
246 * Sun Jan 22 2006 Dan Williams <dcbw@redhat.com> 0.4.3-3
247 - Don't traceback when killing jobs on builders
248 - Work around SSL hanging issues
249
250 * Tue Nov 29 2005 Dan Williams <dcbw@redhat.com> 0.4.3-2
251 - Move README and ChangeLog to -common package
252 - Traceback/debug functionality added in server, depends on
253 threadframe module from elsewhere. Disabled by default.
254
255 * Thu Nov 24 2005 Dan Williams <dcbw@redhat.com> 0.4.3-1
256 - Add socket timeouts for fileserver and xmlrpc bits
257
258 * Fri Nov 18 2005 Dan Williams <dcbw@redhat.com> 0.4.2-7
259 - Suspend builders on hard errors such as running out of disk space
260 - Retry downloads from server/builder 5 times, not 3
261 - Log retried downloads on the server
262 - Add socket timeouts to downloads to work around hanging issues
263 when downloading from the builder (the downloading/done issue)
264
265 * Tue Nov 15 2005 Dan Williams <dcbw@redhat.com> 0.4.2-5
266 - Log kill requests on the server
267
268 * Mon Nov 14 2005 Dan Williams <dcbw@redhat.com> 0.4.2-4
269 - In the builder, close files we open before exec-ing the
270 child process. Fixes massive file descriptor leaks.
271
272 * Sun Nov 13 2005 Dan Williams <dcbw@redhat.com> 0.4.2-3
273 - Hopefully fix builds not moving past downloading/done
274 - Immediately kill jobs in the 'waiting' state when requested
275 - Utilize pthread_sigmask python module, if present, on Python
276 2.3 and earlier to work around signal blocking issues in
277 Python
278
279 * Tue Nov 1 2005 Dan Williams <dcbw@redhat.com> 0.4.2-2
280 - Make builders retry downloads from the server up to 3 times
281
282 * Tue Nov 1 2005 Dan Williams <dcbw@redhat.com> 0.4.2-1
283 - Fix job download from the builders
284 - Fix RPM copy to the repository on the server
285
286 * Mon Oct 31 2005 Dan Williams <dcbw@redhat.com> 0.4.1-1
287 - Fail jobs on restart if we can't access the original SRPM
288 - For the server, honor config file location passed in on
289 the command line (Jeff Sheltren)
290 - Catch another mock failure case (Alexandr Kanevskiy)
291
292 * Tue Oct 25 2005 Dan Williams <dcbw@redhat.com> 0.4-6
293 - Retry downloads from builders up to 3 times before failing
294 the job
295
296 * Tue Oct 25 2005 Dan Williams <dcbw@redhat.com> 0.4-5
297 - Add a MySQL database backend (Jeff Sheltren)
298 - Trap repo copy errors rather than doing a traceback
299 - On the builder, deal correctly with jobs in 'downloaded' state
300 that have been killed
301
302 * Wed Oct 19 2005 Dan Williams <dcbw@redhat.com> 0.4-4
303 - Really fix client's "allow_uploads" problem
304
305 * Wed Oct 19 2005 Dan Williams <dcbw@redhat.com> 0.4-3
306 - Fix errors in client's 'job detail' function
307 - Ignore missing "allow_uploads" option in client config file
308 - Fix server when the Additional Package Arches section is missing
309 from a target config file
310 - Make server more robust against random builder SSL issues
311
312 * Mon Oct 17 2005 Dan Williams <dcbw@redhat.com> 0.4-2
313 - Increase field size of 'username' and 'status' fields when
314 we initially create them on the server. Server ops will
315 need to increase manually or blow away their jobdb.
316
317 * Sun Oct 16 2005 Dan Williams <dcbw@redhat.com> 0.4-1
318 - Version 0.4
319 o Server:
320 - Per-target config files, new format
321 - Support PostgreSQL as a database backend
322
323 o Builder:
324 - Multiple concurrent builds with one builder process
325 - Better tracking of mock child processes
326 - Autodetect supported architectures and number of
327 concurrent build processes
328 - Per-target config files, new format
329
330 o Client:
331 - Ability to upload packages to server
332
333 o Utilities:
334 - New distro-rebuild.py utility
335 - Fixes for certhelper.py
336
337 * Tue Aug 23 2005 Dan Williams <dcbw@redhat.com> 0.3.4-1
338 - Version 0.3.4
339 o Make repo scripts actually work
340 o Don't traceback when cleaning up job files if we have none
341
342 * Mon Aug 19 2005 Dan Williams <dcbw@redhat.com> 0.3.3-1
343 - Version 0.3.3
344 o Add repo script support
345 o Fix double-slashes in log URL (Ignacio Vazquez-Abrams)
346 o Clear out old job info when requeueing jobs
347
348 * Mon Aug 15 2005 Dan Williams <dcbw@redhat.com> 0.3.2-3
349 - Clear out old job info when requeueing jobs
350
351 * Mon Aug 15 2005 Dan Williams <dcbw@redhat.com> 0.3.2-2
352 - Append %{?dist} to Releases to get correct precedence on FC3, FC4, and Rawhide
353
354 * Mon Aug 15 2005 Dan Williams <dcbw@redhat.com> 0.3.2-1
355 - Version 0.3.2
356 o Fix errors in enqueue and enqueue_srpm return values
357 o Implement client/server API versioning
358
359 * Thu Aug 11 2005 Dan Williams <dcbw@redhat.com> 0.3.1-1
360 - Version 0.3.1
361 o Clean up web interface error handling, catches more errors
362 o Clean up builder code, hopefully deal with block mock processes waiting
363 to write to stderr
364 o Use HTTP GET rather than POST for web forms, more back/forward/reload
365 friendly (Ville Skyttä)
366
367 * Mon Aug 8 2005 Dan Williams <dcbw@redhat.com> 0.3-1
368 - Version 0.3
369
370 * Sat Jul 16 2005 Dan Williams <dcbw@redhat.com>
371 - Bump version to 0.2
372 - Grab python files from /usr/lib, not %{_libdir} until the
373 multiarch issues get worked out
374
375 * Sun Jun 26 2005 Dan Williams <dcbw@redhat.com>
376 - first version/packaging

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed