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