@@ -1,381 +0,0 @@
-#
-# spec file for package obs-server (Version 0.9.99)
-#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
-
-
-Name: j0ke.net-worker
-Requires: perl-Socket-MsgHdr perl-XML-Parser perl-Compress-Zlib createrepo perl-Net_SSLeay
-BuildRequires: python-devel rubygem-builder
-%if 0%{?suse_version:1}
-PreReq: %fillup_prereq %insserv_prereq
-%endif
-License: GPL
-Group: Productivity/Networking/Web/Utilities
-AutoReqProv: on
-Version: 0.9.99
-Release: 0
-Url: http://en.opensuse.org/Build_Service
-Summary: The openSUSE Build Service -- Server Component
-Source: buildservice-%version.tar.bz2
-Source1: obsworker
-Source3: obspublisher
-Source4: obsrepserver
-Source5: obssrcserver
-Source6: obsscheduler
-Source7: obs.conf
-Source8: cleanurl-v5.lua
-Source9: rails.include
-Source11: sysconfig.obs-worker
-Source12: sysconfig.obs-server
-Source13: obs_mirror_project
-Source15: obsdispatcher
-%if 0%{?suse_version} >= 1020
-Recommends: yum yum-metadata-parser repoview dpkg
-Recommends: createrepo >= 0.4.10
-%else
-Requires: yum yum-metadata-parser repoview dpkg
-Requires: createrepo >= 0.4.10
-%endif
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildArch: noarch
-
-%description
-Authors:
---------
- The openSUSE Team <opensuse-buildservice@opensuse.org>
-
-%package -n obs-worker
-
-Requires: perl-TimeDate screen curl perl-XML-Parser perl-Compress-Zlib
-%ifarch x86_64
-Requires: linux32
-%endif
-%ifarch ppc64
-Requires: powerpc32
-%endif
-%if 0%{?suse_version} <= 1030
-Requires: lzma
-%endif
-%if 0%{?suse_version}
-PreReq: %fillup_prereq %insserv_prereq
-%endif
-Group: Productivity/Networking/Web/Utilities
-Summary: The openSUSE Build Service -- Build Host Component
-
-%description -n obs-worker
-
-%package -n obs-api
-
-%if 0%{?suse_version}
-PreReq: %fillup_prereq %insserv_prereq
-%endif
-Requires: lighttpd ruby-fcgi lighttpd-mod_magnet mysql ruby-mysql rubygem-rake
-Requires: rubygem-rails >= 2.0
-Group: Productivity/Networking/Web/Utilities
-Summary: The openSUSE Build Service -- The Frontend part
-
-%description -n obs-api
-
-%prep
-%setup -q -n buildservice-%version
-
-%build
-#
-# generate apidocs
-#
-cd docs/api/frontend
-make apidocs
-cd -
-
-%install
-#
-# Install all web and frontend parts.
-#
-cd src
-for i in common frontend webclient; do
- mkdir -p $RPM_BUILD_ROOT/srv/www/obs/
- cp -a $i $RPM_BUILD_ROOT/srv/www/obs/$i
-done
-# configure lighttpd web service
-mkdir -p $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/
-install -m 0644 %SOURCE7 $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/
-install -m 0644 %SOURCE9 $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/rails.inc
-install -m 0644 %SOURCE8 $RPM_BUILD_ROOT/etc/lighttpd/
-rm $RPM_BUILD_ROOT/srv/www/obs/frontend/README_LOGIN
-rm $RPM_BUILD_ROOT/srv/www/obs/frontend/files/specfiletemplate
-# fix path
-for i in $RPM_BUILD_ROOT/srv/www/obs/*/config/environment.rb; do
- sed "s,/srv/www/opensuse/common/current/lib,/srv/www/obs/common/lib," \
- "$i" > "$i"_ && mv "$i"_ "$i"
-done
-#
-#set default api on localhost for the webclient
-#
-sed 's,FRONTEND_HOST.*,FRONTEND_HOST = "127.0.42.2",' \
- $RPM_BUILD_ROOT/srv/www/obs/webclient/config/environments/development.rb > tmp-file \
- && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webclient/config/environments/development.rb"
-sed 's,FRONTEND_PORT.*,FRONTEND_PORT = 80,' \
- $RPM_BUILD_ROOT/srv/www/obs/webclient/config/environments/development.rb > tmp-file \
- && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webclient/config/environments/development.rb"
-sed 's,api.opensuse.org,127.0.42.2,' \
- $RPM_BUILD_ROOT/srv/www/obs/webclient/app/helpers/package_helper.rb > tmp-file \
- && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webclient/app/helpers/package_helper.rb"
-#
-# install apidocs
-#
-mkdir -p $RPM_BUILD_ROOT/srv/www/obs/frontend/public/apidocs/html/
-cp -a ../docs/api/html $RPM_BUILD_ROOT/srv/www/obs/frontend/public/apidocs/
-mkdir -p $RPM_BUILD_ROOT/srv/www/obs/frontend/public/schema/
-cp -a ../docs/api/frontend/*.{rng,xsd} $RPM_BUILD_ROOT/srv/www/obs/frontend/public/schema/
-#
-# Install all backend parts.
-#
-cd backend/
-install -d -m 755 $RPM_BUILD_ROOT/usr/lib/obs/server/
-install -d -m 755 $RPM_BUILD_ROOT/usr/sbin/
-install -d -m 755 $RPM_BUILD_ROOT/etc/init.d/
-install -d -m 755 $RPM_BUILD_ROOT/srv/obs/projects
-install -d -m 755 $RPM_BUILD_ROOT/srv/obs/log
-install -d -m 755 $RPM_BUILD_ROOT/srv/obs/run
-# install executables and code
-cp -a * $RPM_BUILD_ROOT/usr/lib/obs/server/
-# install mirror script
-install -m 0755 %SOURCE13 $RPM_BUILD_ROOT/usr/sbin/
-# install runlevel scripts
-install -m 0755 %SOURCE1 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE6 %SOURCE15 \
- $RPM_BUILD_ROOT/etc/init.d/
-for i in obssrcserver obsrepserver obsscheduler obsworker obspublisher obsdispatcher ; do
- ln -sf /etc/init.d/$i $RPM_BUILD_ROOT/usr/sbin/rc$i
-done
-# Ship latest version of build to be always in sync. do not use the symlink.
-rm -rf $RPM_BUILD_ROOT/usr/lib/obs/server/build
-cp -a ../build $RPM_BUILD_ROOT/usr/lib/obs/server/build
-# install fillups
-FILLUP_DIR=$RPM_BUILD_ROOT/var/adm/fillup-templates
-mkdir -p $FILLUP_DIR
-cp -a %SOURCE11 %SOURCE12 $FILLUP_DIR/
-
-%pre
-/usr/sbin/groupadd -r obsrun 2> /dev/null || :
-/usr/sbin/useradd -r -o -s /bin/false -c "User for build service backend" -d /usr/lib/obs -g obsrun obsrun 2> /dev/null || :
-
-%preun
-for service in obssrcserver obsrepserver obsdispatcher obsscheduler obspublisher; do
-%stop_on_removal $service
-done
-
-%post -n obs-server
-%{fillup_and_insserv -n obs-server}
-for service in obssrcserver obsrepserver obsdispatcher obsscheduler obspublisher; do
-%restart_on_update $service
-done
-
-%post -n obs-worker
-%{fillup_and_insserv -n obs-worker}
-%restart_on_update obsworker
-
-%post -n obs-api
-touch /srv/www/obs/{webclient,frontend}/log/development.log
-chown lighttpd:lighttpd /srv/www/obs/{webclient,frontend}/log/development.log
-%restart_on_update lighttpd
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%dir /usr/lib/obs
-%dir /usr/lib/obs/server
-/etc/init.d/obsdispatcher
-/etc/init.d/obspublisher
-/etc/init.d/obsrepserver
-/etc/init.d/obsscheduler
|