Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
Tools
>
j0ke.net-worker
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 14
[-]
[+]
Changed
j0ke-worker.spec
@@ -2,14 +2,15 @@ License: GPL Group: Productivity/Networking/Web/Utilities AutoReqProv: on -Version: 1.0 +Version: 1.1 Release: 1 Url: http://obs.j0ke.net/ Summary: The j0ke.net Build Service -- Server Component -Provides: obs-worker -Obsoletes: obs-worker +Provides: obs-worker +Obsoletes: obs-worker Source1: obsworker Source11: sysconfig.obs-worker +Source12: buildhost.config BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires: perl-TimeDate screen curl perl-XML-Parser perl-Compress-Zlib @@ -19,7 +20,7 @@ %ifarch ppc64 Requires: powerpc32 %endif -%if 0%{?suse_version} >= 930 && 0%{?suse_version} <= 1030 +%if 0%{?suse_version} >= 930 && 0%{?suse_version} <= 1030 || 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} Requires: lzma %endif %if 0%{?suse_version} @@ -31,9 +32,17 @@ %endif %description +this package includes j0ke.net specific buildservice worker -%prep +%package xen +Summary: buildhost.config for xen worker +Group: Productivity/Networking/Web/Utilities +Requires: %{name} +%description xen +this package includes buildhost.config for j0ke.net-worker + +%prep %build %install @@ -44,6 +53,8 @@ install -m 0755 %SOURCE1 \ $RPM_BUILD_ROOT/etc/init.d/ ln -sf /etc/init.d/obsworker $RPM_BUILD_ROOT/usr/sbin/rcobsworker +install -D -m 0644 %SOURCE12 \ + $RPM_BUILD_ROOT/%{_sysconfdir}/ # install fillups FILLUP_DIR=$RPM_BUILD_ROOT/var/adm/fillup-templates mkdir -p $FILLUP_DIR @@ -52,6 +63,9 @@ %post %{fillup_and_insserv -n obs-worker} %restart_on_update obsworker +%if 0%{?centos_version} || 0%{?fedora_version} || 0%{?rhel_version} +cp /var/adm/fillup-templates/sysconfig.obs-worker /etc/sysconfig/obs-worker +%endif %clean rm -rf $RPM_BUILD_ROOT @@ -62,6 +76,10 @@ /etc/init.d/obsworker /usr/sbin/rcobsworker +%files -n xen +%defattr(-,root,root) +%{_sysconfdir}/buildhost.config + %changelog * Wed Jul 23 2008 Carsten Schoene <cs@linux-administrator.com> - initial build of worker package with j0ke.net specific configuration