1 |
# $Id$ |
# $Id: plague.spec,v 1.6 2008/09/09 20:10:09 slords Exp $ |
2 |
# # Authority: slords |
# Authority: slords |
3 |
# Name: Shad L. Lords |
# Name: Shad L. Lords |
4 |
|
|
5 |
BuildArch: noarch |
BuildArch: noarch |
6 |
|
|
7 |
Summary: Distributed build system for RPMs |
Summary: Distributed build system for RPMs |
8 |
Name: plague |
Name: plague |
9 |
Version: 0.4.4.1 |
Version: 0.4.5.6 |
10 |
Release: 10%{?dist} |
Release: 1%{?dist}.1 |
11 |
License: GPL |
License: GPLv2+ |
12 |
Group: Development/Tools |
Group: Development/Tools |
13 |
Source: http://fedoraproject.org/projects/plague/releases/%{name}-%{version}.tar.bz2 |
#Source: http://fedoraproject.org/projects/plague/releases/%{name}-%{version}.tar.bz2 |
14 |
|
Source: %{name}-%{version}.tar.bz2 |
15 |
|
Patch0: plague-0.4.5.4-pushscript-extras.patch |
16 |
URL: http://www.fedoraproject.org/wiki/Projects/Plague |
URL: http://www.fedoraproject.org/wiki/Projects/Plague |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
18 |
Requires: createrepo >= 0.4.3 |
BuildRequires: python |
19 |
|
Requires: createrepo >= 0.4.7 |
20 |
|
# get the version of the sqlite api thats available to us |
21 |
|
%if 0%{?rhel} |
22 |
|
Requires: python-sqlite |
23 |
|
%else |
24 |
|
Requires: python-sqlite2 |
25 |
|
%endif |
26 |
|
|
27 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
28 |
Requires(post): /sbin/chkconfig |
Requires(post): /sbin/chkconfig |
29 |
Requires(post): /sbin/service |
Requires(post): /sbin/service |
30 |
Requires(preun): /sbin/chkconfig |
Requires(preun): /sbin/chkconfig |
31 |
Requires(preun): /sbin/service |
Requires(preun): /sbin/service |
32 |
|
|
|
Patch0: plague-0.4-daemonize.patch |
|
|
Patch1: plague-0.4-py25.patch |
|
|
Patch2: plague-0.4.4.1-authed.patch |
|
|
Patch3: plague-0.4.4.1-srpm-umask.patch |
|
|
Patch4: plague-0.4.4.1-etc.patch |
|
|
Patch5: plague-0.4.4.1-pause.patch |
|
|
Patch6: plague-0.4.4.1-racecondition.patch |
|
|
Patch7: plague-0.4.4.1-preperrormsg.patch |
|
|
Patch8: plague-0.4.4.1-kill.patch |
|
|
Patch9: plague-0.4.4.1-mock-0.8.patch |
|
|
Patch10: plague-0.4.4.1-update-builders.patch |
|
|
Patch11: plague-0.4.4.1-filedownloader.patch |
|
|
Patch12: plague-0.4.4.1-faster-downloads.patch |
|
|
Patch13: plague-0.4.4.1-buildsys-fixes.patch |
|
|
Patch14: plague-0.4.4.1-repolock.patch |
|
|
Patch15: plague-0.4.4.1-repoadd.patch |
|
|
Patch100: plague-0.4.4.1-pushscript-extras.patch |
|
|
|
|
33 |
|
|
34 |
%description |
%description |
35 |
The Plague build system is a client/server distributed build system for |
The Plague build system is a client/server distributed build system for |
42 |
Requires: pyOpenSSL |
Requires: pyOpenSSL |
43 |
|
|
44 |
%description common |
%description common |
45 |
This package includes the common Python module that all Plague services require. |
This package includes the common Python module that all Plague services |
46 |
|
require. |
47 |
|
|
48 |
|
|
49 |
%package builder |
%package builder |
50 |
Summary: Builder daemon for Plague builder slaves |
Summary: Builder daemon for Plague builder slaves |
51 |
Group: Development/Tools |
Group: Development/Tools |
52 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
53 |
Requires: yum >= 2.2.1, mock >= 0.8 |
Requires: yum >= 2.2.1 |
54 |
|
Requires: mock >= 0.8 |
55 |
Requires(post): /sbin/chkconfig |
Requires(post): /sbin/chkconfig |
56 |
Requires(post): /sbin/service |
Requires(post): /sbin/service |
57 |
Requires(preun): /sbin/chkconfig |
Requires(preun): /sbin/chkconfig |
67 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
68 |
|
|
69 |
%description client |
%description client |
70 |
Client program for enqueueing package builds and interrogating the build system. |
Client program for enqueueing package builds and interrogating the build |
71 |
|
system. |
72 |
|
|
73 |
|
|
74 |
%package utils |
%package utils |
75 |
Summary: Utility programs for the Plague build system |
Summary: Utility programs for the Plague build system |
76 |
Group: Development/Tools |
Group: Development/Tools |
77 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
78 |
|
Requires: %{name} = %{version}-%{release} |
79 |
|
|
80 |
%description utils |
%description utils |
81 |
This package includes user utilities for the Plague build system, including |
This package includes user utilities for the Plague build system, including |
84 |
|
|
85 |
%prep |
%prep |
86 |
%setup -q |
%setup -q |
87 |
%patch0 -p0 -b .umask |
%patch0 -p1 |
|
%patch1 -p1 -b .py25 |
|
|
%patch2 -p1 -b .authed |
|
|
%patch3 -p1 -b .srpm-umask |
|
|
%patch4 -p1 -b .etc |
|
|
%patch5 -p1 -b .pause |
|
|
%patch6 -p1 -b .racecondition |
|
|
%patch7 -p1 -b .preperrormsg |
|
|
%patch8 -p1 -b .kill |
|
|
%patch9 -p1 -b .mock8 |
|
|
%patch10 -p1 -b .update-builders |
|
|
%patch11 -p1 -b .filedownloader |
|
|
%patch12 -p1 -b .faster-downloads |
|
|
%patch13 -p1 -b .buildsys-fixes |
|
|
%patch14 -p1 -b .repolock |
|
|
%patch15 -p1 -b .repoadd |
|
|
%patch100 -p1 -b .pushscript-extras |
|
88 |
|
|
89 |
|
|
90 |
%build |
%build |
93 |
|
|
94 |
%install |
%install |
95 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
96 |
make DESTDIR=$RPM_BUILD_ROOT install |
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install |
97 |
install -D -m 0644 etc/plague-builder.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-builder |
chmod +x $RPM_BUILD_ROOT%{_bindir}/* |
98 |
install -D -m 0755 etc/plague-builder.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-builder |
install -p -D -m 0644 etc/plague-builder.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-builder |
99 |
install -D -m 0644 etc/plague-server.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-server |
install -p -D -m 0755 etc/plague-builder.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-builder |
100 |
install -D -m 0755 etc/plague-server.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-server |
install -p -D -m 0644 etc/plague-server.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-server |
101 |
mkdir -p $RPM_BUILD_ROOT/srv/plague_builder |
install -p -D -m 0755 etc/plague-server.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-server |
102 |
|
mkdir -p $RPM_BUILD_ROOT/var/lib/plague/builder |
103 |
|
|
104 |
|
|
105 |
%clean |
%clean |
117 |
fi |
fi |
118 |
|
|
119 |
%pre builder |
%pre builder |
120 |
/usr/sbin/useradd -G mock -s /sbin/nologin -M -r -d /srv/plague_builder plague-builder 2>/dev/null || : |
/usr/sbin/useradd -G mock -s /sbin/nologin -M -r -d /var/lib/plague/builder plague-builder 2>/dev/null || : |
121 |
|
|
122 |
%post builder |
%post builder |
123 |
/sbin/chkconfig --add plague-builder |
/sbin/chkconfig --add plague-builder |
138 |
%dir %{_sysconfdir}/%{name}/server/certs |
%dir %{_sysconfdir}/%{name}/server/certs |
139 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server |
140 |
%{_initrddir}/%{name}-server |
%{_initrddir}/%{name}-server |
141 |
|
%doc www |
142 |
|
|
143 |
%files common |
%files common |
144 |
%defattr(-, root, root) |
%defattr(-, root, root) |
157 |
%dir %{_sysconfdir}/%{name}/builder/certs |
%dir %{_sysconfdir}/%{name}/builder/certs |
158 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-builder |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-builder |
159 |
%{_initrddir}/%{name}-builder |
%{_initrddir}/%{name}-builder |
160 |
%attr(0755, plague-builder, plague-builder) /srv/plague_builder |
%dir /var/lib/plague |
161 |
|
%attr(0755, plague-builder, plague-builder) /var/lib/plague/builder |
162 |
|
|
163 |
%files client |
%files client |
164 |
%defattr(-, root, root) |
%defattr(-, root, root) |
166 |
|
|
167 |
%files utils |
%files utils |
168 |
%defattr(-, root, root) |
%defattr(-, root, root) |
169 |
%{_bindir}/%{name}-user-manager.py* |
%{_bindir}/%{name}-user-manager |
170 |
%{_bindir}/%{name}-certhelper.py* |
%{_bindir}/%{name}-certhelper |
171 |
|
|
172 |
|
|
173 |
%changelog |
%changelog |
174 |
* Fri Jan 18 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-10.el5 |
* Sun Oct 5 2008 Shad L. Lords <slords@mail.com> - 0.4.5.6-1.1 |
175 |
- Patch add_to_repo stage. |
- add the optional pushscript-extras patch |
176 |
|
|
177 |
|
* Sun Sep 21 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.6-1 |
178 |
|
- update to 0.4.5.6 |
179 |
|
|
180 |
|
* Sat Sep 20 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.5-2 |
181 |
|
- add fix for sqlite's limited ALTER TABLE |
182 |
|
|
183 |
|
* Mon Sep 8 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.5-1 |
184 |
|
- update to 0.4.5.5 |
185 |
|
|
186 |
|
* Sun Sep 07 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.4-1 |
187 |
|
- update to 0.4.5.4 to make it work with MySQL 5 |
188 |
|
|
189 |
|
* Sun Sep 7 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.3-2 |
190 |
|
- fix mod_user in plague-user-manager for sqlite2/3 |
191 |
|
|
192 |
|
* Fri Sep 5 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.3-1 |
193 |
|
- update to 0.4.5.3 for sqlite2 compatibility fixes for Fedora |
194 |
|
- merge fedora pkg spec changes |
195 |
|
- include the www tree as server pkg docs |
196 |
|
|
197 |
|
* Thu Sep 04 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.5.2-1 |
198 |
|
- fix bug in find option to plague-user-manager |
199 |
|
|
200 |
* Wed Jan 9 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-9.el5 |
* Wed Sep 03 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.5.1-1 |
201 |
- Updated etc/ patch. |
- update to 0.4.5.1 applying Michael schwendt's logging and mock patches |
202 |
|
- using pysqlite2 on fedora and python-sqlite on RHEL |
203 |
|
- requires mock > 0.8 |
204 |
|
- requires createrepo >= 0.4.7 |
205 |
|
|
206 |
* Sat Jan 5 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-8.el5 |
* Wed Sep 3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5-2 |
207 |
- Add patches: repolock, filedownloader, faster downloads |
- add the patches from 0.4.5-0.4 (sqlite3, mock08, logtail) |
208 |
- Merged post-0.4.4.1 patches from buildsys.fedoraproject.org server |
- merge more spec changes |
|
- Merge the jobs db cleanup (in this form it is specific to Extras/EPEL |
|
|
buildsys and disables the "finish" command) |
|
209 |
|
|
210 |
* Wed Dec 26 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-7.el5 |
* Tue Sep 02 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.5-1 |
211 |
- Fix update_builders command for non-admin users. |
- update to 0.4.5 lots of fixes |
212 |
|
|
213 |
* Wed Nov 14 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-6.el5 |
* Thu May 22 2008 Seth Vidal <skvidal at fedoraproject.org> - 0.4.4.1-6 |
214 |
- Add patches for bug-fixes and mock 0.8 support. |
- licensing tag fix |
215 |
|
|
216 |
* Tue Sep 18 2007 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-5 |
* Tue Sep 18 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.4.1-5 |
217 |
- Add dirs /etc/plague and /usr/share/plague to plague-common |
- Add dirs /etc/plague and /usr/share/plague to plague-common |
218 |
since "plague-builder" and "plague" use them (#233904). |
since "plague-builder" and "plague" use them (#233904). |
219 |
|
|
380 |
|
|
381 |
* Sat Jul 16 2005 Dan Williams <dcbw@redhat.com> |
* Sat Jul 16 2005 Dan Williams <dcbw@redhat.com> |
382 |
- Bump version to 0.2 |
- Bump version to 0.2 |
383 |
- Grab python files from /usr/lib, not %{_libdir} until the |
- Grab python files from /usr/lib, not %%{_libdir} until the |
384 |
multiarch issues get worked out |
multiarch issues get worked out |
385 |
|
|
386 |
* Sun Jun 26 2005 Dan Williams <dcbw@redhat.com> |
* Sun Jun 26 2005 Dan Williams <dcbw@redhat.com> |