|
# $Id$ |
|
|
# # Authority: slords |
|
|
# Name: Shad L. Lords |
|
|
|
|
1 |
BuildArch: noarch |
BuildArch: noarch |
2 |
|
|
3 |
Summary: Distributed build system for RPMs |
Summary: Distributed build system for RPMs |
4 |
Name: plague |
Name: plague |
5 |
Version: 0.4.4.1 |
Version: 0.4.5.3 |
6 |
Release: 10%{?dist} |
Release: 1%{?dist} |
7 |
License: GPL |
License: GPLv2+ |
8 |
Group: Development/Tools |
Group: Development/Tools |
9 |
Source: http://fedoraproject.org/projects/plague/releases/%{name}-%{version}.tar.bz2 |
#Source: http://fedoraproject.org/projects/plague/releases/%{name}-%{version}.tar.bz2 |
10 |
|
Source: %{name}-%{version}.tar.bz2 |
11 |
URL: http://www.fedoraproject.org/wiki/Projects/Plague |
URL: http://www.fedoraproject.org/wiki/Projects/Plague |
12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
13 |
Requires: createrepo >= 0.4.3 |
BuildRequires: python |
14 |
|
Requires: createrepo >= 0.4.7 |
15 |
|
# get the version of the sqlite api thats available to us |
16 |
|
%if 0%{?rhel} |
17 |
|
Requires: python-sqlite |
18 |
|
%else |
19 |
|
Requires: python-sqlite2 |
20 |
|
%endif |
21 |
|
|
22 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
23 |
Requires(post): /sbin/chkconfig |
Requires(post): /sbin/chkconfig |
24 |
Requires(post): /sbin/service |
Requires(post): /sbin/service |
25 |
Requires(preun): /sbin/chkconfig |
Requires(preun): /sbin/chkconfig |
26 |
Requires(preun): /sbin/service |
Requires(preun): /sbin/service |
27 |
|
|
|
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 |
|
|
|
|
28 |
|
|
29 |
%description |
%description |
30 |
The Plague build system is a client/server distributed build system for |
The Plague build system is a client/server distributed build system for |
37 |
Requires: pyOpenSSL |
Requires: pyOpenSSL |
38 |
|
|
39 |
%description common |
%description common |
40 |
This package includes the common Python module that all Plague services require. |
This package includes the common Python module that all Plague services |
41 |
|
require. |
42 |
|
|
43 |
|
|
44 |
%package builder |
%package builder |
45 |
Summary: Builder daemon for Plague builder slaves |
Summary: Builder daemon for Plague builder slaves |
46 |
Group: Development/Tools |
Group: Development/Tools |
47 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
48 |
Requires: yum >= 2.2.1, mock >= 0.8 |
Requires: yum >= 2.2.1 |
49 |
|
Requires: mock >= 0.8 |
50 |
Requires(post): /sbin/chkconfig |
Requires(post): /sbin/chkconfig |
51 |
Requires(post): /sbin/service |
Requires(post): /sbin/service |
52 |
Requires(preun): /sbin/chkconfig |
Requires(preun): /sbin/chkconfig |
62 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
63 |
|
|
64 |
%description client |
%description client |
65 |
Client program for enqueueing package builds and interrogating the build system. |
Client program for enqueueing package builds and interrogating the build |
66 |
|
system. |
67 |
|
|
68 |
|
|
69 |
%package utils |
%package utils |
70 |
Summary: Utility programs for the Plague build system |
Summary: Utility programs for the Plague build system |
71 |
Group: Development/Tools |
Group: Development/Tools |
72 |
Requires: %{name}-common = %{version}-%{release} |
Requires: %{name}-common = %{version}-%{release} |
73 |
|
Requires: %{name} = %{version}-%{release} |
74 |
|
|
75 |
%description utils |
%description utils |
76 |
This package includes user utilities for the Plague build system, including |
This package includes user utilities for the Plague build system, including |
79 |
|
|
80 |
%prep |
%prep |
81 |
%setup -q |
%setup -q |
|
%patch0 -p0 -b .umask |
|
|
%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 |
|
82 |
|
|
83 |
|
|
84 |
%build |
%build |
87 |
|
|
88 |
%install |
%install |
89 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
90 |
make DESTDIR=$RPM_BUILD_ROOT install |
make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install |
91 |
install -D -m 0644 etc/plague-builder.config $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}-builder |
chmod +x $RPM_BUILD_ROOT%{_bindir}/* |
92 |
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 |
93 |
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 |
94 |
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 |
95 |
mkdir -p $RPM_BUILD_ROOT/srv/plague_builder |
install -p -D -m 0755 etc/plague-server.init $RPM_BUILD_ROOT%{_initrddir}/%{name}-server |
96 |
|
mkdir -p $RPM_BUILD_ROOT/var/lib/plague/builder |
97 |
|
|
98 |
|
|
99 |
%clean |
%clean |
111 |
fi |
fi |
112 |
|
|
113 |
%pre builder |
%pre builder |
114 |
/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 || : |
115 |
|
|
116 |
%post builder |
%post builder |
117 |
/sbin/chkconfig --add plague-builder |
/sbin/chkconfig --add plague-builder |
132 |
%dir %{_sysconfdir}/%{name}/server/certs |
%dir %{_sysconfdir}/%{name}/server/certs |
133 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-server |
134 |
%{_initrddir}/%{name}-server |
%{_initrddir}/%{name}-server |
135 |
|
%doc www |
136 |
|
|
137 |
%files common |
%files common |
138 |
%defattr(-, root, root) |
%defattr(-, root, root) |
151 |
%dir %{_sysconfdir}/%{name}/builder/certs |
%dir %{_sysconfdir}/%{name}/builder/certs |
152 |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-builder |
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-builder |
153 |
%{_initrddir}/%{name}-builder |
%{_initrddir}/%{name}-builder |
154 |
%attr(0755, plague-builder, plague-builder) /srv/plague_builder |
%dir /var/lib/plague |
155 |
|
%attr(0755, plague-builder, plague-builder) /var/lib/plague/builder |
156 |
|
|
157 |
%files client |
%files client |
158 |
%defattr(-, root, root) |
%defattr(-, root, root) |
160 |
|
|
161 |
%files utils |
%files utils |
162 |
%defattr(-, root, root) |
%defattr(-, root, root) |
163 |
%{_bindir}/%{name}-user-manager.py* |
%{_bindir}/%{name}-user-manager |
164 |
%{_bindir}/%{name}-certhelper.py* |
%{_bindir}/%{name}-certhelper |
165 |
|
|
166 |
|
|
167 |
%changelog |
%changelog |
168 |
* Fri Jan 18 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-10.el5 |
* Fri Sep 5 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5.3-1 |
169 |
- Patch add_to_repo stage. |
- update to 0.4.5.3 for sqlite2 compatibility fixes for Fedora |
170 |
|
- merge fedora pkg spec changes |
171 |
* Wed Jan 9 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-9.el5 |
- include the www tree as server pkg docs |
172 |
- Updated etc/ patch. |
|
173 |
|
* Thu Sep 04 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.5.2-1 |
174 |
* Sat Jan 5 2008 Michael Schwendt <mschwendt@users.sf.net> - 0.4.4.1-8.el5 |
- fix bug in find option to plague-user-manager |
175 |
- Add patches: repolock, filedownloader, faster downloads |
|
176 |
- Merged post-0.4.4.1 patches from buildsys.fedoraproject.org server |
* Wed Sep 03 2008 Dennis Gilmore <dennis@ausil.us> - 0.4.5.1-1 |
177 |
- Merge the jobs db cleanup (in this form it is specific to Extras/EPEL |
- update to 0.4.5.1 applying Michael schwendt's logging and mock patches |
178 |
buildsys and disables the "finish" command) |
- using pysqlite2 on fedora and python-sqlite on RHEL |
179 |
|
- requires mock > 0.8 |
180 |
|
- requires createrepo >= 0.4.7 |
181 |
|
|
182 |
|
* Wed Sep 3 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.4.5-2 |
183 |
|
- add the patches from 0.4.5-0.4 (sqlite3, mock08, logtail) |
184 |
|
- merge more spec changes |
185 |
|
|
186 |
* 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 |
187 |
- Fix update_builders command for non-admin users. |
- update to 0.4.5 lots of fixes |
188 |
|
|
189 |
* 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 |
190 |
- Add patches for bug-fixes and mock 0.8 support. |
- licensing tag fix |
191 |
|
|
192 |
* 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 |
193 |
- Add dirs /etc/plague and /usr/share/plague to plague-common |
- Add dirs /etc/plague and /usr/share/plague to plague-common |
194 |
since "plague-builder" and "plague" use them (#233904). |
since "plague-builder" and "plague" use them (#233904). |
195 |
|
|
356 |
|
|
357 |
* Sat Jul 16 2005 Dan Williams <dcbw@redhat.com> |
* Sat Jul 16 2005 Dan Williams <dcbw@redhat.com> |
358 |
- Bump version to 0.2 |
- Bump version to 0.2 |
359 |
- Grab python files from /usr/lib, not %{_libdir} until the |
- Grab python files from /usr/lib, not %%{_libdir} until the |
360 |
multiarch issues get worked out |
multiarch issues get worked out |
361 |
|
|
362 |
* Sun Jun 26 2005 Dan Williams <dcbw@redhat.com> |
* Sun Jun 26 2005 Dan Williams <dcbw@redhat.com> |