File obs-worker.spec of Package obs-worker

Name:           obs-worker
Summary:        The Open Build Service -- Worker Component
License:        GPL-2.0 and GPL-3.0
Group:          Productivity/Networking/Web/Utilities
Version:        2.5.6
Release:        2.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        obsworker.sysvinit
Source1:        obs-server.sysconfig

Requires:       bash
Requires:       binutils
Requires:       bsdtar
Requires:       cpio
Requires:       curl
Requires:       perl-Compress-Zlib
Requires:       perl-TimeDate
Requires:       perl-XML-Parser
Requires:       psmisc
Requires:       screen
Requires:       zstd

The Open Build Service (OBS) backend is used to store all sources and binaries. It also
calculates the need for new build jobs and distributes it.



mkdir -p \
    %{buildroot}%{_initddir} \
    %{buildroot}%{_sysconfdir}/sysconfig/ \
    %{buildroot}/%{_var}/cache/obs/ \

install -m 0755 %{SOURCE0} \

install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/obs-server


getent group obsrun >/dev/null || groupadd -r -g 499 obsrun
getent passwd obsrun >/dev/null || \
    /usr/sbin/useradd -r -g obsrun -d /var/lib/obs -s /sbin/nologin -u 499 obsrun
exit 0

chkconfig --add obsworker >/dev/null 2>&1 || :
systemctl daemon-reload >/dev/null 2>&1 || :

%config(noreplace) %{_sysconfdir}/sysconfig/obs-server
%attr(0755,obsrun,obsrun) %{_var}/cache/obs/
%attr(0755,obsrun,obsrun) %{_var}/lib/obs/

* Thu Jul 16 2015 Jeroen van Meeuwen (Kolab Systems) <> - 2.5.6-2.1
- Initial package