* update 2.0.2 spec file
[opensuse:build-service.git] / dist / obs-server.spec
1 #
2 # spec file for package obs-server
3 #
4 # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
9 #
10
11
12
13 Name:           obs-server
14 Summary:        The openSUSE Build Service -- Server Component
15
16 Version:        2.0.2
17 Release:        0
18 License:        GPL
19 Group:          Productivity/Networking/Web/Utilities
20 Url:            http://en.opensuse.org/Build_Service
21 BuildRoot:      /var/tmp/%name-root
22 # git clone git://gitorious.org/opensuse/build-service.git build-service-1.7.54; tar cfvj obs-server-1.7.54.tar.bz2 --exclude=.git\* build-service-1.7.54/
23 Source:         obs-server-%version.tar.bz2
24 # git clone git://gitorious.org/opensuse/themes.git opensuse-themes-0.9; tar cfvj opensuse-themes-0.9.tar.bz2 --exclude=.git\* opensuse-themes-0.9
25 Source1:        opensuse-themes-2.0.tar.bz2
26 Autoreqprov:    on
27 BuildRequires:  python-devel
28 BuildRequires:  obs-common
29 # make sure this is in sync with the RAILS_GEM_VERSION specified in the
30 # config/environment.rb of the various applications.
31 # atm the obs rails version patch above unifies that setting among the applications
32 # also see requires in the obs-server-api sub package
33 BuildRequires:  rubygem-rails-2_3 = 2.3.5
34 BuildRequires:  rubygem-rmagick
35 BuildRequires:  build >= 2009.05.04
36 BuildRequires:  perl-BSSolv
37 BuildRequires:  lighttpd
38 Requires:       build >= 2009.05.04
39 Requires:       perl-BSSolv
40 # Required by source server
41 Requires:       patch diffutils
42 PreReq:         sysvinit
43
44 %if 0%{?suse_version} >= 1030
45 BuildRequires:  fdupes
46 %endif
47 %if 0%{?suse_version:1}
48 PreReq:         %fillup_prereq %insserv_prereq permissions
49 %endif
50
51 %if 0%{?suse_version} >= 1020
52 Recommends:     yum yum-metadata-parser repoview dpkg
53 Recommends:     createrepo
54 Conflicts:      createrepo < 0.9.8
55 Recommends:     deb >= 1.5
56 Recommends:     lvm2
57 Recommends:     openslp-server
58 Recommends:     obs-signd
59 %else
60 Requires:       yum yum-metadata-parser dpkg
61 Requires:       createrepo >= 0.4.10
62 %endif
63 Requires:       perl-Compress-Zlib perl-Net_SSLeay perl-Socket-MsgHdr perl-XML-Parser
64
65 %description
66 Authors:
67 --------
68     The openSUSE Team <opensuse-buildservice@opensuse.org>
69
70 %package -n obs-worker
71 Requires:       perl-TimeDate screen curl perl-XML-Parser perl-Compress-Zlib cpio
72 # For runlevel script:
73 Requires:       curl
74 Recommends:     openslp lvm2
75 # requires from build script
76 Requires:       bash binutils
77 Summary:        The openSUSE Build Service -- Build Host Component
78 Group:          Productivity/Networking/Web/Utilities
79 %if 0%{?suse_version}
80 PreReq:         %fillup_prereq %insserv_prereq
81 %endif
82 %if 0%{?suse_version} <= 1030
83 Requires:       lzma
84 %endif
85 %if 0%{?suse_version} >= 1120
86 BuildArch:      noarch
87 Requires:       util-linux >= 2.16
88 %else
89 %ifarch x86_64
90 Requires:       linux32
91 %endif
92 %ifarch ppc64
93 Requires:       powerpc32
94 %endif
95 %endif
96
97 %description -n obs-worker
98 This is the obs build host, to be installed on each machine building
99 packages in this obs installation.  Install it alongside obs-server to
100 run a local playground test installation.
101
102 %package -n obs-api
103 Summary:        The openSUSE Build Service -- The Frontend part
104 Group:          Productivity/Networking/Web/Utilities
105 Requires:       obs-common
106 %if 0%{?suse_version}
107 PreReq:         %fillup_prereq %insserv_prereq
108 %endif
109
110 Requires:       lighttpd ruby-fcgi lighttpd-mod_magnet mysql ruby-mysql
111 # make sure this is in sync with the RAILS_GEM_VERSION specified in the
112 # config/environment.rb of the various applications.
113 Requires:       rubygem-rack = 1.0.1
114 Requires:       rubygem-rails-2_3 = 2.3.5
115 Requires:       rubygem-libxml-ruby
116 Requires:       rubygem-daemons
117 Requires:       rubygem-delayed_job
118 %if 0%{?suse_version} >= 1020
119 Supplements:    ruby-ldap
120 %endif
121 # requires for webui:
122 Requires:       ghostscript-fonts-std
123 Requires:       rubygem-gruff
124 Requires:       rubygem-sqlite3
125 Requires:       rubygem-rmagick
126 Requires:       rubygem-exception_notification < 2.0
127 Recommends:     memcached
128 Group:          Productivity/Networking/Web/Utilities
129 Summary:        The openSUSE Build Service -- The Frontend part
130
131 %description -n obs-api
132 This is the API server instance, and the web client for the 
133 OBS.
134
135 %package -n obs-source_service
136 Summary:        The openSUSE Build Service -- source service daemon
137 Group:          Productivity/Networking/Web/Utilities
138 # Our default services, used in osc and webui
139 Recommends:     obs-service-download_url
140 Recommends:     obs-service-verify_file
141
142 %description -n obs-source_service
143 The OBS source service is a component to modify submitted sources
144 on the server side. This may include source checkout, spec file
145 generation, gpg validation, quality checks and other stuff.
146
147 This component is optional and not required to run the service.
148
149
150 %package -n obs-productconverter
151 Summary:        The openSUSE Build Service -- product definition utility
152 Group:          Productivity/Networking/Web/Utilities
153 # For perl library files, TODO: split out obs-lib subpackage?
154 Requires:       obs-server
155
156 %description -n obs-productconverter
157 bs_productconvert is a utility to create Kiwi- and Spec- files from a
158 product definition.
159
160 %package -n obs-utils
161 Summary:        The openSUSE Build Service -- utilities
162 Group:          Productivity/Networking/Web/Utilities
163 Requires:       osc build ruby 
164
165 %description -n obs-utils
166 obs_mirror_project is a tool to copy the binary data of a project from one obs to another
167 obs_project_update is a tool to copy a packages of a project from one obs to another
168
169 Authors:       Susanne Oberhauser, Martin Mohring
170
171 #--------------------------------------------------------------------------------
172 %prep
173 %setup -q -n build-service-%version -b 1
174 # drop build script, we require the installed one from own package
175 rm -rf src/build
176 find . -name .git\* -o -name Capfile -o -name deploy.rb | xargs rm -rf
177
178 %build
179 #
180 # generate apidocs
181 #
182 cd docs/api/api
183 make apidocs
184 cd -
185
186 %install
187 #
188 # First install all dist files
189 #
190 cd dist
191 # configure lighttpd web service
192 mkdir -p $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/
193 install -m 0644 obs.conf $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/
194 install -m 0644 rails.include $RPM_BUILD_ROOT/etc/lighttpd/vhosts.d/rails.inc
195 install -m 0644 cleanurl-v5.lua $RPM_BUILD_ROOT/etc/lighttpd/
196 # install obs mirror script and obs copy script
197 install -d -m 755 $RPM_BUILD_ROOT/usr/sbin/
198 install -m 0755 obs_mirror_project obs_project_update $RPM_BUILD_ROOT/usr/sbin/
199 # install  runlevel scripts
200 install -d -m 755 $RPM_BUILD_ROOT/etc/init.d/
201 for i in obssrcserver obsrepserver obsscheduler obsworker obspublisher obsdispatcher \
202          obssigner obswarden obsapidelayed obswebuidelayed obsapisetup obsstoragesetup \
203          obsservice; do
204   install -m 0755 $i \
205            $RPM_BUILD_ROOT/etc/init.d/
206   ln -sf /etc/init.d/$i $RPM_BUILD_ROOT/usr/sbin/rc$i
207 done
208 # install logrotate
209 install -d -m 755 $RPM_BUILD_ROOT/etc/logrotate.d/
210 for i in obs-api.logrotate obs-build.logrotate obs-server.logrotate ; do
211   install -m 0755 $i \
212            $RPM_BUILD_ROOT/etc/logrotate.d/
213 done
214 # install fillups
215 FILLUP_DIR=$RPM_BUILD_ROOT/var/adm/fillup-templates
216 install -d -m 755 $FILLUP_DIR
217 install -m 0644 sysconfig.obs-server sysconfig.obs-worker $FILLUP_DIR/
218 # install cronjobs
219 CRON_DIR=$RPM_BUILD_ROOT/etc/cron.d
220 install -d -m 755 $CRON_DIR
221 install -m 0644 crontab.obs-api   $CRON_DIR/obs-api
222 install -m 0644 crontab.obs-webui $CRON_DIR/obs-webui
223 # install SLP registration files
224 SLP_DIR=$RPM_BUILD_ROOT/etc/slp.reg.d/
225 install -d -m 755  $SLP_DIR
226 install -m 644 obs.source_server.reg $SLP_DIR/
227 install -m 644 obs.repo_server.reg $SLP_DIR/
228 # create symlink for product converter
229 mkdir -p $RPM_BUILD_ROOT/usr/bin
230 cat > $RPM_BUILD_ROOT/usr/bin/obs_productconvert <<EOF
231 #!/bin/bash
232 exec /usr/lib/obs/server/bs_productconvert "\$@"
233 EOF
234 chmod 0755 $RPM_BUILD_ROOT/usr/bin/obs_productconvert
235 cat > $RPM_BUILD_ROOT/usr/sbin/obs_admin <<EOF
236 #!/bin/bash
237 exec /usr/lib/obs/server/bs_admin "\$@"
238 EOF
239 chmod 0755 $RPM_BUILD_ROOT/usr/sbin/obs_admin
240 cat > $RPM_BUILD_ROOT/usr/sbin/obs_serverstatus <<EOF
241 #!/bin/bash
242 exec /usr/lib/obs/server/bs_serverstatus "\$@"
243 EOF
244 chmod 0755 $RPM_BUILD_ROOT/usr/sbin/obs_serverstatus
245
246
247 #
248 # Install all web and api parts.
249 #
250 cd ../src
251 for i in api webui; do
252   mkdir -p $RPM_BUILD_ROOT/srv/www/obs/
253   cp -a $i $RPM_BUILD_ROOT/srv/www/obs/$i
254 done
255 rm $RPM_BUILD_ROOT/srv/www/obs/api/README_LOGIN
256 rm $RPM_BUILD_ROOT/srv/www/obs/api/files/specfiletemplate
257 mkdir -p $RPM_BUILD_ROOT/srv/www/obs/api/log
258 mkdir -p $RPM_BUILD_ROOT/srv/www/obs/webui/log
259 touch $RPM_BUILD_ROOT/srv/www/obs/{webui,api}/log/production.log
260 rm $RPM_BUILD_ROOT/srv/www/obs/webui/README.install
261 # the git webinterface tries to connect to api.opensuse.org by default
262 install -m 0644 ../dist/webui-production.rb $RPM_BUILD_ROOT/srv/www/obs/webui/config/environments/production.rb
263 # needed for correct permissions
264 touch $RPM_BUILD_ROOT/srv/www/obs/webui/db/database.db
265
266 #
267 #set default api on localhost for the webui
268
269 mv $RPM_BUILD_ROOT/srv/www/obs/api/files/distributions.xml.template $RPM_BUILD_ROOT/srv/www/obs/api/files/distributions.xml
270 sed 's,FRONTEND_HOST.*,FRONTEND_HOST = "127.0.42.2",' \
271   $RPM_BUILD_ROOT/srv/www/obs/webui/config/environments/development.rb > tmp-file \
272   && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webui/config/environments/development.rb"
273 sed 's,FRONTEND_PORT.*,FRONTEND_PORT = 80,' \
274   $RPM_BUILD_ROOT/srv/www/obs/webui/config/environments/development.rb > tmp-file \
275   && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webui/config/environments/development.rb"
276 sed 's,api.opensuse.org,127.0.42.2,' \
277   $RPM_BUILD_ROOT/srv/www/obs/webui/app/helpers/package_helper.rb > tmp-file \
278   && mv tmp-file "$RPM_BUILD_ROOT/srv/www/obs/webui/app/helpers/package_helper.rb"
279
280 #
281 # Install webui theme
282 #
283 mkdir -p "$RPM_BUILD_ROOT/srv/www/obs/webui/public/themes/"
284 cp -av "$RPM_BUILD_DIR"/opensuse-themes-*/* "$RPM_BUILD_ROOT/srv/www/obs/webui/public/themes/"
285
286 #
287 # install apidocs
288
289 mkdir -p $RPM_BUILD_ROOT/srv/www/obs/api/public/apidocs/html/
290 cp -a ../docs/api/html           $RPM_BUILD_ROOT/srv/www/obs/api/public/apidocs
291 mkdir -p $RPM_BUILD_ROOT/srv/www/obs/docs/api
292 cp -a ../docs/api/api/*.{rng,xsd}    $RPM_BUILD_ROOT/srv/www/obs/docs/api
293 #
294 # Fix symlinks to common, could be much cleaner ...
295 #
296 rm -f $RPM_BUILD_ROOT/srv/www/obs/api/lib/common $RPM_BUILD_ROOT/srv/www/obs/webui/lib/common
297 ln -sf /srv/www/obs/common/lib $RPM_BUILD_ROOT/srv/www/obs/api/lib/common
298 ln -sf /srv/www/obs/common/lib $RPM_BUILD_ROOT/srv/www/obs/webui/lib/common
299 ln -sf /srv/www/obs/common/images $RPM_BUILD_ROOT/srv/www/obs/api/public/images/common
300 ln -sf /srv/www/obs/common/images $RPM_BUILD_ROOT/srv/www/obs/webui/public/images/common
301 ln -sf /srv/www/obs/docs/api $RPM_BUILD_ROOT/srv/www/obs/api/public/schema
302 #
303 # change script names to allow to start them with startproc
304 #
305 mv $RPM_BUILD_ROOT/srv/www/obs/api/script/delayed_job{,.api}
306 mv $RPM_BUILD_ROOT/srv/www/obs/webui/script/delayed_job{,.web}
307
308 #
309 # Install all backend parts.
310 #
311 cd backend/
312 # we use external build script code
313 rm -rf build
314 cp BSConfig.pm.template BSConfig.pm
315
316 install -d -m 755 $RPM_BUILD_ROOT/usr/lib/obs/server/
317 install -d -m 755 $RPM_BUILD_ROOT/usr/lib/obs/server/build # dummy, it is a %ghost
318 install -d -m 755 $RPM_BUILD_ROOT/srv/obs/log
319 install -d -m 755 $RPM_BUILD_ROOT/srv/obs/run
320 # install executables and code
321 cp -a * $RPM_BUILD_ROOT/usr/lib/obs/server/
322 rm -r   $RPM_BUILD_ROOT/usr/lib/obs/server/testdata
323 rm      $RPM_BUILD_ROOT/usr/lib/obs/server/Makefile.PL
324 # create symlink to build scritps
325 #rm -rf $RPM_BUILD_ROOT/usr/lib/obs/server/build
326 #ln -sf /usr/lib/build $RPM_BUILD_ROOT/usr/lib/obs/server/build
327
328 #
329 # turn duplicates into hard links
330 #
331 #%fdupes $RPM_BUILD_ROOT/srv/www/obs/api
332 #%fdupes $RPM_BUILD_ROOT/srv/www/obs/webui
333 # There's dupes between webui and api:
334 %if 0%{?suse_version} >= 1030
335 %fdupes $RPM_BUILD_ROOT/srv/www/obs
336 %endif
337
338 %pre
339 /usr/sbin/groupadd -r obsrun 2> /dev/null || :
340 /usr/sbin/useradd -r -o -s /bin/false -c "User for build service backend" -d /usr/lib/obs -g obsrun obsrun 2> /dev/null || :
341
342 %pre -n obs-worker
343 /usr/sbin/groupadd -r obsrun 2> /dev/null || :
344 /usr/sbin/useradd -r -o -s /bin/false -c "User for build service backend" -d /usr/lib/obs -g obsrun obsrun 2> /dev/null || :
345
346 %preun
347 for service in obssrcserver obsrepserver obsdispatcher obsscheduler obspublisher obswarden obssigner obsstoragesetup ; do
348 %stop_on_removal $service
349 done
350
351 %preun -n obs-worker
352 %stop_on_removal obsworker
353
354 %post
355 %run_permissions
356 %{fillup_and_insserv -n obs-server}
357 for service in obssrcserver obsrepserver obsdispatcher obsscheduler obspublisher obswarden obssigner obsstoragesetup ; do
358 %restart_on_update $service
359 done
360
361 %preun -n obs-source_service
362 %stop_on_removal obsservice
363
364 %post -n obs-source_service
365 %restart_on_update obsservice
366
367 %posttrans
368 # this changes from directory to symlink. rpm can not handle this itself.
369 if [ -e /usr/lib/obs/server/build -a ! -L /usr/lib/obs/server/build ]; then
370   rm -rf /usr/lib/obs/server/build
371 fi
372 if [ ! -e /usr/lib/obs/server/build ]; then
373   ln -sf ../../build /usr/lib/obs/server/build
374 fi
375
376 %postun
377 %insserv_cleanup
378 %verifyscript -n obs-server
379 %verify_permissions
380
381 %post -n obs-worker
382 %{fillup_and_insserv -n obs-worker}
383 %restart_on_update obsworker
384
385 %post -n obs-api
386 %{fillup_and_insserv -n obs-server}
387 if [ -e /srv/www/obs/webclient/config/database.yml ] && [ ! -e /srv/www/obs/webui/config/database.yml ]; then
388   cp /srv/www/obs/webclient/config/database.yml /srv/www/obs/webui/config/database.yml
389 fi
390 if [ -e /srv/www/obs/frontend/config/database.yml ] && [ ! -e /srv/www/obs/api/config/database.yml ]; then
391   cp /srv/www/obs/frontend/config/database.yml /srv/www/obs/api/config/database.yml
392 fi
393 # updaters can keep their production_slave config
394 for i in production_slave.rb production.rb development_base.rb; do
395   if [ -e /srv/www/obs/webclient/config/environments/$i ] && [ ! -e /srv/www/obs/webui/config/environments/$i ]; then
396     cp /srv/www/obs/webclient/config/environments/$i /srv/www/obs/webui/config/environments/$i
397   fi
398   if [ -e /srv/www/obs/frontend/config/environments/$i ] && [ ! -e /srv/www/obs/api/config/environments/$i ]; then
399     cp /srv/www/obs/frontend/config/environments/$i /srv/www/obs/api/config/environments/$i
400   fi
401 done
402 if [ -e /etc/lighttpd/vhosts.d/obs.conf ]; then
403   sed -i -e 's,/srv/www/obs/webclient,/srv/www/obs/webui,' \
404          -e 's,/srv/www/obs/frontend,/srv/www/obs/api,' \
405          /etc/lighttpd/vhosts.d/obs.conf
406 fi
407 echo '**** Keep in mind to run rake db:migrate after updating this package (read README.UPDATERS) ****'
408 %restart_on_update lighttpd
409
410 %postun -n obs-api
411 %insserv_cleanup
412
413 %clean
414 rm -rf $RPM_BUILD_ROOT
415
416 %files
417 %defattr(-,root,root)
418 %dir /etc/slp.reg.d
419 %dir /usr/lib/obs
420 %dir /usr/lib/obs/server
421 /etc/logrotate.d/obs-server.logrotate
422 /etc/init.d/obsdispatcher
423 /etc/init.d/obspublisher
424 /etc/init.d/obsrepserver
425 /etc/init.d/obsscheduler
426 /etc/init.d/obssrcserver
427 /etc/init.d/obswarden
428 /etc/init.d/obssigner
429 /etc/init.d/obsstoragesetup
430 /usr/sbin/obs_admin
431 /usr/sbin/obs_serverstatus
432 /usr/sbin/rcobsdispatcher
433 /usr/sbin/rcobspublisher
434 /usr/sbin/rcobsrepserver
435 /usr/sbin/rcobsscheduler
436 /usr/sbin/rcobssrcserver
437 /usr/sbin/rcobswarden
438 /usr/sbin/rcobssigner
439 /usr/sbin/rcobsstoragesetup
440 /usr/lib/obs/server/BSAccess.pm
441 /usr/lib/obs/server/BSBuild.pm
442 /usr/lib/obs/server/BSConfig.pm.template
443 /usr/lib/obs/server/BSEvents.pm
444 /usr/lib/obs/server/BSFileDB.pm
445 /usr/lib/obs/server/BSHTTP.pm
446 /usr/lib/obs/server/BSHandoff.pm
447 /usr/lib/obs/server/BSRPC.pm
448 /usr/lib/obs/server/BSServer.pm
449 /usr/lib/obs/server/BSServerEvents.pm
450 /usr/lib/obs/server/BSSrcdiff.pm
451 /usr/lib/obs/server/BSSSL.pm
452 /usr/lib/obs/server/BSStdServer.pm
453 /usr/lib/obs/server/BSUtil.pm
454 /usr/lib/obs/server/BSVerify.pm
455 /usr/lib/obs/server/BSDB.pm
456 /usr/lib/obs/server/BSDBIndex.pm
457 /usr/lib/obs/server/BSXPathKeys.pm
458 /usr/lib/obs/server/BSWatcher.pm
459 /usr/lib/obs/server/BSXML.pm
460 /usr/lib/obs/server/BSXPath.pm
461 /usr/lib/obs/server/BSProductXML.pm
462 /usr/lib/obs/server/BSKiwiXML.pm
463 %dir /usr/lib/obs/server/Meta
464 /usr/lib/obs/server/Meta.pm
465 /usr/lib/obs/server/Meta/Debmd.pm
466 /usr/lib/obs/server/Meta/Rpmmd.pm
467 /usr/lib/obs/server/Meta/Susetagsmd.pm
468 /usr/lib/obs/server/COPYING
469 /usr/lib/obs/server/DESIGN
470 /usr/lib/obs/server/License
471 /usr/lib/obs/server/README
472 /usr/lib/obs/server/TODO
473 /usr/lib/obs/server/XML
474 /usr/lib/obs/server/bs_admin
475 /usr/lib/obs/server/bs_dispatch
476 /usr/lib/obs/server/bs_publish
477 /usr/lib/obs/server/bs_repserver
478 /usr/lib/obs/server/bs_sched
479 /usr/lib/obs/server/bs_serverstatus
480 /usr/lib/obs/server/bs_srcserver
481 /usr/lib/obs/server/bs_worker
482 /usr/lib/obs/server/bs_signer
483 /usr/lib/obs/server/bs_sshgit
484 /usr/lib/obs/server/bs_warden
485 /usr/lib/obs/server/worker
486 /usr/lib/obs/server/BSHermes.pm
487 /usr/lib/obs/server/BSSolv.pm
488 /usr/lib/obs/server/BSSolv.xs
489 /usr/lib/obs/server/typemap
490 %config(noreplace) /usr/lib/obs/server/BSConfig.pm
491 %config(noreplace) /etc/slp.reg.d/*
492 %attr(-,obsrun,obsrun) /srv/obs
493 /var/adm/fillup-templates/sysconfig.obs-server
494 # created via %post, since rpm fails otherwise while switching from 
495 # directory to symlink
496 %ghost /usr/lib/obs/server/build
497
498 %files -n obs-source_service
499 %defattr(-,root,root)
500 /etc/init.d/obsservice
501 /usr/sbin/rcobsservice
502 /usr/lib/obs/server/bs_service
503 /usr/lib/obs/server/call-service-in-lxc.sh
504
505 %files -n obs-worker
506 %defattr(-,root,root)
507 /var/adm/fillup-templates/sysconfig.obs-worker
508 /etc/init.d/obsworker
509 /etc/init.d/obsstoragesetup
510 /usr/sbin/rcobsworker
511 /usr/sbin/rcobsstoragesetup
512 # intentionally packaged in server and api package
513 /var/adm/fillup-templates/sysconfig.obs-server
514
515 %files -n obs-api
516 %defattr(-,root,root)
517 %doc dist/{TODO,README.UPDATERS,README.SETUP} docs/openSUSE.org.xml ReleaseNotes-* README COPYING
518 %dir /srv/www/obs
519 %dir /srv/www/obs/api
520 %dir /srv/www/obs/api/config
521 %dir /srv/www/obs/api/config/initializers
522 %dir /srv/www/obs/api/config/environments
523 %dir /srv/www/obs/api/files
524 /etc/logrotate.d/obs-build.logrotate
525 /etc/logrotate.d/obs-api.logrotate
526 /etc/init.d/obsapidelayed
527 /etc/init.d/obswebuidelayed
528 /etc/init.d/obsapisetup
529 /usr/sbin/rcobsapisetup
530 /usr/sbin/rcobsapidelayed
531 /usr/sbin/rcobswebuidelayed
532 /srv/www/obs/api/app
533 /srv/www/obs/api/db
534 /srv/www/obs/api/doc
535 /srv/www/obs/api/files/wizardtemplate.spec
536 /srv/www/obs/api/lib
537 /srv/www/obs/api/public
538 /srv/www/obs/api/Rakefile
539 /srv/www/obs/api/README
540 /srv/www/obs/api/script
541 /srv/www/obs/api/test
542 /srv/www/obs/api/vendor
543 /srv/www/obs/docs
544 # intentionally packaged in server and api package
545 /var/adm/fillup-templates/sysconfig.obs-server
546
547 #
548 # some files below config actually are _not_ config files
549 # so here we go, file by file
550 #
551
552 /srv/www/obs/api/config/boot.rb
553 /srv/www/obs/api/config/routes.rb
554 /srv/www/obs/api/config/environments/development.rb
555 /srv/www/obs/api/config/database.yml.example
556 /srv/www/obs/api/config/environments/production_test.rb
557 /srv/www/obs/api/config/initializers/options.rb
558
559 %config /srv/www/obs/api/config/environment.rb
560 %config(noreplace) /srv/www/obs/api/config/lighttpd.conf
561 %config(noreplace) /srv/www/obs/api/config/environments/production.rb
562 %config(noreplace) /srv/www/obs/api/config/environments/test.rb
563 %config(noreplace) /srv/www/obs/api/config/environments/stage.rb
564 %config(noreplace) /srv/www/obs/api/config/environments/development_base.rb
565 %config(noreplace) /srv/www/obs/api/config/active_rbac_config.rb
566 %config(noreplace) /srv/www/obs/api/config/options.yml
567 %config(noreplace) /srv/www/obs/api/files/distributions.xml
568 %config(noreplace) /etc/cron.d/obs-api
569
570 %dir %attr(-,lighttpd,lighttpd) /srv/www/obs/api/log
571 %verify(not size md5) %attr(-,lighttpd,lighttpd) /srv/www/obs/api/log/production.log
572 %attr(-,lighttpd,lighttpd) /srv/www/obs/api/tmp
573
574 # starting the webui part
575 %dir /srv/www/obs/webui
576 # sqlite3 needs write permissions
577 %dir %attr(-,lighttpd,lighttpd) /srv/www/obs/webui/db
578 /srv/www/obs/webui/app
579 /srv/www/obs/webui/db/migrate
580 /srv/www/obs/webui/db/schema.rb
581 /srv/www/obs/webui/doc
582 /srv/www/obs/webui/lib
583 /srv/www/obs/webui/public
584 /srv/www/obs/webui/Rakefile
585 /srv/www/obs/webui/script
586 /srv/www/obs/webui/test
587 /srv/www/obs/webui/vendor
588 /srv/www/obs/webui/nbproject
589
590 %dir /srv/www/obs/webui/config
591 %dir /srv/www/obs/webui/config/environments
592 %dir /srv/www/obs/webui/config/initializers
593 /srv/www/obs/webui/config/routes.rb
594 /srv/www/obs/webui/config/environments/development.rb
595 /srv/www/obs/webui/README.rails
596 /srv/www/obs/webui/README.theme
597 /srv/www/obs/webui/config/initializers/options.rb
598
599 %config /srv/www/obs/webui/config/boot.rb
600 %config /srv/www/obs/webui/config/environment.rb
601 %config(noreplace) /srv/www/obs/webui/config/database.yml
602 %config(noreplace) /srv/www/obs/webui/config/options.yml
603 %config(noreplace) /srv/www/obs/webui/config/environments/production.rb
604 %config(noreplace) /srv/www/obs/webui/config/environments/test.rb
605 %config(noreplace) /srv/www/obs/webui/config/environments/stage.rb
606 %config(noreplace) /srv/www/obs/webui/config/environments/development_base.rb
607 %config(noreplace) /srv/www/obs/webui/config/initializers/theme_support.rb
608 %config(noreplace) /etc/cron.d/obs-webui
609
610 %dir %attr(-,lighttpd,lighttpd) /srv/www/obs/webui/log
611 %config(noreplace) %verify(not size md5) %attr(-,lighttpd,lighttpd) /srv/www/obs/webui/db/database.db
612 %config(noreplace) %verify(not size md5) %attr(-,lighttpd,lighttpd) /srv/www/obs/webui/log/production.log
613 %attr(-,lighttpd,lighttpd) /srv/www/obs/webui/tmp
614
615 # these dirs primarily belong to lighttpd:
616 %config(noreplace) /etc/lighttpd/vhosts.d/obs.conf
617 %dir /etc/lighttpd
618 %dir /etc/lighttpd/vhosts.d
619 %config /etc/lighttpd/cleanurl-v5.lua
620 %config /etc/lighttpd/vhosts.d/rails.inc
621
622 %files -n obs-utils
623 %defattr(-,root,root)
624 /usr/sbin/obs_mirror_project
625 /usr/sbin/obs_project_update
626
627 %files -n obs-productconverter
628 %defattr(-,root,root)
629 /usr/bin/obs_productconvert
630 /usr/lib/obs/server/bs_productconvert
631
632 %changelog -n obs-server