]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/bsys.spec.in
Move bat and mtx to their own spec files
[bacula/bacula] / bacula / platforms / redhat / bsys.spec.in
1 # Bacula RPM spec file
2 #
3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
4
5 # Platform Build Configuration
6
7
8 BuildRequires: libacl-devel
9
10 # probems with mandriva build: 
11
12 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
13
14 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
15 #openSUSE 11.1   %if 0%{?suse_version} == 1110  
16 #openSUSE 11.0  %if 0%{?suse_version} == 1100   
17 #openSUSE 10.3  %if 0%{?suse_version} == 1030   
18 #openSUSE 10.2  %if 0%{?suse_version} == 1020   
19 #SUSE Linux 10.1        %if 0%{?suse_version} == 1010   
20 #SUSE Linux 10.0        %if 0%{?suse_version} == 1000   
21 #SUSE Linux 9.3         %if 0%{?suse_version} == 930    
22 #SLES 9         %if 0%{?sles_version} == 9      also set: %if 0%{?suse_version} == 910
23 #SLE 10         %if 0%{?sles_version} == 10     also set: %if 0%{?suse_version} == 1010
24 #SLE 11         %if 0%{?sles_version} == 11     also set: %if 0%{?suse_version} == 1110
25 #CentOS 5       %if 0%{?centos_version} == 501  
26 #RHEL 4         %if 0%{?rhel_version} == 406    
27 #RHEL 5         %if 0%{?rhel_version} == 501    
28 #Fedora 6 with Extras   %if 0%{?fedora_version} == 6    
29 #Fedora 7 with Extras   %if 0%{?fedora_version} == 7    
30 #Fedora 8 with Extras   %if 0%{?fedora_version} == 8    
31 #Fedora 9 with Extras   %if 0%{?fedora_version} == 9    
32 #Fedora 10 with Extras  %if 0%{?fedora_version} == 10   
33 #Mandriva 2006  %if 0%{?mandriva_version} == 2006       
34 #Mandriva 2007  %if 0%{?mandriva_version} == 2007       
35 #Mandriva 2008  %if 0%{?mandriva_version} == 2008       
36
37
38 %if 0%{?opensuse_bs}
39 # am I running in opensuse build service?
40 # TODO: seems to make problems
41
42 # choose database backend here
43 # postgres, mysql, sqlite
44 %define build_postgresql 1
45
46 # Build Service: Determine Distribution
47
48 %ifarch x86_64
49  %define build_x86_64 1
50 %endif
51
52
53 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
54 BuildRequires: GConf2-devel
55 BuildRequires: freetype-devel
56 BuildRequires: libtermcap-devel
57 BuildRequires: shadow-utils
58 %endif
59
60
61
62
63 %if 0%{?mandriva_version} == 2007
64 %define build_mdv 1
65 %define _dist "Mandriva 2007"
66 # %define gconsole 0 
67 %endif
68
69 %if 0%{?fedora_version} == 8
70 %define build_fc8 1
71 %define _dist "Fedora Core 8"
72 BuildRequires: redhat-release
73 %endif
74
75 %if 0%{?fedora_version} == 9
76 %define build_fc9 1
77 %define _dist "Fedora Core 9"
78 BuildRequires: redhat-release
79 %endif
80
81
82 %if 0%{?fedora_version} == 10
83 %define build_fc9 1
84 %define _dist "Fedora Core 10"
85 BuildRequires: PolicyKit-gnome
86 BuildRequires: fedora-release
87 %endif
88
89 %if 0%{?fedora_version} == 11
90 %define build_fc9 1
91 %define _dist "Fedora Core 11"
92 BuildRequires: PolicyKit-gnome
93 BuildRequires: fedora-release
94 %endif
95
96
97
98
99 %if 0%{?rhel_version} == 501
100 %define build_rhel5 1
101 %define _dist "Red Hat Enterprise Linux Server release 5"
102 BuildRequires: redhat-release
103 %endif
104
105 %if 0%{?rhel_version} == 406
106 %define build_rhel4 1
107 %define _dist "Red Hat Enterprise Linux Server release 4"
108 BuildRequires: redhat-release
109 %endif
110
111
112 %if 0%{?centos_version} == 501
113 %define build_centos5 1
114 %define _dist "CentOS 5"
115 BuildRequires: redhat-release
116 %endif
117
118
119 %if 0%{?suse_version} == 1020
120 %define build_su102 1
121 %define _dist "OpenSUSE 10.2"
122 BuildRequires: suse-release
123 %endif
124
125
126 %if 0%{?suse_version} == 1030
127 %define build_su103 1
128 %define _dist "OpenSUSE 10.3"
129 BuildRequires: suse-release
130 %endif
131
132 %if 0%{?suse_version} == 1100
133 %define build_su110 1
134 %define _dist "SUSE 11"
135 BuildRequires: suse-release
136 %endif
137
138
139 %if 0%{?suse_version} == 1110
140 %define build_su111 1
141 %define _dist "SUSE 11"
142 %endif
143
144
145 %if 0%{?sles_version} == 9
146 %define build_su9 1
147 %define _dist "SLES 9"
148 %endif
149
150
151 %if 0%{?sles_version} == 10
152 %define build_su10 1
153 %define _dist "SLE 10"
154 %endif
155
156
157 %if 0%{?sles_version} == 11
158 %define build_su111 1
159 %define _dist "SLES 11"
160 %endif
161
162
163
164 %endif 
165 # opensuse-bs?
166
167 # basic defines for every build
168 %define _version @VERSION@
169 %define _release 1
170 %define depkgs_version 18Feb09
171 %define _rescuever @VERSION@
172 %define docs_version @VERSION@
173 %define binname baculasystems
174 %define _prefix @prefix@
175 # third party packagers
176 %define _packager Bacula Systems SA
177 %{?contrib_packager:%define _packager %{contrib_packager}}
178 %define downloads http://www.prdownloads.sourceforge.net
179 %define url http://www.baculasystems.com
180 %define vendor The @BACULA@ Team
181
182 # any patches for this release
183 # be sure to check the setup section for patch macros
184
185 #--------------------------------------------------------------------------
186 # it should not be necessary to change anything below here for a release
187 # except for patch macros in the setup section
188 #--------------------------------------------------------------------------
189
190 Summary: Bacula - The Network Backup Solution
191 Name: %{binname}
192 Version: %{_version}
193 Release: %{_release}
194 Group: System Environment/Daemons
195 License: GPL v2
196 Source0: %{downloads}/%{binname}/%{name}-%{version}.tar.gz
197 Source1: %{downloads}/%{binname}/depkgs-%{depkgs_version}.tar.gz
198 Source2: Release_Notes-%{version}-%{release}.tar.gz
199 Source3: %{downloads}/%{binname}/%{name}-docs-%{docs_version}.tar.gz
200 Source4: %{downloads}/%{binname}/%{name}-rescue-%{_rescuever}.tar.gz
201 Source5: bacula-2.2.7-postgresql.patch
202 BuildRoot: %{_tmppath}/%{name}-root
203 URL: %{url}
204 Vendor: %{vendor}
205 Packager: %{_packager}
206 Prefix: %{_prefix}
207
208 # define the basic package description
209 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
210 %define blurb2 Bacula is a set of computer programs that permit you (or the system
211 %define blurb3 administrator) to manage backup, recovery, and verification of computer
212 %define blurb4 data across a network of computers of different kinds. In technical terms,
213 %define blurb5 it is a network client/server based backup program. Bacula is relatively
214 %define blurb6 easy to use and efficient, while offering many advanced storage management
215 %define blurb7 features that make it easy to find and recover lost or damaged files.
216 %define blurb8 Bacula source code has been released under the GPL version 2 license.
217
218 # source directory locations
219 %define _docsrc ../%{name}-docs-%{docs_version}
220 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
221 %define depkgs ../depkgs
222
223 # directory locations
224 %define _sbindir @sbindir@
225 %define _subsysdir @subsysdir@
226 %define sqlite_bindir %_libdir/bacula/sqlite
227 %define _mandir @mandir@
228 %define sysconf_dir @sysconfdir@
229 %define script_dir @scriptdir@
230 %define working_dir @working_dir@
231 %define pid_dir @piddir@
232
233 # NOTE these defines are used in some rather complex useradd and groupadd
234 # commands. If you change them examine the post scripts for consequences.
235 %define director_daemon_user bacula
236 %define storage_daemon_user bacula
237 %define file_daemon_user root
238 %define daemon_group bacula
239 # group that has write access to tape devices, usually disk on Linux
240 %define storage_daemon_group disk
241 %define user_file /etc/passwd
242 %define group_file /etc/group
243
244 # program locations
245 %define useradd /usr/sbin/useradd
246 %define groupadd /usr/sbin/groupadd
247 %define usermod /usr/sbin/usermod
248
249 # platform defines - set one below or define the build_xxx on the command line
250 # RedHat builds
251 %define rh7 0
252 %{?build_rh7:%define rh7 1}
253 %define rh8 0
254 %{?build_rh8:%define rh8 1}
255 %define rh9 0
256 %{?build_rh9:%define rh9 1}
257 # Fedora Core build
258 %define fc1 0
259 %{?build_fc1:%define fc1 1}
260 %define fc3 0
261 %{?build_fc3:%define fc3 1}
262 %define fc4 0
263 %{?build_fc4:%define fc4 1}
264 %define fc5 0
265 %{?build_fc5:%define fc5 1}
266 %define fc6 0
267 %{?build_fc6:%define fc6 1}
268 %define fc7 0
269 %{?build_fc7:%define fc7 1}
270 %define fc8 0
271 %{?build_fc8:%define fc8 1}
272 %define fc9 0
273 %{?build_fc9:%define fc9 1}
274 # Whitebox Enterprise build
275 %define wb3 0
276 %{?build_wb3:%define wb3 1}
277 # RedHat Enterprise builds
278 %define rhel3 0
279 %{?build_rhel3:%define rhel3 1}
280 %{?build_rhel3:%define wb3 1}
281 %define rhel4 0
282 %{?build_rhel4:%define rhel4 1}
283 %{?build_rhel4:%define fc3 1}
284 %define rhel5 0
285 %{?build_rhel5:%define rhel5 1}
286 %{?build_rhel5:%define fc6 1}
287 # CentOS build
288 %define centos3 0
289 %{?build_centos3:%define centos3 1}
290 %{?build_centos3:%define wb3 1}
291 %define centos4 0
292 %{?build_centos4:%define centos4 1}
293 %{?build_centos4:%define fc3 1}
294 %define centos5 0
295 %{?build_centos5:%define centos5 1}
296 %{?build_centos5:%define fc6 1}
297 # SL build
298 %define sl3 0
299 %{?build_sl3:%define sl3 1}
300 %{?build_sl3:%define wb3 1}
301 %define sl4 0
302 %{?build_sl4:%define sl4 1}
303 %{?build_sl4:%define fc3 1}
304 %define sl5 0
305 %{?build_sl5:%define sl5 1}
306 %{?build_sl5:%define fc6 1}
307 # SuSE build
308 %define su9 0
309 %{?build_su9:%define su9 1}
310 %define su10 0
311 %{?build_su10:%define su10 1}
312 %define su102 0
313 %{?build_su102:%define su102 1}
314 %define su103 0
315 %{?build_su103:%define su103 1}
316 %define su110 0
317 %{?build_su110:%define su110 1}
318 %define su111 0
319 %{?build_su111:%define su111 1}
320 # Mandrake builds
321 %define mdk 0
322 %{?build_mdk:%define mdk 1}
323 %define mdv 0
324 %{?build_mdv:%define mdv 1}
325 %{?build_mdv:%define mdk 1}
326
327 # client only build
328 %define client_only 0
329 %{?build_client_only:%define client_only 1}
330
331 # test for a platform definition
332 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
333 %{error: You must specify a platform. Please examine the spec file.}
334 exit 1
335 %endif
336
337 # database defines
338 # set for database support desired or define the build_xxx on the command line
339 %define mysql 0
340 %{?build_mysql:%define mysql 1}
341 # if using mysql 4.x define this and mysql above
342 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
343 %define mysql4 0
344 %{?build_mysql4:%define mysql4 1}
345 %{?build_mysql4:%define mysql 1}
346 # if using mysql 5.x define this and mysql above
347 # currently: SuSE 10.1 and Fedora Core 5
348 %define mysql5 0
349 %{?build_mysql5:%define mysql5 1}
350 %{?build_mysql5:%define mysql 1}
351 %define sqlite 0
352 %{?build_sqlite:%define sqlite 1}
353 %define postgresql 0
354 %{?build_postgresql:%define postgresql 1}
355
356 # test for a database definition
357 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
358 %{error: You must specify database support. Please examine the spec file.}
359 exit 1
360 %endif
361
362 %if %{mysql}
363 %define db_backend mysql
364 %endif
365 %if %{sqlite}
366 %define db_backend sqlite3
367 %endif
368 %if %{postgresql}
369 %define db_backend postgresql
370 %endif
371
372 # 64 bit support
373 %define x86_64 0
374 %{?build_x86_64:%define x86_64 1}
375
376 # check what distribution we are
377 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
378 %define _dist %(grep Red /etc/redhat-release)
379 %endif
380 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
381 %define _dist %(grep Fedora /etc/redhat-release)
382 %endif
383 %if %{centos5} || %{centos4} || %{centos3}
384 %define _dist %(grep CentOS /etc/redhat-release)
385 %endif
386 %if %{sl5} ||%{sl4} || %{sl3}
387 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
388 %endif
389 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
390 %define _dist %(grep Fedora /etc/redhat-release)
391 %endif
392 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
393 %define _dist %(grep Fedora /etc/redhat-release)
394 %endif
395 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
396 %define _dist %(grep White /etc/whitebox-release)
397 %endif
398 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
399 %define _dist %(grep -i SuSE /etc/SuSE-release)
400 %endif
401 %if %{mdk}
402 %define _dist %(grep Mand /etc/mandrake-release)
403 %endif
404
405 # opensuse build service start
406 %if 0%{?sles_version} == 9
407 %define _dist "SLES 9"
408 %endif
409
410 %if 0%{?sles_version} == 10
411 %define _dist "SLE 10"
412 %endif
413
414
415 %if 0%{?sles_version} == 11
416 %define _dist "SLE 11"
417 %endif
418
419 # opensuse build service end
420
421 %{?DISTNAME:%define _dist %{DISTNAME}}
422 Distribution: %{_dist}
423
424 # Should we build gconsole, possible only if gtk= >= 2.4 available.
425 # leaving all the BuildRequires and Requires in place below for now.
426 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1 
427 # release as it needs 2.10
428
429 %define gconsole 1
430 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
431 %define gconsole 0
432 %endif
433 %if %{mdk} && ! %{mdv}
434 %define gconsole 0
435 %endif
436
437 # specifically disallow gconsole if desired
438 %{?nobuild_gconsole:%define gconsole 0}
439
440 # specifically disallow rescue files if desired
441 %define rescue 1
442 %{?nobuild_rescue:%define rescue 0}
443
444 # Should we build wxconsole, only wxWidgets >=2.6 is supported
445 # SuSE 10 and FC4 and newer
446 %define wxconsole 0
447 %{?build_wxconsole:%define wxconsole 1}
448
449 # Should we build bat
450 # requires >= Qt-4.2
451 %define bat 0
452 %{?build_bat:%define bat 1}
453
454 # should we turn on python support
455 %define python 0
456 %{?build_python:%define python 1}
457
458 # specifically disallow build of mtx package if desired
459 %define mtx 1
460 %{?nobuild_mtx:%define mtx 0}
461
462 # do we need to patch for old postgresql version?
463 %define old_pgsql 0
464 %{?build_old_pgsql:%define old_pgsql 1}
465
466 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
467 %if %{mdk}
468 %define manpage_ext bz2
469 %else
470 %define manpage_ext gz
471 %endif
472
473 # for client only build
474 %if %{client_only}
475 %define mysql 0
476 %define mysql4 0
477 %define mysql5 0
478 %define postgresql 0
479 %define sqlite 0
480 %define gconsole 0
481 %define wxconsole 0
482 %endif
483
484 BuildRequires: libattr-devel
485 BuildRequires: libacl-devel
486 BuildRequires: gcc, gcc-c++, make, autoconf
487 BuildRequires: ncurses-devel, perl
488 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
489 BuildRequires: openssl-devel
490 %if %{python}
491 BuildRequires: python, python-devel
492 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
493 %endif
494 %if %{gconsole}
495 BuildRequires: pkgconfig, pango-devel, atk-devel
496 %endif
497 %if %{bat}
498 BuildRequires: pkgconfig
499 %endif
500
501 # Rh qt4 packages don't have a provide for, guess what, qt!
502 # still broken in fc8, ok in fc9
503 # so fix for broken rh
504 %define broken_rh 0
505 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
506 %define broken_rh 1
507 %endif
508 %if %{bat} && ! %{broken_rh}
509 BuildRequires: qt-devel >= 4.2
510 %endif
511 %if %{bat} && %{broken_rh}
512 BuildRequires: qt4-devel >= 4.2
513 %endif
514
515 %if %{rh7}
516 BuildRequires: libtermcap-devel
517 BuildRequires: glibc-devel >= 2.2
518 %endif
519 %if %{su9}
520 BuildRequires: termcap
521 BuildRequires: glibc-devel >= 2.3
522 %endif
523 %if %{su9} && %{gconsole}
524 BuildRequires: libgnome >= 2.0
525 BuildRequires: gtk2-devel >= 2.0
526 BuildRequires: libgnomeui-devel >= 2.0
527 BuildRequires: ORBit2-devel
528 BuildRequires: libart_lgpl-devel >= 2.0
529 BuildRequires: libbonobo-devel >= 2.0
530 BuildRequires: libbonoboui-devel >= 2.0
531 BuildRequires: bonobo-activation-devel
532 BuildRequires: gconf2-devel
533 BuildRequires: linc-devel
534 BuildRequires: freetype2-devel
535 %endif
536 %if %{su10}
537 BuildRequires: termcap
538 BuildRequires: glibc-devel >= 2.3
539 %endif
540 %if %{su10} && %{gconsole}
541 BuildRequires: libgnome >= 2.12
542 BuildRequires: gtk2-devel >= 2.8
543 BuildRequires: libgnomeui-devel >= 2.12
544 BuildRequires: ORBit2-devel
545 BuildRequires: libart_lgpl-devel >= 2.3
546 BuildRequires: libbonobo-devel >= 2.10
547 BuildRequires: libbonoboui-devel >= 2.10
548 BuildRequires: bonobo-activation-devel
549 BuildRequires: gconf2-devel
550 BuildRequires: freetype2-devel
551 BuildRequires: cairo-devel
552 BuildRequires: fontconfig-devel >= 2.3
553 BuildRequires: gnome-vfs2-devel >= 2.12
554 BuildRequires: libpng-devel
555 %endif
556 %if %{su102}
557 BuildRequires: termcap
558 BuildRequires: glibc-devel >= 2.5
559 %endif
560 %if %{su102} && %{gconsole}
561 BuildRequires: libgnome >= 2.16
562 BuildRequires: gtk2-devel >= 2.10
563 BuildRequires: libgnomeui-devel >= 2.16
564 BuildRequires: ORBit2-devel
565 BuildRequires: libart_lgpl-devel >= 2.3
566 BuildRequires: libbonobo-devel >= 2.16
567 BuildRequires: libbonoboui-devel >= 2.16
568 BuildRequires: bonobo-activation-devel
569 BuildRequires: gconf2-devel
570 BuildRequires: freetype2-devel
571 BuildRequires: cairo-devel
572 BuildRequires: fontconfig-devel >= 2.4
573 BuildRequires: gnome-vfs2-devel >= 2.16
574 BuildRequires: libpng-devel
575 %endif
576 %if %{su103}
577 BuildRequires: termcap
578 BuildRequires: glibc-devel >= 2.6
579 %endif
580 %if %{su103} && %{gconsole}
581 BuildRequires: libgnome >= 2.20
582 BuildRequires: gtk2-devel >= 2.12
583 BuildRequires: libgnomeui-devel >= 2.20
584 BuildRequires: ORBit2-devel
585 BuildRequires: libart_lgpl-devel >= 2.3
586 BuildRequires: libbonobo-devel >= 2.20
587 BuildRequires: libbonoboui-devel >= 2.20
588 BuildRequires: bonobo-activation-devel
589 BuildRequires: gconf2-devel
590 BuildRequires: freetype2-devel
591 BuildRequires: cairo-devel
592 BuildRequires: fontconfig-devel >= 2.4
593 BuildRequires: gnome-vfs2-devel >= 2.20
594 BuildRequires: libpng-devel
595 %endif
596 %if %{su110}
597 BuildRequires: termcap
598 BuildRequires: glibc-devel >= 2.8
599 %endif
600 %if %{su110} && %{gconsole}
601 BuildRequires: libgnome >= 2.22
602 BuildRequires: gtk2-devel >= 2.12
603 BuildRequires: libgnomeui-devel >= 2.22
604 BuildRequires: ORBit2-devel
605 BuildRequires: libart_lgpl-devel >= 2.3
606 BuildRequires: libbonobo-devel >= 2.22
607 BuildRequires: libbonoboui-devel >= 2.22
608 BuildRequires: bonobo-activation-devel
609 BuildRequires: gconf2-devel
610 BuildRequires: freetype2-devel
611 BuildRequires: cairo-devel
612 BuildRequires: fontconfig-devel >= 2.4
613 BuildRequires: gnome-vfs2-devel >= 2.22
614 BuildRequires: libpng-devel
615 %endif
616 %if %{su111}
617 BuildRequires: termcap
618 BuildRequires: glibc-devel >= 2.9
619 %endif
620 %if %{su111} && %{gconsole}
621 BuildRequires: libgnome >= 2.24
622 BuildRequires: gtk2-devel >= 2.14
623 BuildRequires: libgnomeui-devel >= 2.24
624 BuildRequires: ORBit2-devel
625 BuildRequires: libart_lgpl-devel >= 2.3
626 BuildRequires: libbonobo-devel >= 2.24
627 BuildRequires: libbonoboui-devel >= 2.24
628 BuildRequires: bonobo-activation-devel
629 BuildRequires: gconf2-devel
630 BuildRequires: freetype2-devel
631 BuildRequires: cairo-devel
632 BuildRequires: fontconfig-devel >= 2.6
633 BuildRequires: gnome-vfs2-devel >= 2.24
634 BuildRequires: libpng-devel
635 %endif
636 %if %{mdk}
637 BuildRequires: libtermcap-devel
638 BuildRequires: libstdc++-static-devel
639 BuildRequires: glibc-static-devel
640 BuildRequires: glibc-devel >= 2.3
641 %endif
642 %if %{mdk} && !%{mdv} && %{gconsole}
643 BuildRequires: gtk2-devel >= 2.0
644 BuildRequires: libgnomeui2-devel >= 2.0
645 BuildRequires: libORBit2-devel
646 BuildRequires: libart_lgpl-devel >= 2.0
647 BuildRequires: libbonobo2_0-devel
648 BuildRequires: libbonoboui2_0-devel
649 BuildRequires: libbonobo-activation-devel
650 BuildRequires: libGConf2-devel
651 BuildRequires: freetype2-devel
652 %endif
653 %if %{mdv} && %{gconsole}
654 BuildRequires: gtk2-devel >= 2.8
655 BuildRequires: libgnomeui2-devel >= 2.10
656 BuildRequires: libORBit2-devel
657 BuildRequires: libart_lgpl-devel >= 2.3
658 BuildRequires: libbonobo2_0-devel
659 BuildRequires: libbonoboui2_0-devel
660 BuildRequires: libbonobo-activation-devel
661 BuildRequires: libGConf2-devel
662 BuildRequires: freetype2-devel
663 %endif
664 %if %{fc3}
665 BuildRequires: libtermcap-devel
666 BuildRequires: glibc-devel >= 2.3
667 %endif
668 %if %{fc3} && %{gconsole}
669 BuildRequires: gtk2-devel >= 2.4
670 BuildRequires: libgnomeui-devel >= 2.8
671 BuildRequires: ORBit2-devel
672 BuildRequires: libart_lgpl-devel >= 2.3
673 BuildRequires: libbonobo-devel >= 2.8
674 BuildRequires: libbonoboui-devel >= 2.8
675 BuildRequires: bonobo-activation-devel
676 BuildRequires: GConf2-devel
677 BuildRequires: freetype-devel
678 %endif
679 %if %{fc4}
680 BuildRequires: libtermcap-devel
681 BuildRequires: glibc-devel >= 2.3
682 %endif
683 %if %{fc4} && %{gconsole}
684 BuildRequires: gtk2-devel >= 2.6
685 BuildRequires: libgnomeui-devel >= 2.10
686 BuildRequires: ORBit2-devel
687 BuildRequires: libart_lgpl-devel >= 2.3
688 BuildRequires: libbonobo-devel >= 2.8
689 BuildRequires: libbonoboui-devel >= 2.8
690 BuildRequires: bonobo-activation-devel
691 BuildRequires: GConf2-devel
692 BuildRequires: freetype-devel
693 %endif
694 %if %{fc5}
695 BuildRequires: libtermcap-devel
696 BuildRequires: glibc-devel >= 2.4
697 %endif
698 %if %{fc5} && %{gconsole}
699 BuildRequires: gtk2-devel >= 2.8
700 BuildRequires: libgnomeui-devel >= 2.14
701 BuildRequires: ORBit2-devel
702 BuildRequires: libart_lgpl-devel >= 2.3
703 BuildRequires: libbonobo-devel >= 2.14
704 BuildRequires: libbonoboui-devel >= 2.14
705 BuildRequires: GConf2-devel
706 BuildRequires: freetype-devel
707 %endif
708 %if %{fc6}
709 BuildRequires: libtermcap-devel
710 BuildRequires: glibc-devel >= 2.5
711 %endif
712 %if %{fc6} && %{gconsole}
713 BuildRequires: gtk2-devel >= 2.10
714 BuildRequires: libgnomeui-devel >= 2.16
715 BuildRequires: ORBit2-devel
716 BuildRequires: libart_lgpl-devel >= 2.3
717 BuildRequires: libbonobo-devel >= 2.16
718 BuildRequires: libbonoboui-devel >= 2.16
719 BuildRequires: GConf2-devel
720 BuildRequires: freetype-devel
721 %endif
722 %if %{fc7}
723 BuildRequires: libtermcap-devel
724 BuildRequires: glibc-devel >= 2.5
725 %endif
726 %if %{fc7} && %{gconsole}
727 BuildRequires: gtk2-devel >= 2.10
728 BuildRequires: libgnomeui-devel >= 2.18
729 BuildRequires: ORBit2-devel
730 BuildRequires: libart_lgpl-devel >= 2.3
731 BuildRequires: libbonobo-devel >= 2.18
732 BuildRequires: libbonoboui-devel >= 2.18
733 BuildRequires: GConf2-devel
734 BuildRequires: freetype-devel
735 %endif
736 %if %{fc8}
737 BuildRequires: libtermcap-devel
738 BuildRequires: glibc-devel >= 2.7
739 %endif
740 %if %{fc8} && %{gconsole}
741 BuildRequires: gtk2-devel >= 2.12
742 BuildRequires: libgnomeui-devel >= 2.20
743 BuildRequires: ORBit2-devel
744 BuildRequires: libart_lgpl-devel >= 2.3
745 BuildRequires: libbonobo-devel >= 2.20
746 BuildRequires: libbonoboui-devel >= 2.20
747 BuildRequires: GConf2-devel
748 BuildRequires: freetype-devel
749 %endif
750 %if %{fc9}
751 BuildRequires: glibc-devel >= 2.8
752 BuildRequires: zlib-static
753 %endif
754 %if %{fc9} && %{gconsole}
755 BuildRequires: gtk2-devel >= 2.12
756 BuildRequires: libgnomeui-devel >= 2.22
757 BuildRequires: ORBit2-devel
758 BuildRequires: libart_lgpl-devel >= 2.3
759 BuildRequires: libbonobo-devel >= 2.22
760 BuildRequires: libbonoboui-devel >= 2.22
761 BuildRequires: GConf2-devel
762 BuildRequires: freetype-devel
763 %endif
764 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
765 BuildRequires: libtermcap-devel
766 BuildRequires: glibc-devel >= 2.3
767 %endif
768 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
769 BuildRequires: gtk2-devel >= 2.0
770 BuildRequires: libgnomeui-devel >= 2.0
771 BuildRequires: ORBit2-devel
772 BuildRequires: libart_lgpl-devel >= 2.0
773 BuildRequires: libbonobo-devel >= 2.0
774 BuildRequires: libbonoboui-devel >= 2.0
775 BuildRequires: bonobo-activation-devel
776 BuildRequires: GConf2-devel
777 BuildRequires: linc-devel
778 BuildRequires: freetype-devel
779 %endif
780
781 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
782 BuildRequires: mysql-devel >= 3.23
783 %endif
784
785 %if %{mysql} && %{mysql4}
786 BuildRequires: mysql-devel >= 4.0
787 %endif
788
789 %if %{mysql} && %{mysql5}
790 BuildRequires: mysql-devel >= 5.0
791 %endif
792
793 %if %{postgresql} && %{wb3}
794 BuildRequires: rh-postgresql-devel >= 7
795 %endif
796
797 %if %{postgresql} && ! %{wb3}
798 BuildRequires: postgresql-devel >= 7
799 %endif
800
801 %if %{wxconsole}
802 BuildRequires: wxGTK-devel >= 2.6
803 %endif
804
805 %description
806 %{blurb}
807
808 %{blurb2}
809 %{blurb3}
810 %{blurb4}
811 %{blurb5}
812 %{blurb6}
813 %{blurb7}
814 %{blurb8}
815
816 %if %{mysql}
817 %package mysql
818 %endif
819 %if %{sqlite}
820 %package sqlite
821 %endif
822 %if %{postgresql}
823 %package postgresql
824 %endif
825
826 Summary: Bacula - The Network Backup Solution
827 Group: System Environment/Daemons
828 Provides: %{binname}-dir, %{binname}-sd, %{binname}-fd, %{binname}-server
829 Conflicts: bacula-client
830
831 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
832 Conflicts: bacula
833 %endif
834
835 Requires: ncurses, libstdc++, zlib, openssl, mtx
836
837 %if %{rh7}
838 Requires: glibc >= 2.2
839 Requires: libtermcap
840 %endif
841 %if %{su9} || %{su10}
842 Requires: glibc >= 2.3
843 Requires: termcap
844 %endif
845 %if %{su102}
846 Requires: glibc >= 2.5
847 Requires: termcap
848 %endif
849 %if %{su103}
850 Requires: glibc >= 2.6
851 Requires: termcap
852 %endif
853 %if %{su110}
854 Requires: glibc >= 2.8
855 Requires: termcap
856 %endif
857 %if %{su111}
858 Requires: glibc >= 2.9
859 Requires: termcap
860 %endif
861 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
862 Requires: glibc >= 2.3
863 Requires: libtermcap
864 %endif
865 %if %{fc5}
866 Requires: glibc >= 2.4
867 Requires: libtermcap
868 %endif
869 %if %{fc6} || %{fc7}
870 Requires: glibc >= 2.5
871 Requires: libtermcap
872 %endif
873 %if %{fc8}
874 Requires: glibc >= 2.7
875 Requires: libtermcap
876 %endif
877 %if %{fc9}
878 Requires: glibc >= 2.8
879 %endif
880
881 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
882 Requires: mysql >= 3.23
883 Requires: mysql-server >= 3.23
884 %endif
885 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
886 Requires: mysql >= 4.0
887 Requires: mysql-server >= 4.0
888 %endif
889 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
890 Requires: mysql >= 5.0
891 Requires: mysql-server >= 5.0
892 %endif
893
894 %if %{mysql} && %{su9} && ! %{mysql4}
895 Requires: mysql >= 3.23
896 Requires: mysql-client >= 3.23
897 %endif
898 %if %{mysql} && %{su9} && %{mysql4}
899 Requires: mysql >= 4.0
900 Requires: mysql-client >= 4.0
901 %endif
902 %if %{mysql} && %{su10} && %{mysql4}
903 Requires: mysql >= 4.0
904 Requires: mysql-client >= 4.0
905 %endif
906 %if %{mysql} && %{su10} && %{mysql5}
907 Requires: mysql >= 5.0
908 Requires: mysql-client >= 5.0
909 %endif
910 %if %{mysql} && %{su102} && %{mysql5}
911 Requires: mysql >= 5.0
912 Requires: mysql-client >= 5.0
913 %endif
914 %if %{mysql} && %{su103} && %{mysql5}
915 Requires: mysql >= 5.0
916 Requires: mysql-client >= 5.0
917 %endif
918 %if %{mysql} && %{su110} && %{mysql5}
919 Requires: mysql >= 5.0
920 Requires: mysql-client >= 5.0
921 %endif
922 %if %{mysql} && %{su111} && %{mysql5}
923 Requires: mysql >= 5.0
924 Requires: mysql-client >= 5.0
925 %endif
926
927 %if %{mysql} && %{mdk} && ! %{mysql4}
928 Requires: mysql >= 3.23
929 Requires: mysql-client >= 3.23
930 %endif
931 %if %{mysql} && %{mdk} && %{mysql4}
932 Requires: mysql >= 4.0
933 Requires: mysql-client >= 4.0
934 %endif
935
936 %if %{postgresql} && %{wb3}
937 Requires: rh-postgresql >= 7
938 Requires: rh-postgresql-server >= 7
939 %endif
940 %if %{postgresql} && ! %{wb3}
941 Requires: postgresql >= 7
942 Requires: postgresql-server >= 7
943 %endif
944
945 %if %{mysql}
946 %description mysql
947 %endif
948 %if %{sqlite}
949 %description sqlite
950 %endif
951 %if %{postgresql}
952 %description postgresql
953 %endif
954
955 %if %{python}
956 Requires: python >= %{pyver}
957 %endif
958
959 %{blurb}
960
961 %{blurb2}
962 %{blurb3}
963 %{blurb4}
964 %{blurb5}
965 %{blurb6}
966 %{blurb7}
967 %{blurb8}
968
969 %if %{mysql}
970 This build requires MySQL to be installed separately as the catalog database.
971 %endif
972 %if %{postgresql}
973 This build requires PostgreSQL to be installed separately as the catalog database.
974 %endif
975 %if %{sqlite}
976 This build incorporates sqlite3 as the catalog database, statically compiled.
977 %endif
978 %if %{python}
979 This build includes python scripting support.
980 %endif
981
982 %if ! %{client_only} && %{mtx}
983 %package mtx
984 Summary: Bacula - The Network Backup Solution
985 Group: System Environment/Daemons
986 Provides: mtx
987
988 %description mtx
989 This is Bacula's version of mtx tape utilities for Linux distributions that
990 do not provide their own mtx package
991 %endif
992
993 %package client
994 Summary: Bacula - The Network Backup Solution
995 Group: System Environment/Daemons
996 Provides: %{binname}-fd
997 Conflicts: bacula-mysql
998 Conflicts: bacula-sqlite
999 Conflicts: bacula-postgresql
1000
1001 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1002 Provides: bacula
1003 %endif
1004
1005 Requires: libstdc++, zlib, openssl
1006
1007 %if %{rh7}
1008 Requires: glibc >= 2.2
1009 Requires: libtermcap
1010 %endif
1011 %if %{su9} || %{su10}
1012 Requires: glibc >= 2.3
1013 Requires: termcap
1014 %endif
1015 %if %{su102}
1016 Requires: glibc >= 2.5
1017 Requires: termcap
1018 %endif
1019 %if %{su103}
1020 Requires: glibc >= 2.6
1021 Requires: termcap
1022 %endif
1023 %if %{su110}
1024 Requires: glibc >= 2.8
1025 Requires: termcap
1026 %endif
1027 %if %{su111}
1028 Requires: glibc >= 2.9
1029 Requires: termcap
1030 %endif
1031 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1032 Requires: glibc >= 2.3
1033 Requires: libtermcap
1034 %endif
1035 %if %{fc5}
1036 Requires: glibc >= 2.4
1037 Requires: libtermcap
1038 %endif
1039 %if %{fc6} || %{fc7}
1040 Requires: glibc >= 2.5
1041 Requires: libtermcap
1042 %endif
1043 %if %{fc8}
1044 Requires: glibc >= 2.7
1045 Requires: libtermcap
1046 %endif
1047 %if %{fc9}
1048 Requires: glibc >= 2.8
1049 %endif
1050
1051 %if %{python}
1052 Requires: python >= %{pyver}
1053 %endif
1054
1055 %description client
1056 %{blurb}
1057
1058 %{blurb2}
1059 %{blurb3}
1060 %{blurb4}
1061 %{blurb5}
1062 %{blurb6}
1063 %{blurb7}
1064 %{blurb8}
1065
1066 This is the File daemon (Client) only package. It includes the command line 
1067 console program.
1068 %if %{python}
1069 This build includes python scripting support.
1070 %endif
1071
1072 %if ! %{client_only}
1073 %package updatedb
1074
1075 Summary: Bacula - The Network Backup Solution
1076 Group: System Environment/Daemons
1077
1078 %description updatedb
1079 %{blurb}
1080
1081 %{blurb2}
1082 %{blurb3}
1083 %{blurb4}
1084 %{blurb5}
1085 %{blurb6}
1086 %{blurb7}
1087 %{blurb8}
1088
1089 This package installs scripts for updating older versions of the bacula
1090 database.
1091 %endif
1092
1093 %if %{rescue}
1094 %package rescue
1095
1096 Summary: Bacula - The Network Backup Solution
1097 Group: System Environment/Daemons
1098
1099 %description rescue
1100 %{blurb}
1101
1102 %{blurb2}
1103 %{blurb3}
1104 %{blurb4}
1105 %{blurb5}
1106 %{blurb6}
1107 %{blurb7}
1108 %{blurb8}
1109
1110 This package installs scripts for creating a rescue USB key.
1111 %endif
1112
1113 %package docs
1114
1115 Summary: Bacula - The Network Backup Solution
1116 Group: System Environment/Daemons
1117
1118 %description docs
1119 %{blurb}
1120
1121 %{blurb2}
1122 %{blurb3}
1123 %{blurb4}
1124 %{blurb5}
1125 %{blurb6}
1126 %{blurb7}
1127 %{blurb8}
1128
1129 This package installs the Bacula pdf and html documentation.
1130
1131 %if %{gconsole}
1132 %package gconsole
1133 Summary: Bacula - The Network Backup Solution
1134 Group: System Environment/Daemons
1135 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1136 %endif
1137
1138 %if %{gconsole} && %{su9}
1139 Requires: gtk2 >= 2.0
1140 Requires: libgnome >= 2.0
1141 Requires: libgnomeui >= 2.0
1142 Requires: glibc >= 2.3
1143 Requires: ORBit2
1144 Requires: libart_lgpl >= 2.0
1145 Requires: libbonobo >= 2.0
1146 Requires: libbonoboui >= 2.0
1147 Requires: bonobo-activation
1148 Requires: gconf2
1149 Requires: linc
1150 Requires: freetype2
1151 %endif
1152 %if %{gconsole} && %{su10}
1153 Requires: gtk2 >= 2.8
1154 Requires: libgnome >= 2.12
1155 Requires: libgnomeui >= 2.12
1156 Requires: glibc >= 2.3
1157 Requires: ORBit2
1158 Requires: libart_lgpl >= 2.3
1159 Requires: libbonobo >= 2.10
1160 Requires: libbonoboui >= 2.10
1161 Requires: bonobo-activation
1162 Requires: gconf2
1163 Requires: freetype2
1164 Requires: cairo
1165 Requires: fontconfig >= 2.3
1166 Requires: gnome-vfs2 >= 2.12
1167 Requires: libpng
1168 %endif
1169 %if %{gconsole} && %{su102}
1170 Requires: gtk2 >= 2.10
1171 Requires: libgnome >= 2.16
1172 Requires: libgnomeui >= 2.16
1173 Requires: glibc >= 2.5
1174 Requires: ORBit2
1175 Requires: libart_lgpl >= 2.3
1176 Requires: libbonobo >= 2.16
1177 Requires: libbonoboui >= 2.16
1178 Requires: bonobo-activation
1179 Requires: gconf2
1180 Requires: freetype2
1181 Requires: cairo
1182 Requires: fontconfig >= 2.4
1183 Requires: gnome-vfs2 >= 2.16
1184 Requires: libpng
1185 %endif
1186 %if %{gconsole} && %{su103}
1187 Requires: gtk2 >= 2.12
1188 Requires: libgnome >= 2.20
1189 Requires: libgnomeui >= 2.20
1190 Requires: glibc >= 2.6
1191 Requires: ORBit2
1192 Requires: libart_lgpl >= 2.3
1193 Requires: libbonobo >= 2.20
1194 Requires: libbonoboui >= 2.20
1195 Requires: bonobo-activation
1196 Requires: gconf2
1197 Requires: freetype2
1198 Requires: cairo
1199 Requires: fontconfig >= 2.4
1200 Requires: gnome-vfs2 >= 2.20
1201 Requires: libpng
1202 %endif
1203 %if %{gconsole} && %{su110}
1204 Requires: gtk2 >= 2.12
1205 Requires: libgnome >= 2.22
1206 Requires: libgnomeui >= 2.22
1207 Requires: glibc >= 2.8
1208 Requires: ORBit2
1209 Requires: libart_lgpl >= 2.3
1210 Requires: libbonobo >= 2.22
1211 Requires: libbonoboui >= 2.22
1212 Requires: bonobo-activation
1213 Requires: gconf2
1214 Requires: freetype2
1215 Requires: cairo
1216 Requires: fontconfig >= 2.4
1217 Requires: gnome-vfs2 >= 2.22
1218 Requires: libpng
1219 %endif
1220 %if %{gconsole} && %{su111}
1221 Requires: gtk2 >= 2.14
1222 Requires: libgnome >= 2.24
1223 Requires: libgnomeui >= 2.24
1224 Requires: glibc >= 2.9
1225 Requires: ORBit2
1226 Requires: libart_lgpl >= 2.3
1227 Requires: libbonobo >= 2.24
1228 Requires: libbonoboui >= 2.24
1229 Requires: bonobo-activation
1230 Requires: gconf2
1231 Requires: freetype2
1232 Requires: cairo
1233 Requires: fontconfig >= 2.6
1234 Requires: gnome-vfs2 >= 2.24
1235 Requires: libpng
1236 %endif
1237 %if %{gconsole} && %{mdk} && !%{mdv}
1238 Requires: gtk2 >= 2.0
1239 Requires: libgnomeui2
1240 Requires: glibc >= 2.3
1241 Requires: ORBit2
1242 Requires: libart_lgpl >= 2.0
1243 Requires: libbonobo >= 2.0
1244 Requires: libbonoboui >= 2.0
1245 Requires: GConf2
1246 Requires: freetype2
1247 %endif
1248 %if %{gconsole} && %{mdv}
1249 Requires: gtk2 >= 2.8
1250 Requires: libgnomeui2
1251 Requires: glibc >= 2.3
1252 Requires: ORBit2
1253 Requires: libart_lgpl >= 2.3
1254 Requires: libbonobo >= 2.10
1255 Requires: libbonoboui >= 2.10
1256 Requires: GConf2
1257 Requires: freetype2
1258 %endif
1259 %if %{gconsole} && %{fc3}  
1260 Requires: gtk2 >= 2.4
1261 Requires: libgnomeui >= 2.8
1262 Requires: glibc >= 2.3
1263 Requires: ORBit2
1264 Requires: libart_lgpl >= 2.3
1265 Requires: libbonobo >= 2.8
1266 Requires: libbonoboui >= 2.8
1267 Requires: bonobo-activation
1268 Requires: GConf2
1269 Requires: freetype
1270 %endif
1271 %if %{gconsole} && %{fc4}  
1272 Requires: gtk2 >= 2.6
1273 Requires: libgnomeui >= 2.10
1274 Requires: glibc >= 2.3
1275 Requires: ORBit2
1276 Requires: libart_lgpl >= 2.3
1277 Requires: libbonobo >= 2.8
1278 Requires: libbonoboui >= 2.8
1279 Requires: bonobo-activation
1280 Requires: GConf2
1281 Requires: freetype
1282 %endif
1283 %if %{gconsole} && %{fc5}  
1284 Requires: gtk2 >= 2.8
1285 Requires: libgnomeui >= 2.14
1286 Requires: glibc >= 2.4
1287 Requires: ORBit2
1288 Requires: libart_lgpl >= 2.3
1289 Requires: libbonobo >= 2.14
1290 Requires: libbonoboui >= 2.14
1291 Requires: GConf2
1292 Requires: freetype
1293 %endif
1294 %if %{gconsole} && %{fc6}  
1295 Requires: gtk2 >= 2.10
1296 Requires: libgnomeui >= 2.16
1297 Requires: glibc >= 2.5
1298 Requires: ORBit2
1299 Requires: libart_lgpl >= 2.3
1300 Requires: libbonobo >= 2.16
1301 Requires: libbonoboui >= 2.16
1302 Requires: GConf2
1303 Requires: freetype
1304 %endif
1305 %if %{gconsole} && %{fc7}  
1306 Requires: gtk2 >= 2.10
1307 Requires: libgnomeui >= 2.18
1308 Requires: glibc >= 2.5
1309 Requires: ORBit2
1310 Requires: libart_lgpl >= 2.3
1311 Requires: libbonobo >= 2.18
1312 Requires: libbonoboui >= 2.18
1313 Requires: GConf2
1314 Requires: freetype
1315 %endif
1316 %if %{gconsole} && %{fc8}  
1317 Requires: gtk2 >= 2.12
1318 Requires: libgnomeui >= 2.20
1319 Requires: glibc >= 2.7
1320 Requires: ORBit2
1321 Requires: libart_lgpl >= 2.3
1322 Requires: libbonobo >= 2.20
1323 Requires: libbonoboui >= 2.20
1324 Requires: GConf2
1325 Requires: freetype
1326 %endif
1327 %if %{gconsole} && %{fc9}  
1328 Requires: gtk2 >= 2.12
1329 Requires: libgnomeui >= 2.22
1330 Requires: glibc >= 2.8
1331 Requires: ORBit2
1332 Requires: libart_lgpl >= 2.3
1333 Requires: libbonobo >= 2.22
1334 Requires: libbonoboui >= 2.22
1335 Requires: GConf2
1336 Requires: freetype
1337 %endif
1338 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1339 Requires: gtk2 >= 2.0
1340 Requires: libgnomeui >= 2.0
1341 Requires: glibc >= 2.3
1342 Requires: ORBit2
1343 Requires: libart_lgpl >= 2.0
1344 Requires: libbonobo >= 2.0
1345 Requires: libbonoboui >= 2.0
1346 Requires: bonobo-activation
1347 Requires: GConf2
1348 Requires: linc
1349 Requires: freetype
1350 %endif
1351 %if %{gconsole} && %{su9}
1352 Requires: xsu
1353 %endif
1354 %if %{gconsole} && %{su10}
1355 Requires: xsu
1356 %endif
1357 %if %{gconsole} && %{su102}
1358 Requires: xsu
1359 %endif
1360 %if %{gconsole} && %{su103}
1361 Requires: xsu
1362 %endif
1363 %if %{gconsole} && %{su110}
1364 Requires: xsu
1365 %endif
1366 %if %{gconsole} && %{su111}
1367 Requires: xsu
1368 %endif
1369 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1370 Requires: usermode
1371 %endif
1372
1373 %if %{gconsole}
1374 %description gconsole
1375 %{blurb}
1376
1377 %{blurb2}
1378 %{blurb3}
1379 %{blurb4}
1380 %{blurb5}
1381 %{blurb6}
1382 %{blurb7}
1383 %{blurb8}
1384
1385 This is the Gnome Console package. It is an add-on to the client or
1386 server packages.
1387 %endif
1388
1389 %if %{wxconsole}
1390 %package wxconsole
1391 Summary: Bacula - The Network Backup Solution
1392 Group: System Environment/Daemons
1393 Requires: wxGTK >= 2.6, libstdc++, openssl
1394 %endif
1395
1396 %if %{wxconsole} && %{su10}
1397 Requires: gtk2 >= 2.8
1398 %endif
1399
1400 %if %{wxconsole} && %{su102}
1401 Requires: gtk2 >= 2.10
1402 %endif
1403
1404 %if %{wxconsole} && %{su103}
1405 Requires: gtk2 >= 2.12
1406 %endif
1407
1408 %if %{wxconsole} && %{su110}
1409 Requires: gtk2 >= 2.12
1410 %endif
1411
1412 %if %{wxconsole} && %{su111}
1413 Requires: gtk2 >= 2.14
1414 %endif
1415
1416 %if %{wxconsole} && %{fc3}  
1417 Requires: gtk2 >= 2.4
1418 %endif
1419
1420 %if %{wxconsole} && %{fc4}  
1421 Requires: gtk2 >= 2.6
1422 %endif
1423
1424 %if %{wxconsole} && %{fc5}  
1425 Requires: gtk2 >= 2.8
1426 %endif
1427
1428 %if %{wxconsole} && %{fc6}  
1429 Requires: gtk2 >= 2.10
1430 %endif
1431
1432 %if %{wxconsole} && %{fc7}  
1433 Requires: gtk2 >= 2.10
1434 %endif
1435
1436 %if %{wxconsole} && %{fc8}  
1437 Requires: gtk2 >= 2.12
1438 %endif
1439
1440 %if %{wxconsole} && %{fc9}  
1441 Requires: gtk2 >= 2.12
1442 %endif
1443
1444 %if %{wxconsole}
1445 %description wxconsole
1446 %{blurb}
1447
1448 %{blurb2}
1449 %{blurb3}
1450 %{blurb4}
1451 %{blurb5}
1452 %{blurb6}
1453 %{blurb7}
1454 %{blurb8}
1455
1456 This is the WXWindows Console package. It is an add-on to the client or
1457 server packages.
1458 %endif
1459
1460 %if %{bat}
1461 %package bat
1462 Summary: Bacula - The Network Backup Solution
1463 Group: System Environment/Daemons
1464 %endif
1465
1466 %if %{bat} && %{su10}
1467 Requires: openssl
1468 Requires: glibc >= 2.4
1469 Requires: fontconfig
1470 Requires: freetype2
1471 Requires: libgcc
1472 Requires: libpng
1473 Requires: qt >= 4.2
1474 Requires: libstdc++
1475 Requires: zlib
1476 %endif
1477
1478 %if %{bat} && %{su102}
1479 Requires: openssl
1480 Requires: glibc >= 2.5
1481 Requires: fontconfig
1482 Requires: freetype2
1483 Requires: libgcc
1484 Requires: libpng
1485 Requires: qt >= 4.2
1486 Requires: libstdc++
1487 Requires: zlib
1488 %endif
1489
1490 %if %{bat} && %{su103}
1491 Requires: openssl
1492 Requires: glibc >= 2.6
1493 Requires: fontconfig
1494 Requires: freetype2
1495 Requires: libgcc
1496 Requires: libpng
1497 Requires: qt >= 4.2
1498 Requires: libstdc++
1499 Requires: zlib
1500 %endif
1501
1502 %if %{bat} && %{su110}
1503 Requires: openssl
1504 Requires: glibc >= 2.8
1505 Requires: fontconfig
1506 Requires: freetype2
1507 Requires: libgcc
1508 Requires: libpng
1509 Requires: qt >= 4.2
1510 Requires: libstdc++
1511 Requires: zlib
1512 %endif
1513
1514 %if %{bat} && %{su111}
1515 Requires: openssl
1516 Requires: glibc >= 2.9
1517 Requires: fontconfig
1518 Requires: freetype2
1519 Requires: libgcc
1520 Requires: libpng
1521 Requires: qt >= 4.2
1522 Requires: libstdc++
1523 Requires: zlib
1524 %endif
1525
1526 %if %{bat} && %{fc5}
1527 Requires: openssl
1528 Requires: glibc >= 2.4
1529 Requires: fontconfig
1530 Requires: freetype
1531 Requires: libgcc
1532 Requires: libpng
1533 Requires: qt4 >= 4.2
1534 Requires: libstdc++
1535 Requires: zlib
1536 %endif
1537
1538 %if %{bat} && %{fc6}
1539 Requires: openssl
1540 Requires: glibc >= 2.5
1541 Requires: fontconfig
1542 Requires: freetype
1543 Requires: libgcc
1544 Requires: libpng
1545 Requires: qt4 >= 4.2
1546 Requires: libstdc++
1547 Requires: zlib
1548 %endif
1549
1550 %if %{bat} && %{fc7}
1551 Requires: openssl
1552 Requires: glibc >= 2.5
1553 Requires: fontconfig
1554 Requires: freetype
1555 Requires: libgcc
1556 Requires: libpng
1557 Requires: qt4 >= 4.2
1558 Requires: libstdc++
1559 Requires: zlib
1560 %endif
1561
1562 %if %{bat} && %{fc8}
1563 Requires: openssl
1564 Requires: glibc >= 2.7
1565 Requires: fontconfig
1566 Requires: freetype
1567 Requires: libgcc
1568 Requires: libpng
1569 Requires: qt4 >= 4.2
1570 Requires: libstdc++
1571 Requires: zlib
1572 %endif
1573
1574 %if %{bat} && %{fc9}
1575 Requires: openssl
1576 Requires: glibc >= 2.8
1577 Requires: fontconfig
1578 Requires: freetype
1579 Requires: libgcc
1580 Requires: libpng
1581 Requires: qt4 >= 4.3
1582 Requires: libstdc++
1583 Requires: zlib
1584 %endif
1585
1586 %if %{bat}
1587 %description bat
1588 %{blurb}
1589
1590 %{blurb2}
1591 %{blurb3}
1592 %{blurb4}
1593 %{blurb5}
1594 %{blurb6}
1595 %{blurb7}
1596 %{blurb8}
1597
1598 This is the Bacula Administration Tool (bat) graphical user interface package. 
1599 It is an add-on to the client or server packages.
1600 %endif
1601
1602 # SuSE turns off stripping of binaries by default. In order to get
1603 # stripped packages we must generate debug package. RedHat and Mandriva
1604 # turn debug packages on by default but strip binaries regardless.
1605 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1606 %debug_package
1607 %endif
1608
1609 %prep
1610
1611 %setup
1612 %setup -T -D -b 1
1613 %setup -T -D -b 2
1614 %setup -T -D -b 3
1615 %setup -T -D -b 4
1616
1617 %build
1618
1619 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1620 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1621 %endif
1622
1623 %if %{bat}
1624 export QTDIR=$(pkg-config --variable=prefix QtCore)
1625 export QTINC=$(pkg-config --variable=includedir QtCore)
1626 export QTLIB=$(pkg-config --variable=libdir QtCore)
1627 export PATH=${QTDIR}/bin/:${PATH}
1628 %endif
1629
1630 cwd=${PWD}
1631 cd %{depkgs}
1632 %if %{sqlite}
1633 make sqlite3
1634 %endif
1635 %if ! %{client_only} && %{mtx}
1636 make mtx
1637 %endif
1638 %if %{bat}
1639 #make qwt
1640 %endif
1641 cd ${cwd}
1642
1643 %if %{wb3} || %{old_pgsql}
1644 patch -p3 src/cats/postgresql.c < %SOURCE5
1645 %endif
1646
1647 # patches for the bundled sqlite scripts
1648
1649 # patch the make_sqlite_tables script for installation bindir
1650 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1651 #patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1652
1653 # patch the create_sqlite_database script for installation bindir
1654 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1655 #patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1656
1657 # patch the make_catalog_backup script for installation bindir
1658 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1659
1660 # patch the update_sqlite_tables script for installation bindir
1661 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1662 #patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1663
1664 # patch the bacula-dir init script to remove sqlite service
1665 %if %{sqlite} && %{su9}
1666 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1667 %endif
1668 %if %{sqlite} && %{su10}
1669 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1670 %endif
1671 %if %{sqlite} && %{su102}
1672 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1673 %endif
1674 %if %{sqlite} && %{su103}
1675 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1676 %endif
1677 %if %{sqlite} && %{su110}
1678 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1679 %endif
1680 %if %{sqlite} && %{su111}
1681 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1682 %endif
1683
1684 # 64 bit lib location hacks
1685 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1686 # reported to be fixed to properly detect lib locations.
1687 %if %{x86_64}
1688 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1689 %endif
1690 %if %{mysql} && %{x86_64}
1691 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1692 %endif
1693 %if %{python} && %{x86_64}
1694 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1695 %endif
1696
1697 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1698 %define qt_path 0
1699 %if %{rhel5} || %{centos5} || %{sl5}
1700 %define qt_path 1
1701 %endif
1702 %if %{bat} && %{qt_path} && %{x86_64}
1703 export PATH=/usr/lib64/qt4/bin/:$PATH
1704 export QTDIR=/usr/lib64/qt4/
1705 export QTINC=/usr/lib64/qt4/include/
1706 export QTLIB=/usr/lib64/qt4/
1707 %endif
1708
1709 %if %{rescue}
1710 echo "Doing rescue configure"
1711 %configure \
1712         --prefix=%{_prefix} \
1713         --sbindir=%{_sbindir} \
1714         --sysconfdir=%{sysconf_dir} \
1715         --with-scriptdir=%{script_dir} \
1716         --with-working-dir=%{working_dir} \
1717         --with-pid-dir=%{pid_dir} \
1718         --enable-smartalloc \
1719         --enable-client-only \
1720         %if %{mdk}
1721         --disable-nls \
1722         %endif
1723         --enable-static-fd \
1724         --disable-libtool
1725
1726 echo "Doing rescue make"
1727 make
1728 %endif
1729
1730 echo "Doing full configure"
1731 %configure \
1732         --prefix=%{_prefix} \
1733         --sbindir=%{_sbindir} \
1734         --sysconfdir=%{sysconf_dir} \
1735         --with-scriptdir=%{script_dir} \
1736         --with-working-dir=%{working_dir} \
1737         --with-pid-dir=%{pid_dir} \
1738         --enable-smartalloc \
1739         --disable-libtool \
1740 %if %{gconsole}
1741         --enable-gnome \
1742 %endif
1743 %if %{gconsole} && ! %{rh8}
1744         --enable-tray-monitor \
1745 %endif
1746 %if %{mysql}
1747         --with-mysql \
1748 %endif
1749 %if %{sqlite}
1750         --with-sqlite3 \
1751 %endif
1752 %if %{postgresql}
1753         --with-postgresql \
1754 %endif
1755 %if %{wxconsole}
1756         --enable-bwx-console \
1757 %endif
1758 %if %{bat}
1759         --enable-bat \
1760         --without-qwt \
1761 %endif
1762 %if %{python}
1763         --with-python \
1764 %endif
1765 %if %{client_only}
1766         --enable-client-only \
1767 %endif
1768 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3} 
1769         --disable-batch-insert \
1770 %endif
1771         --mandir=%{_mandir} \
1772         --with-subsys-dir=%{_subsysdir} \
1773         --with-dir-user=%{director_daemon_user} \
1774         --with-dir-group=%{daemon_group} \
1775         --with-sd-user=%{storage_daemon_user} \
1776         --with-sd-group=%{storage_daemon_group} \
1777         --with-fd-user=%{file_daemon_user} \
1778         --with-fd-group=%{daemon_group} \
1779         --with-basename="XXX_HOSTNAME_XXX" \
1780         --with-hostname="XXX_HOSTNAME_XXX" \
1781         --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1782         --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1783         --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1784         --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1785         --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1786         --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1787         --with-openssl
1788
1789 echo "Doing Full make"
1790 make
1791
1792 echo "Doing Full install"
1793 %install
1794  
1795 cwd=${PWD}
1796 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1797 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1798 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1799 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1800 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1801 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1802 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1803
1804 %if %{gconsole} || %{wxconsole} || %{bat}
1805 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1806 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1807 %endif
1808
1809 %if %{gconsole} || %{wxconsole} || %{bat}
1810 %define usermode_iftrick 1
1811 %else
1812 %define usermode_iftrick 0
1813 %endif
1814
1815 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1816 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1817 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1818 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
1819 %endif
1820
1821 %if %{sqlite}
1822 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1823 %endif
1824
1825 make \
1826         prefix=$RPM_BUILD_ROOT%{_prefix} \
1827         sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1828         sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1829         scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1830         working_dir=$RPM_BUILD_ROOT%{working_dir} \
1831         piddir=$RPM_BUILD_ROOT%{pid_dir} \
1832         mandir=$RPM_BUILD_ROOT%{_mandir} \
1833         install
1834
1835 %if ! %{client_only} && %{mtx}
1836 cd %{depkgs}
1837 make \
1838         prefix=$RPM_BUILD_ROOT%{_prefix} \
1839         sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1840         sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1841         scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1842         working_dir=$RPM_BUILD_ROOT%{working_dir} \
1843         piddir=$RPM_BUILD_ROOT%{pid_dir} \
1844         mandir=$RPM_BUILD_ROOT%{_mandir} \
1845         mtx-install
1846 cd ${cwd}
1847 %endif
1848
1849 # make install in manpages installs _everything_ shotgun style
1850 # so now delete what we will not be packaging
1851 %if ! %{wxconsole}
1852 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1853 %endif
1854 %if ! %{bat}
1855 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1856 %endif
1857 %if ! %{gconsole}
1858 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1859 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1860 %endif
1861 %if %{client_only}
1862 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1863 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1864 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1865 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1866 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1867 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1868 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1869 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1870 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1871 %endif
1872
1873 # fixme - make installs the mysql scripts for sqlite build
1874 %if %{sqlite}
1875 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1876 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1877 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1878 %endif
1879
1880 # fixme - make installs the mysql scripts for postgresql build
1881 %if %{postgresql}
1882 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1883 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1884 %endif
1885
1886 # fixme - make installs gconsole script for build without gconsole
1887 %if ! %{gconsole}
1888 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1889 %endif
1890
1891 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1892
1893 # install the init scripts
1894 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1895 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1896 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1897 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1898 %endif
1899
1900 %if %{mdk}
1901 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1902 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1903 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1904 %endif
1905
1906 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1907 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1908 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1909 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1910 %endif
1911
1912 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1913
1914 %if %{client_only}
1915 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1916 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1917 %endif
1918
1919 # install the menu stuff
1920 %if %{gconsole} && %{su9}
1921 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1922 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1923 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1924 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1925 %endif
1926 %if %{gconsole} && %{su10}
1927 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1928 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1929 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1930 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1931 %endif
1932 %if %{gconsole} && %{su102}
1933 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1934 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1935 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1936 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1937 %endif
1938 %if %{gconsole} && %{su103}
1939 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1940 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1941 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1942 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1943 %endif
1944 %if %{gconsole} && %{su110}
1945 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1946 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1947 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1948 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1949 %endif
1950 %if %{gconsole} && %{su111}
1951 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1952 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1953 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1954 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1955 %endif
1956 %if %{wxconsole} && %{su10}
1957 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1958 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1959 %endif
1960 %if %{wxconsole} && %{su102}
1961 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1962 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1963 %endif
1964 %if %{wxconsole} && %{su103}
1965 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1966 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1967 %endif
1968 %if %{wxconsole} && %{su110}
1969 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1970 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1971 %endif
1972 %if %{wxconsole} && %{su111}
1973 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1974 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1975 %endif
1976 %if %{bat} && %{su102}
1977 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1978 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1979 %endif
1980 %if %{bat} && %{su103}
1981 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1982 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1983 %endif
1984 %if %{bat} && %{su110}
1985 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1986 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1987 %endif
1988 %if %{bat} && %{su111}
1989 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1990 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1991 %endif
1992 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1993 %define iftrick 1
1994 %else
1995 %define iftrick 0
1996 %endif
1997 %if %{gconsole} && %{iftrick}
1998 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1999 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
2000 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
2001 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
2002 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bgnome-console
2003 %endif
2004 %if %{gconsole} && ! %{rh8}
2005 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
2006 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
2007 %endif
2008 %if %{wxconsole} && %{iftrick}
2009 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
2010 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
2011 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
2012 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
2013 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bwx-console
2014 %endif
2015 %if %{bat} && %{iftrick}
2016 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
2017 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
2018 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
2019 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
2020 #ln -sf consolehelper $RPM_BUILD_ROOT/%{_sbindir}/bat
2021 %endif
2022
2023 # install sqlite
2024 %if %{sqlite}
2025 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
2026 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
2027 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
2028 %endif
2029
2030 # install the logrotate file
2031 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
2032
2033 # install the updatedb scripts
2034 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
2035
2036 # install the logwatch scripts
2037 %if ! %{client_only}
2038 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2039 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2040 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2041 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2042 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2043 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2044 %endif
2045
2046 # install the rescue files
2047 %if %{rescue}
2048 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2049 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2050 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2051 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2052 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2053 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2054 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2055 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2056 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2057 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2058 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2059 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2060 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2061 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2062 rm -f src/filed/static-bacula-fd
2063 %endif
2064
2065 # install bat 
2066 %if %{bat}
2067 cp -p src/qt-console/bat $RPM_BUILD_ROOT%{_sbindir}/bat
2068 cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf
2069 %endif
2070
2071 # now clean up permissions that are left broken by the install
2072 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2073 %if %{gconsole} && ! %{rh8}
2074 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2075 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2076 %endif
2077
2078 # fix me - building enable-client-only installs files not included in bacula-client package
2079 %if %{client_only}
2080 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2081 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2082 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2083 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2084 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2085 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2086 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2087 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2088 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2089 %endif
2090
2091 %clean
2092 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2093 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2094 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2095 rm -rf $RPM_BUILD_DIR/depkgs
2096 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2097
2098 %if %{mysql}
2099 # MySQL specific files
2100 %files mysql
2101 %defattr(-, root, %{daemon_group})
2102 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2103 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2104 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2105 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2106 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2107 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2108 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2109 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2110 %endif
2111
2112 %if %{sqlite}
2113 %files sqlite
2114 %defattr(-, root, %{daemon_group})
2115 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2116 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2117 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2118 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2119 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2120 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2121 %{sqlite_bindir}/libsqlite3.a
2122 %{sqlite_bindir}/sqlite3.h
2123 %{sqlite_bindir}/sqlite3
2124 %endif
2125
2126 %if %{postgresql}
2127 %files postgresql
2128 %defattr(-, root, %{daemon_group})
2129 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2130 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2131 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2132 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2133 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2134 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2135 %endif
2136
2137 # The rest is DB backend independent
2138 %if ! %{client_only}
2139 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2140 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2141 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2142 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2143 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2144 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2145 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2146 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2147 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2148 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2149 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2150 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2151 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2152 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2153 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2154 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2155 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2156 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2157 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2158 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-sd
2159 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2160 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2161 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2162 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2163
2164
2165 /etc/logrotate.d/bacula
2166 /etc/log.d/scripts/services/bacula
2167
2168 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2169 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2170 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2171 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2172 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2173 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2174 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2175 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2176
2177 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2178
2179 %attr(-, root, %{daemon_group}) %dir %{_sbindir}
2180 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-dir
2181 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-fd
2182 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/bacula-sd
2183 %attr(-, root, %{daemon_group}) %{_sbindir}/bcopy
2184 %attr(-, root, %{daemon_group}) %{_sbindir}/bextract
2185 %attr(-, root, %{daemon_group}) %{_sbindir}/bls
2186 %attr(-, root, %{daemon_group}) %{_sbindir}/bscan
2187 %attr(-, root, %{daemon_group}) %{_sbindir}/btape
2188 %attr(-, root, %{daemon_group}) %{_sbindir}/btraceback
2189 %attr(-, root, %{daemon_group}) %{_sbindir}/bconsole
2190 %attr(-, root, %{daemon_group}) %{_sbindir}/dbcheck
2191 %attr(-, root, %{daemon_group}) %{_sbindir}/bsmtp
2192 %attr(-, root, %{daemon_group}) %{_sbindir}/bregex
2193 %attr(-, root, %{daemon_group}) %{_sbindir}/bwild
2194
2195
2196 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2197 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2198 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2199 %{_mandir}/man8/bacula.8.%{manpage_ext}
2200 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2201 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2202 %{_mandir}/man8/bextract.8.%{manpage_ext}
2203 %{_mandir}/man8/bls.8.%{manpage_ext}
2204 %{_mandir}/man8/bscan.8.%{manpage_ext}
2205 %{_mandir}/man8/btape.8.%{manpage_ext}
2206 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2207 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2208 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2209 %{_libdir}/libbac*
2210 %endif
2211
2212 %doc COPYING LICENSE ChangeLog ReleaseNotes VERIFYING kernstodo 
2213 %doc ../Release_Notes-%{version}-%{release}.txt
2214
2215 %if %{mysql}
2216 %pre mysql
2217 # test for bacula database older than version 9
2218 # note: this ASSUMES no password has been set for bacula database
2219 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2220 %endif
2221
2222 %if %{sqlite}
2223 %pre sqlite
2224 # are we upgrading from sqlite to sqlite3?
2225 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite ];then
2226         echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2227         echo "Your catalog database file is not compatible with sqlite3, thus"
2228         echo "you will need to dump the data, delete the old file, and re-run"
2229         echo "this rpm upgrade."
2230         echo ""
2231         echo "Backing up your current database..."
2232         echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2233         mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2234         echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2235         echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2236         echo ""
2237         echo "Please re-run this rpm package upgrade."
2238         echo "After the upgrade is complete, restore your catalog"
2239         echo "with the following commands:"
2240         echo "%{script_dir}/drop_sqlite3_tables"
2241         echo "cd %{working_dir}"
2242         echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2243         echo "chown bacula:bacula bacula.db"
2244         exit 1
2245 fi
2246 # test for bacula database older than version 9 and sqlite3
2247 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite3 ];then
2248         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2249 %endif
2250
2251 %if %{postgresql}
2252 %pre postgresql
2253 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2254 %endif
2255
2256 %if ! %{client_only}
2257 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2258         echo "This bacula upgrade will update a bacula database from version 10 to 11."
2259         echo "You appear to be running database version $DB_VER. You must first update"
2260         echo "your database to version 10 and then install this upgrade. The alternative"
2261         echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2262         echo "catalog information, then do the upgrade. Information on updating a"
2263         echo "database older than version 9 can be found in the release notes."
2264         exit 1
2265 fi
2266 %endif
2267
2268 %if %{sqlite}
2269 fi
2270 %endif
2271
2272 %if ! %{client_only}
2273 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2274 if [ -f %{sysconf_dir}/console.conf ];then
2275         cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2276 fi
2277
2278 # create the daemon users and groups
2279 # first create the groups if they don't exist
2280 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2281 if [ -z "$HAVE_BACULA" ]; then
2282         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2283         echo "The group %{daemon_group} has been added to %{group_file}."
2284         echo "See the manual chapter \"Running Bacula\" for details."
2285 fi
2286 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2287 if [ -z "$HAVE_BACULA" ]; then
2288         %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2289         echo "The group %{storage_daemon_group} has been added to %{group_file}."
2290         echo "See the manual chapter \"Running Bacula\" for details."
2291 fi
2292 # now create the users if they do not exist
2293 # we do not use the -g option allowing the primary group to be set to system default
2294 # this will be a unique group on redhat type systems or the group users on some systems
2295 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2296 if [ -z "$HAVE_BACULA" ]; then
2297         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2298         echo "The user %{storage_daemon_user} has been added to %{user_file}."
2299         echo "See the manual chapter \"Running Bacula\" for details."
2300 fi
2301 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2302 if [ -z "$HAVE_BACULA" ]; then
2303         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2304         echo "The user %{director_daemon_user} has been added to %{user_file}."
2305         echo "See the manual chapter \"Running Bacula\" for details."
2306 fi
2307 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2308 if [ -z "$HAVE_BACULA" ]; then
2309         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2310         echo "The user %{file_daemon_user} has been added to %{user_file}."
2311         echo "See the manual chapter \"Running Bacula\" for details."
2312 fi
2313 # now we add the supplementary groups, this is ok to call even if the users already exist
2314 # we only do this if the user is NOT root
2315 IS_ROOT=%{director_daemon_user}
2316 if [ "$IS_ROOT" != "root" ]; then
2317 %{usermod} -G %{daemon_group} %{director_daemon_user}
2318 fi
2319 IS_ROOT=%{storage_daemon_user}
2320 if [ "$IS_ROOT" != "root" ]; then
2321 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2322 fi
2323 IS_ROOT=%{file_daemon_user}
2324 if [ "$IS_ROOT" != "root" ]; then
2325 %{usermod} -G %{daemon_group} %{file_daemon_user}
2326 fi
2327 %endif
2328
2329 %if %{mysql}
2330 %post mysql
2331 %endif
2332 %if %{sqlite}
2333 %post sqlite
2334 %endif
2335 %if %{postgresql}
2336 %post postgresql
2337 %endif
2338
2339 %if ! %{client_only}
2340 # add our links
2341 if [ "$1" -ge 1 ] ; then
2342   /sbin/chkconfig --add bacula-dir
2343   /sbin/chkconfig --add bacula-fd
2344   /sbin/chkconfig --add bacula-sd
2345 fi
2346 %endif
2347
2348 %if %{mysql}
2349 # test for an existing database
2350 # note: this ASSUMES no password has been set for bacula database
2351 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2352
2353 # grant privileges and create tables if they do not exist
2354 if [ -z "$DB_VER" ]; then
2355         echo "Hmm, it doesn't look like you have an existing database."
2356         echo "Granting privileges for MySQL user bacula..."
2357         %{script_dir}/grant_mysql_privileges
2358         echo "Creating MySQL bacula database..."
2359         %{script_dir}/create_mysql_database
2360         echo "Creating bacula tables..."
2361         %{script_dir}/make_mysql_tables
2362
2363 # check to see if we need to upgrade a 2.x or lower database
2364 elif [ "$DB_VER" -lt "11" ]; then
2365         echo "This release requires an upgrade to your bacula database."
2366         echo "Backing up your current database..."
2367         mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2368         echo "Upgrading bacula database ..."
2369         %{script_dir}/update_mysql_tables
2370         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2371
2372 fi
2373 %endif
2374
2375 %if %{sqlite}
2376 # test for an existing database
2377 if [ -f %{working_dir}/bacula.db ]; then
2378         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2379         # check to see if we need to upgrade a 2.x or lower database
2380         if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "10" ]; then
2381                 echo "This release requires an upgrade to your bacula database."
2382                 echo "Backing up your current database..."
2383                 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2384                 echo "Upgrading bacula database ..."
2385                 %{script_dir}/update_sqlite3_tables
2386                 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2387         fi
2388 else
2389         # create the database and tables
2390         echo "Hmm, it doesn't look like you have an existing database."
2391         echo "Creating SQLite database..."
2392         %{script_dir}/create_sqlite3_database
2393         echo "Creating the SQLite tables..."
2394         %{script_dir}/make_sqlite3_tables
2395         chown %{director_daemon_user}:%{daemon_group} %{working_dir}/bacula.db
2396 fi
2397 %endif
2398
2399 %if %{postgresql}
2400 # test for an existing database
2401 # note: this ASSUMES no password has been set for bacula database
2402 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2403
2404 # grant privileges and create tables if they do not exist
2405 if [ -z "$DB_VER" ]; then
2406         echo "Hmm, it doesn't look like you have an existing database."
2407         echo "Creating PostgreSQL bacula database..."
2408         %{script_dir}/create_postgresql_database
2409         echo "Creating bacula tables..."
2410         %{script_dir}/make_postgresql_tables
2411         echo "Granting privileges for PostgreSQL user bacula..."
2412         %{script_dir}/grant_postgresql_privileges
2413
2414 # check to see if we need to upgrade a 2.x or lower database
2415 elif [ "$DB_VER" -lt "11" ]; then
2416         echo "This release requires an upgrade to your bacula database."
2417         echo "Backing up your current database..."
2418         pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2419         echo "Upgrading bacula database ..."
2420         %{script_dir}/update_postgresql_tables
2421         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2422         
2423 fi
2424 %endif
2425
2426 %if ! %{client_only}
2427 # generate passwords if needed
2428 if [ -d %{sysconf_dir} ]; then
2429    cd %{sysconf_dir}
2430    for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2431       pass=`openssl rand -base64 33`
2432       for file in *.conf; do
2433          need_password=`grep ${string} $file 2>/dev/null`
2434          if [ -n "$need_password" ]; then
2435             sed "s@${string}@${pass}@g" $file > $file.new
2436             cp -f $file.new $file; rm -f $file.new
2437          fi
2438       done
2439    done
2440 # put actual hostname in conf file
2441    host=`hostname`
2442    string="XXX_HOSTNAME_XXX"
2443    for file in *.conf; do
2444       need_host=`grep ${string} $file 2>/dev/null`
2445       if [ -n "$need_host" ]; then
2446          sed "s@${string}@${host}@g" $file >$file.new
2447          cp -f $file.new $file; rm -f $file.new
2448       fi
2449    done
2450 fi
2451 %endif
2452
2453
2454
2455 %if %{mysql}
2456 %preun mysql
2457 %endif
2458 %if %{sqlite}
2459 %preun sqlite
2460 %endif
2461 %if %{postgresql}
2462 %preun postgresql
2463 %endif
2464
2465 %if ! %{client_only}
2466 # delete our links
2467 if [ $1 = 0 ]; then
2468   /sbin/chkconfig --del bacula-dir
2469   /sbin/chkconfig --del bacula-fd
2470   /sbin/chkconfig --del bacula-sd
2471 fi
2472 %endif
2473
2474
2475 %if ! %{client_only} && %{mtx}
2476 %files mtx
2477 %defattr(-,root,root)
2478 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2479 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2480 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2481 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2482 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2483 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2484 %{_mandir}/man1/mtx.1.%{manpage_ext}
2485 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2486 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2487 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2488 %endif
2489
2490
2491 %files client
2492 %defattr(-,root,root)
2493 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2494 %{script_dir}/bacula-ctl-fd
2495 /etc/init.d/bacula-fd
2496
2497
2498 %doc COPYING ChangeLog LICENSE ReleaseNotes VERIFYING kernstodo 
2499 %doc ../Release_Notes-%{version}-%{release}.txt
2500
2501 /etc/logrotate.d/bacula
2502
2503 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2504 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2505
2506 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2507
2508 %{_sbindir}/bacula-fd
2509 %{_sbindir}/btraceback
2510 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2511 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2512 %{_sbindir}/bconsole
2513 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2514 %{_mandir}/man8/bacula.8.%{manpage_ext}
2515 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2516 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2517 %{_libdir}/libbac*
2518
2519 %pre client
2520 # create the daemon group and user
2521 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2522 if [ -z "$HAVE_BACULA" ]; then
2523         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2524         echo "The group %{daemon_group} has been added to %{group_file}."
2525         echo "See the manual chapter \"Running Bacula\" for details."
2526 fi
2527 # we do not use the -g option allowing the primary group to be set to system default
2528 # this will be a unique group on redhat type systems or the group users on some systems
2529 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2530 if [ -z "$HAVE_BACULA" ]; then
2531         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2532         echo "The user %{file_daemon_user} has been added to %{user_file}."
2533         echo "See the manual chapter \"Running Bacula\" for details."
2534 fi
2535 # now we add the supplementary group, this is ok to call even if the user already exists
2536 # we only do this if the user is NOT root
2537 IS_ROOT=%{file_daemon_user}
2538 if [ "$IS_ROOT" != "root" ]; then
2539   %{usermod} -G %{daemon_group} %{file_daemon_user}
2540 fi
2541
2542 %post client
2543
2544 # generate passwords if needed
2545 if [ -d %{sysconf_dir} ]; then
2546    cd %{sysconf_dir}
2547    for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2548       pass=`openssl rand -base64 33`
2549       for file in *.conf; do
2550          need_password=`grep $string $file 2>/dev/null`
2551          if [ -n "$need_password" ]; then
2552             sed "s@${string}@${pass}@g" $file > $file.new
2553             cp -f $file.new $file; rm -f $file.new
2554          fi
2555       done
2556    done
2557 # put actual hostname in conf file
2558    host=`hostname`
2559    string="XXX_HOSTNAME_XXX"
2560    for file in *.conf; do
2561       need_host=`grep $string $file 2>/dev/null`
2562       if [ -n "$need_host" ]; then
2563          sed "s@${string}@${host}@g" $file >$file.new
2564          cp -f $file.new $file; rm -f $file.new
2565       fi
2566    done
2567 fi
2568
2569 # add our link
2570 if [ "$1" -ge 1 ] ; then
2571   /sbin/chkconfig --off bacula-fd
2572   /sbin/chkconfig --add bacula-fd
2573   /sbin/chkconfig --on bacula-fd
2574 fi
2575
2576
2577
2578 %preun client
2579 # delete our link
2580 if [ $1 = 0 ]; then
2581   /sbin/chkconfig --del bacula-fd
2582 fi
2583
2584 %if ! %{client_only}
2585 %files updatedb
2586 %defattr(-,root,%{daemon_group})
2587 %{script_dir}/updatedb/*
2588
2589 %pre updatedb
2590 # create the daemon group
2591 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2592 if [ -z "$HAVE_BACULA" ]; then
2593         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2594         echo "The group %{daemon_group} has been added to %{group_file}."
2595         echo "See the manual chapter \"Running Bacula\" for details."
2596 fi
2597
2598 %post updatedb
2599 echo "The database update scripts were installed in %{script_dir}/updatedb"
2600 %endif
2601
2602 %if %{rescue}
2603 %files rescue
2604 %defattr(-,root,root)
2605 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2606 %endif
2607
2608 %files docs
2609 %defattr(-,root,root)
2610 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
2611
2612 %if %{gconsole}
2613 %files gconsole
2614 %defattr(-, root, %{daemon_group})
2615 %{_sbindir}/bgnome-console
2616 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2617 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2618 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2619 /usr/share/pixmaps/bacula.png
2620 /usr/share/applications/bacula.desktop
2621 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2622 %endif
2623
2624 %if %{gconsole} && ! %{rh8}
2625 %{_sbindir}/bacula-tray-monitor
2626 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2627 /usr/share/pixmaps/bacula-tray-monitor.xpm
2628 /usr/share/applications/bacula-tray-monitor.desktop
2629 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2630 %endif
2631
2632 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2633 # add the console helper files
2634 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2635 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2636 %{_sbindir}/bgnome-console
2637 %endif
2638
2639 %if %{gconsole}
2640 %pre gconsole
2641 # create the daemon group
2642 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2643 if [ -z "$HAVE_BACULA" ]; then
2644         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2645         echo "The group %{daemon_group} has been added to %{group_file}."
2646         echo "See the manual chapter \"Running Bacula\" for details."
2647 fi
2648
2649 %post gconsole
2650 # generate passwords if needed
2651 if [ -d %{sysconf_dir} ]; then
2652    cd %{sysconf_dir}
2653    for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2654       pass=`openssl rand -base64 33`
2655       for file in *.conf; do
2656          need_password=`grep $string $file 2>/dev/null`
2657          if [ -n "$need_password" ]; then
2658             sed "s@${string}@${pass}@g" $file > $file.new
2659             cp -f $file.new $file; rm -f $file.new
2660          fi
2661       done
2662    done
2663 # put actual hostname in conf file
2664    host=`hostname`
2665    string="XXX_HOSTNAME_XXX"
2666    for file in *.conf; do
2667       need_host=`grep $string $file 2>/dev/null`
2668       if [ -n "$need_host" ]; then
2669          sed "s@${string}@${host}@g" $file >$file.new
2670          cp -f $file.new $file; rm -f $file.new
2671       fi
2672    done
2673 fi
2674
2675
2676 %endif
2677
2678 %if %{wxconsole}
2679 %files wxconsole
2680 %defattr(-, root, %{daemon_group})
2681 %defattr(-,root,root)
2682 %{_sbindir}/bwx-console
2683 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2684 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2685 /usr/share/pixmaps/wxwin16x16.xpm
2686 /usr/share/applications/wxconsole.desktop
2687 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2688 %endif
2689
2690 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2691 # add the console helper files
2692 %config(noreplace,missingok) /etc/pam.d/bwx-console
2693 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2694 %{_sbindir}/bwx-console
2695 %endif
2696
2697 %if %{wxconsole}
2698 %pre wxconsole
2699 # create the daemon group
2700 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2701 if [ -z "$HAVE_BACULA" ]; then
2702         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2703         echo "The group %{daemon_group} has been added to %{group_file}."
2704         echo "See the manual chapter \"Running Bacula\" for details."
2705 fi
2706
2707 %post wxconsole
2708 # generate passwords if needed
2709 if [ -d %{sysconf_dir} ]; then
2710    cd %{sysconf_dir}
2711    for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2712       pass=`openssl rand -base64 33`
2713       for file in *.conf; do
2714          need_password=`grep $string $file 2>/dev/null`
2715          if [ -n "$need_password" ]; then
2716             sed "s@${string}@${pass}@g" $file > $file.new
2717             cp -f $file.new $file; rm -f $file.new
2718          fi
2719       done
2720    done
2721 # put actual hostname in conf file
2722    host=`hostname`
2723    string="XXX_HOSTNAME_XXX"
2724    for file in *.conf; do
2725       need_host=`grep $string $file 2>/dev/null`
2726       if [ -n "$need_host" ]; then
2727          sed "s@${string}@${host}@g" $file >$file.new
2728          cp -f $file.new $file; rm -f $file.new
2729       fi
2730    done
2731 fi
2732
2733
2734 %endif
2735
2736 %if %{bat}
2737 %files bat
2738 %defattr(-,root,%{daemon_group})
2739 %{_sbindir}/bat
2740 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2741 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2742 /usr/share/pixmaps/bat_icon.png
2743 /usr/share/applications/bat.desktop
2744 %{_mandir}/man1/bat.1.%{manpage_ext}
2745 %endif
2746
2747 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2748 # add the console helper files
2749 %config(noreplace,missingok) /etc/pam.d/bat
2750 %config(noreplace,missingok) /etc/security/console.apps/bat
2751 %endif
2752
2753 %if %{bat}
2754 %pre bat
2755 # create the daemon group
2756 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2757 if [ -z "$HAVE_BACULA" ]; then
2758         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2759         echo "The group %{daemon_group} has been added to %{group_file}."
2760         echo "See the manual chapter \"Running Bacula\" for details."
2761 fi
2762
2763 %post bat
2764 # generate passwords if needed
2765 if [ -d %{sysconf_dir} ]; then
2766    cd %{sysconf_dir}
2767    for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2768       pass=`openssl rand -base64 33`
2769       for file in *.conf; do
2770          need_password=`grep $string $file 2>/dev/null`
2771          if [ -n "$need_password" ]; then
2772             sed "s@${string}@${pass}@g" $file > $file.new
2773             cp -f $file.new $file; rm -f $file.new
2774          fi
2775       done
2776    done
2777 # put actual hostname in conf file
2778    host=`hostname`
2779    string="XXX_HOSTNAME_XXX"
2780    for file in *.conf; do
2781       need_host=`grep $string $file 2>/dev/null`
2782       if [ -n "$need_host" ]; then
2783          sed "s@${string}@${host}@g" $file >$file.new
2784          cp -f $file.new $file; rm -f $file.new
2785       fi
2786    done
2787 fi
2788
2789
2790 %endif
2791
2792 %changelog
2793 * Sun Jul 19 2009 Kern Sibbald <kern@sibbald.com>
2794 - Merge in Scott's 3.0 changes
2795 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2796 - add switch to pass Distribution tag
2797 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2798 - 3.0.0 release
2799 - database update version 10 to 11
2800 - make now installs docs so we rm from buildroot
2801 - add shared libs in %_libdir and other misc new files
2802 * Sun Jun 14 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2803 - some corrections to %if logic
2804 * Fri May 29 2009 Kern Sibbald <kern@sibbald.com>
2805 - Make bacula.spec.in more configurable
2806 - Split out rescue and docs
2807 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2808 - add su111 target
2809 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2810 - set paths for QT using pkgconfig
2811 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2812 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2813 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2814 - adjust /opt/bacula install
2815 - add build switch to supress rescue package
2816 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2817 - add support for install to /opt/bacula
2818 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2819 - remove libtermcap dependancy for FC9
2820 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2821 - fix bat dependencies
2822 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - add su110 target
2824 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2825 - add fc9 target
2826 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2827 - FHS compatibility changes
2828 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - remove fix for false buffer overflow detection with glibc >= 2.7
2830 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2831 - fix for false buffer overflow detection with glibc >= 2.7
2832 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2833 - 2.2.8 release
2834 - add debug package for SuSE
2835 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - 2.2.8 beta release  
2837 - fix bug 1037
2838 - add fc8 target
2839 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2840 - fix typo on su103 client package requirements
2841 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2842 - add nobuild_mtx switch
2843 - add patch for postgresql.c for old postgresql versions
2844 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2845 - switch to sqlite3
2846 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2847 - add new files required by rescue makefile
2848 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2849 - add su103 build target
2850 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2851 - fix dist defines for rhel5 and clones
2852 - fix rhel broken 64 bit QT4 paths
2853 - rh qt4 packages don't provide qt so fix that too
2854 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2855 - correct ownership when creating sqlite db file in post script
2856 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2857 - fix disable-batch-insert
2858 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2859 - 2.2.4 release
2860 - turn off gconsole build for fc3, tray monitor fails to build
2861 - add new files for mtx package (09Sep07 depkgs update)
2862 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2863 - add --disable-batch-insert for older platforms
2864 - add build targets for rhel5 and clones
2865 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2866 - 2.2.1 release
2867 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2868 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2869 - 2.1.26 add make of qwt in depkgs for bat
2870 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2871 - upgrade Qt requirement for bat to 4.2
2872 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2873 - add fc7 build target
2874 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2875 - 2.1.8
2876 - gnome-console now bgnome-console
2877 - wxconsole now bwx-console
2878 - add build option for bat
2879 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2880 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2881 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2882 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2883 - adjust directory locations for FHS-compatibility
2884   sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2885   working_dir (/var/lib/bacula) and pid_dir (/var/run)
2886 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2887 - add SuSE 10.2 target
2888 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2889 - correct bug 752
2890 - set query.sql as config file
2891 - correct bug 754
2892 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2893 - 2.0.1 release
2894 - change determination of gcc version per patch from Marc Hennes
2895 - move BuildRequire for atk-devel to gnome only builds
2896 - add fc6 build tag
2897 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2898 - 2.0.0 release
2899 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2900 - 1.39.26 remove create_sqlite_database.in.patch
2901 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2902 - change ownership of working_dir on server packages to bacula.bacula so that
2903 - bacula-sd can create bootstrap files
2904 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2905 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2906 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2907 - fix manpages file extension for mdk
2908 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2909 - bug 648 re-enable and update sqlite patches
2910 - 1.39.18 changes
2911 - updatedb 9 to 10
2912 - install man pages
2913 - lock out gconsole build for gtk+ < 2.4
2914 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - move pango-devel BuildRequires into gconsole only build
2916 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2917 - add provides and conflicts for standard suse packages
2918 - add third party packager tag support
2919 - add build_client_only tag
2920 - remove bsmtp from client package
2921 - add bacula-ctl-fd to client package
2922 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2923 - fix directory creation when wxconsole and not gconsole
2924 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2925 - add check to buildrequires to make sure libstdc++ version matches gcc
2926 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2927 - add python build support
2928 - fix LDFLAGS declarations
2929 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2930 - add requires for standard compiler toolchain
2931 - move version and release tags up
2932 - move patches up
2933 - add docs_version tag
2934 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2935 - update rescuever to 1.8.6
2936 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2937 - update depkgs to 25Jun06
2938 - add mysql5 build tag
2939 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2940 - 1.38.10 bump rescue version
2941 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2942 - fix usermod statements
2943 - add fc5 target
2944 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2945 - add -g param back to useradd statements Bug 605
2946 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2947 - redundant code cleanup
2948 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2949 - add wxconsole package
2950 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2951 - 1.38.8 release
2952 - dependency update for Mandriva
2953 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2954 - 1.38.7 release
2955 - remove -n option from useradd scripts
2956 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2957 - 1.38.6 release
2958 - fix problem specifying more than one primary group for user bacula
2959 - add build switch to not build gconsole regardless of platform
2960 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2961 - add centos3 build tag
2962 - fix link error of static-fd on Mandrake with --disable-nls
2963 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2964 - add fc4 dependencies
2965 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2966 - add SuSE 10.0 build
2967 - remove specific permission in attrib macros
2968 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2969 - 1.38.5 release
2970 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2971 - refix compat for _dist on SLES9 which seems to have been removed
2972 - added note regarding Aleksandar's use of specific permissions in attrib macros
2973 - need to review and add specific fc4 build currently using fc3 Requires
2974 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2975 - 1.38.2 release
2976 - Reorganize files and pre/post sections to remove repetitions
2977 - Always build separate mtx package
2978 - Fix file ownerships for /etc/bacula and Bacula's working dir
2979 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2980 - Disable GNOME on RH7
2981 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2982 - Red Hat and look alikes have mtx RPM, do not build/package our version
2983 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2984 - minor edit to _dist for SLES9 compatibility
2985 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2986 - 1.38.0 release
2987 - kern changed location of pdf files and html manual in docs package
2988 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2989 - 1.38.0 release
2990 - add docs (from prebuilt tarball) and rescue packages back in
2991 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2992 - remove 3 of 4 sqlite script patches as not needed
2993 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2994 - changes for 1.38
2995 - remove docs and rescue sections (remove static fd)
2996 - add dvd-freespace and dvd-writepart files
2997 - update depkgs to 22Jun05
2998 - change database update to 8 to 9
2999 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3000 - minor cleanups before 1.38 changes
3001 - add popt and popt-devel build dependencies
3002 - add tetex and tetex-dvips dependencies for doc build
3003 - replace deprecated Copyright tag with License
3004 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3005 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
3006 - conflict with sqlite packages. remove readline dependency.
3007 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3008 - release 1.36.3 update docs
3009 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3010 - add centos4 build tag
3011 - add x86_64 build tag
3012 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3013 - add rhel4 build tag
3014 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
3015 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3016 - add rhel3 build tag
3017 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3018 - fix tray-monitor.conf for noreplace
3019 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3020 - fix distribution check for Fedora and Whitebox
3021 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3022 - add logwatch script
3023 - add dvd scripts
3024 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3025 - add build for Fedora Core 3 (linc now included in ORDit2)
3026 - add mysql4 define for Mandrake 10.1
3027 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3028 - fix {group_file} variable in post scripts
3029 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
3030 - add distribution checking and custom Distribution tag
3031 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3032 - ASSIGNMENT OF COPYRIGHT
3033 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
3034 - assigns unto Kern Sibbald, his successors, assigns and personal representatives, 
3035 - all right, title and interest in and to the copyright in this software RPM
3036 - spec file. D. Scott Barninger warrants good title to said copyright, that it is 
3037 - free of all liens, encumbrances or any known claims against said copyright.
3038 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3039 - bug 183 fixes
3040 - thanks to Daniel Widyono
3041 - update description for rescue package to describe cdrom creation
3042 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3043 - update depkgs to 29Oct04
3044 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3045 - add cdrom rescue to bacula-rescue package
3046 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3047 - misc fixes from 1.36.0 suse feedback
3048 - fix situation where sqlite database exists but sqlite has been removed.
3049 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3050 - remove tray-monitor from RH8 build
3051 - fix permissions on tray-monitor files
3052 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3053 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3054 - change database update to 7 to 8 upgrade,
3055 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3056 - build in 30Jul04, add freetype dependancy to gnome package.
3057 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3058 - add documentation to console for groupadd
3059 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3060 - add support for running daemons as root.bacula
3061 - correct for change in location of floppy rescue files in 1.35.2
3062 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3063 - updated depgkgs to 30Jul04
3064 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3065 - really, really fix symlink creation for gconsole
3066 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3067 - fix symlink creation in gconsole post install
3068 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3069 - fixed error in gconsole post script
3070 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3071 - add check for gconsole symlink before trying to create it
3072 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3073 - fix some minor permissions issues on doc files that CVS won't let us fix
3074 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3075 - add pkgconfig to BuildRequires
3076 - clean up gnome1/2 menu entries for appropriate packages
3077 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3078 - tightened up doc distribution
3079 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3080 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3081 - rpm's horrible bug that prevents nested conditional macros prevents me
3082 - from implementing these 2 separate approaches within the conditionals which
3083 - create the separate server packages.
3084 - the solution adopted is to remove the gnome-console files from the server packages
3085 - so bacula-gconsole is now an add on for both client and server packages.
3086 - this also now allows the server packages to be install on machines without
3087 - an X-server and we can still maintain a single spec file.
3088 - added tests to make sure we have defined platform and database macros.
3089 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3090 - corrected mysql prerequisites for suse
3091 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3092 - replaced all cp commands with cp -p
3093 - removed addition of a+x permissions on gnome-console
3094 - corrected permissions on init scripts
3095 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3096 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3097 -
3098 - various cleanup patches from Michael K. Johnson:
3099 - corrected post install routines for nicer chkconfig
3100 - removed chmod changes in post routines and moved to install section
3101 - removed interactive nature of post routine for rescue package
3102 - added description of building rescue disks to the description of rescue package
3103 - added clean of build root to beginning of install
3104 - removed specifying attr in all file lists
3105 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3106 - added bconsole to client package
3107 - added gconsole package as add-on to client
3108 - removed spurious dependancies on updatedb package (!cut/paste)
3109 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3110 - added updatedb package
3111 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3112 - added postgresql package
3113 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3114 - corrected the if else logic in the dependancy sections
3115 - changes for 1.34 release
3116 - /etc/bacula/console is now /etc/bacula/bconsole
3117 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3118 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3119 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3120 - added new /etc/bacula/drop_mysql_database
3121 - added new /etc/bacula/drop_sqlite_database
3122 - added new /etc/bacula/grant_sqlite_privileges
3123 - added new generic bacula database scripts in /etc/bacula
3124 - added pre-install sections to check for database versions older than 6
3125 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3126 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3127 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3128 - added testing for existing databases before executing any of the database creation scripts
3129 - added defines working_dir and sqlite_bindir in place of hard coded paths
3130 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3131 - added build configuration for SuSE.
3132 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3133 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3134 - added patch for create_sqlite_database to fix the installed bindir
3135 - added execute of create_sqlite_database to post of sqlite package
3136 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3137 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3138 - added bacula-fd as Requires for rescue package
3139 - added build tag for Fedora Core 1
3140 - cleaned up dependancies for all builds
3141 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3142 - removed rh_version from package names
3143 - added platform build configuration section to beginning of file
3144 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3145 - removed make_static_bacula script from rescue package install
3146 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3147 - Added define at top of file for depkgs version
3148 - Added rescue sub-package
3149 - Moved requires statements into proper sub-package locations
3150 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3151 - Corrected Requires for Gnome 1.4/2.0 builds
3152 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3153 - Added separate source declaration for depkgs
3154 - added patch for make_catalog_backup script
3155 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3156 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3157 - Added rh_version to sub-package names
3158 - Added installed but missing file /etc/bacula/gconsole
3159 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3160 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3161 - Update spec for version 1.31 and combine client
3162 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3163 - Initial spec file