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