forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bacula.spec
2782 lines (2572 loc) · 91.9 KB
/
bacula.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Bacula RPM spec file
# Copyright (C) 2000-2008 Kern Sibbald
# Platform Build Configuration
# basic defines for every build
%define _version 2.4.3
%define _release 1
%define depkgs_version 11Sep08
%define _rescuever 2.4.3
%define docs_version 2.4.3
# any patches for this release
# be sure to check the setup section for patch macros
#--------------------------------------------------------------------------
# it should not be necessary to change anything below here for a release
# except for patch macros in the setup section
#--------------------------------------------------------------------------
%define single_dir 0
%{?single_dir_install:%define single_dir 1}
%if %{single_dir}
%define _prefix /opt/bacula
%else
%define _prefix /usr
%endif
# third party packagers
%define _packager D. Scott Barninger <[email protected]>
%{?contrib_packager:%define _packager %{contrib_packager}}
Summary: Bacula - The Network Backup Solution
Name: bacula
Version: %{_version}
Release: %{_release}
Group: System Environment/Daemons
License: GPL v2
Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
Source2: Release_Notes-%{version}-%{release}.tar.gz
Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
Source5: bacula-2.2.7-postgresql.patch
BuildRoot: %{_tmppath}/%{name}-root
URL: http://www.bacula.org/
Vendor: The Bacula Team
Packager: %{_packager}
Prefix: %{_prefix}
# define the basic package description
%define blurb Bacula - It comes by night and sucks the vital essence from your computers.
%define blurb2 Bacula is a set of computer programs that permit you (or the system
%define blurb3 administrator) to manage backup, recovery, and verification of computer
%define blurb4 data across a network of computers of different kinds. In technical terms,
%define blurb5 it is a network client/server based backup program. Bacula is relatively
%define blurb6 easy to use and efficient, while offering many advanced storage management
%define blurb7 features that make it easy to find and recover lost or damaged files.
%define blurb8 Bacula source code has been released under the GPL version 2 license.
# source directory locations
%define _docsrc ../%{name}-docs-%{docs_version}
%define _rescuesrc ../%{name}-rescue-%{_rescuever}
%define depkgs ../depkgs
# directory locations
%if %{single_dir}
%define _sbindir /opt/bacula
%define _subsysdir /opt/bacula/working
%define sqlite_bindir /opt/bacula/sqlite
%define _mandir /usr/share/man
%define sysconf_dir /opt/bacula
%define script_dir /opt/bacula/scripts
%define working_dir /opt/bacula/working
%define pid_dir /opt/bacula/working
%else
%define _sbindir %_prefix/sbin
%define _subsysdir /var/lock/subsys
%define sqlite_bindir %_libdir/bacula/sqlite
%define _mandir %_prefix/share/man
%define sysconf_dir /etc/bacula
%define script_dir %_libdir/bacula
%define working_dir /var/lib/bacula
%define pid_dir /var/run
%endif
# NOTE these defines are used in some rather complex useradd and groupadd
# commands. If you change them examine the post scripts for consequences.
%define director_daemon_user bacula
%define storage_daemon_user bacula
%define file_daemon_user root
%define daemon_group bacula
# group that has write access to tape devices, usually disk on Linux
%define storage_daemon_group disk
%define user_file /etc/passwd
%define group_file /etc/group
# program locations
%define useradd /usr/sbin/useradd
%define groupadd /usr/sbin/groupadd
%define usermod /usr/sbin/usermod
# platform defines - set one below or define the build_xxx on the command line
# RedHat builds
%define rh7 0
%{?build_rh7:%define rh7 1}
%define rh8 0
%{?build_rh8:%define rh8 1}
%define rh9 0
%{?build_rh9:%define rh9 1}
# Fedora Core build
%define fc1 0
%{?build_fc1:%define fc1 1}
%define fc3 0
%{?build_fc3:%define fc3 1}
%define fc4 0
%{?build_fc4:%define fc4 1}
%define fc5 0
%{?build_fc5:%define fc5 1}
%define fc6 0
%{?build_fc6:%define fc6 1}
%define fc7 0
%{?build_fc7:%define fc7 1}
%define fc8 0
%{?build_fc8:%define fc8 1}
%define fc9 0
%{?build_fc9:%define fc9 1}
# Whitebox Enterprise build
%define wb3 0
%{?build_wb3:%define wb3 1}
# RedHat Enterprise builds
%define rhel3 0
%{?build_rhel3:%define rhel3 1}
%{?build_rhel3:%define wb3 1}
%define rhel4 0
%{?build_rhel4:%define rhel4 1}
%{?build_rhel4:%define fc3 1}
%define rhel5 0
%{?build_rhel5:%define rhel5 1}
%{?build_rhel5:%define fc6 1}
# CentOS build
%define centos3 0
%{?build_centos3:%define centos3 1}
%{?build_centos3:%define wb3 1}
%define centos4 0
%{?build_centos4:%define centos4 1}
%{?build_centos4:%define fc3 1}
%define centos5 0
%{?build_centos5:%define centos5 1}
%{?build_centos5:%define fc6 1}
# SL build
%define sl3 0
%{?build_sl3:%define sl3 1}
%{?build_sl3:%define wb3 1}
%define sl4 0
%{?build_sl4:%define sl4 1}
%{?build_sl4:%define fc3 1}
%define sl5 0
%{?build_sl5:%define sl5 1}
%{?build_sl5:%define fc6 1}
# SuSE build
%define su9 0
%{?build_su9:%define su9 1}
%define su10 0
%{?build_su10:%define su10 1}
%define su102 0
%{?build_su102:%define su102 1}
%define su103 0
%{?build_su103:%define su103 1}
%define su110 0
%{?build_su110:%define su110 1}
# Mandrake builds
%define mdk 0
%{?build_mdk:%define mdk 1}
%define mdv 0
%{?build_mdv:%define mdv 1}
%{?build_mdv:%define mdk 1}
# client only build
%define client_only 0
%{?build_client_only:%define client_only 1}
# test for a platform definition
%if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{mdk}
%{error: You must specify a platform. Please examine the spec file.}
exit 1
%endif
# database defines
# set for database support desired or define the build_xxx on the command line
%define mysql 0
%{?build_mysql:%define mysql 1}
# if using mysql 4.x define this and mysql above
# currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
%define mysql4 0
%{?build_mysql4:%define mysql4 1}
%{?build_mysql4:%define mysql 1}
# if using mysql 5.x define this and mysql above
# currently: SuSE 10.1 and Fedora Core 5
%define mysql5 0
%{?build_mysql5:%define mysql5 1}
%{?build_mysql5:%define mysql 1}
%define sqlite 0
%{?build_sqlite:%define sqlite 1}
%define postgresql 0
%{?build_postgresql:%define postgresql 1}
# test for a database definition
%if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
%{error: You must specify database support. Please examine the spec file.}
exit 1
%endif
%if %{mysql}
%define db_backend mysql
%endif
%if %{sqlite}
%define db_backend sqlite3
%endif
%if %{postgresql}
%define db_backend postgresql
%endif
# 64 bit support
%define x86_64 0
%{?build_x86_64:%define x86_64 1}
# check what distribution we are
%if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
%define _dist %(grep Red /etc/redhat-release)
%endif
%if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
%define _dist %(grep Fedora /etc/redhat-release)
%endif
%if %{centos5} || %{centos4} || %{centos3}
%define _dist %(grep CentOS /etc/redhat-release)
%endif
%if %{sl5} ||%{sl4} || %{sl3}
%define _dist %(grep 'Scientific Linux' /etc/redhat-release)
%endif
%if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
%define _dist %(grep Fedora /etc/redhat-release)
%endif
%if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
%define _dist %(grep Fedora /etc/redhat-release)
%endif
%if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
%define _dist %(grep White /etc/whitebox-release)
%endif
%if %{su9} || %{su10} || %{su102} || %{su103} || %{su110}
%define _dist %(grep -i SuSE /etc/SuSE-release)
%endif
%if %{mdk}
%define _dist %(grep Mand /etc/mandrake-release)
%endif
Distribution: %{_dist}
# Should we build gconsole, possible only if gtk= >= 2.4 available.
# leaving all the BuildRequires and Requires in place below for now.
# su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
# release as it needs 2.10
%define gconsole 1
%if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
%define gconsole 0
%endif
%if %{mdk} && ! %{mdv}
%define gconsole 0
%endif
# specifically disallow gconsole if desired
%{?nobuild_gconsole:%define gconsole 0}
# specifically disallow rescue files if desired
%define rescue 1
%{?nobuild_rescue:%define rescue 0}
# Should we build wxconsole, only wxWidgets >=2.6 is supported
# SuSE 10 and FC4 and newer
%define wxconsole 0
%{?build_wxconsole:%define wxconsole 1}
# Should we build bat
# requires >= Qt-4.2
%define bat 0
%{?build_bat:%define bat 1}
# should we turn on python support
%define python 0
%{?build_python:%define python 1}
# specifically disallow build of mtx package if desired
%define mtx 1
%{?nobuild_mtx:%define mtx 0}
# do we need to patch for old postgresql version?
%define old_pgsql 0
%{?build_old_pgsql:%define old_pgsql 1}
# Mandriva somehow forces the manpage file extension to bz2 rather than gz
%if %{mdk}
%define manpage_ext bz2
%else
%define manpage_ext gz
%endif
# for client only build
%if %{client_only}
%define mysql 0
%define mysql4 0
%define mysql5 0
%define postgresql 0
%define sqlite 0
%define gconsole 0
%define wxconsole 0
%endif
%{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
%{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
BuildRequires: gcc, gcc-c++, make, autoconf
BuildRequires: ncurses-devel, perl
BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
BuildRequires: openssl-devel
%if %{python}
BuildRequires: python, python-devel
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
%endif
%if %{gconsole}
BuildRequires: pkgconfig, pango-devel, atk-devel
%endif
# Rh qt4 packages don't have a provide for, guess what, qt!
# still broken in fc8, ok in fc9
# so fix for broken rh
%define broken_rh 0
%if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
%define broken_rh 1
%endif
%if %{bat} && ! %{broken_rh}
BuildRequires: qt-devel >= 4.2
%endif
%if %{bat} && %{broken_rh}
BuildRequires: qt4-devel >= 4.2
%endif
%if %{rh7}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.2
%endif
%if %{su9}
BuildRequires: termcap
BuildRequires: glibc-devel >= 2.3
%endif
%if %{su9} && %{gconsole}
BuildRequires: libgnome >= 2.0
BuildRequires: gtk2-devel >= 2.0
BuildRequires: libgnomeui-devel >= 2.0
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.0
BuildRequires: libbonobo-devel >= 2.0
BuildRequires: libbonoboui-devel >= 2.0
BuildRequires: bonobo-activation-devel
BuildRequires: gconf2-devel
BuildRequires: linc-devel
BuildRequires: freetype2-devel
%endif
%if %{su10}
BuildRequires: termcap
BuildRequires: glibc-devel >= 2.3
%endif
%if %{su10} && %{gconsole}
BuildRequires: libgnome >= 2.12
BuildRequires: gtk2-devel >= 2.8
BuildRequires: libgnomeui-devel >= 2.12
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.10
BuildRequires: libbonoboui-devel >= 2.10
BuildRequires: bonobo-activation-devel
BuildRequires: gconf2-devel
BuildRequires: freetype2-devel
BuildRequires: cairo-devel
BuildRequires: fontconfig-devel >= 2.3
BuildRequires: gnome-vfs2-devel >= 2.12
BuildRequires: libpng-devel
%endif
%if %{su102}
BuildRequires: termcap
BuildRequires: glibc-devel >= 2.5
%endif
%if %{su102} && %{gconsole}
BuildRequires: libgnome >= 2.16
BuildRequires: gtk2-devel >= 2.10
BuildRequires: libgnomeui-devel >= 2.16
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.16
BuildRequires: libbonoboui-devel >= 2.16
BuildRequires: bonobo-activation-devel
BuildRequires: gconf2-devel
BuildRequires: freetype2-devel
BuildRequires: cairo-devel
BuildRequires: fontconfig-devel >= 2.4
BuildRequires: gnome-vfs2-devel >= 2.16
BuildRequires: libpng-devel
%endif
%if %{su103}
BuildRequires: termcap
BuildRequires: glibc-devel >= 2.6
%endif
%if %{su103} && %{gconsole}
BuildRequires: libgnome >= 2.20
BuildRequires: gtk2-devel >= 2.12
BuildRequires: libgnomeui-devel >= 2.20
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.20
BuildRequires: libbonoboui-devel >= 2.20
BuildRequires: bonobo-activation-devel
BuildRequires: gconf2-devel
BuildRequires: freetype2-devel
BuildRequires: cairo-devel
BuildRequires: fontconfig-devel >= 2.4
BuildRequires: gnome-vfs2-devel >= 2.20
BuildRequires: libpng-devel
%endif
%if %{su110}
BuildRequires: termcap
BuildRequires: glibc-devel >= 2.8
%endif
%if %{su110} && %{gconsole}
BuildRequires: libgnome >= 2.22
BuildRequires: gtk2-devel >= 2.12
BuildRequires: libgnomeui-devel >= 2.22
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.22
BuildRequires: libbonoboui-devel >= 2.22
BuildRequires: bonobo-activation-devel
BuildRequires: gconf2-devel
BuildRequires: freetype2-devel
BuildRequires: cairo-devel
BuildRequires: fontconfig-devel >= 2.4
BuildRequires: gnome-vfs2-devel >= 2.22
BuildRequires: libpng-devel
%endif
%if %{mdk}
BuildRequires: libtermcap-devel
BuildRequires: libstdc++-static-devel
BuildRequires: glibc-static-devel
BuildRequires: glibc-devel >= 2.3
%endif
%if %{mdk} && !%{mdv} && %{gconsole}
BuildRequires: gtk2-devel >= 2.0
BuildRequires: libgnomeui2-devel >= 2.0
BuildRequires: libORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.0
BuildRequires: libbonobo2_0-devel
BuildRequires: libbonoboui2_0-devel
BuildRequires: libbonobo-activation-devel
BuildRequires: libGConf2-devel
BuildRequires: freetype2-devel
%endif
%if %{mdv} && %{gconsole}
BuildRequires: gtk2-devel >= 2.8
BuildRequires: libgnomeui2-devel >= 2.10
BuildRequires: libORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo2_0-devel
BuildRequires: libbonoboui2_0-devel
BuildRequires: libbonobo-activation-devel
BuildRequires: libGConf2-devel
BuildRequires: freetype2-devel
%endif
%if %{fc3}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.3
%endif
%if %{fc3} && %{gconsole}
BuildRequires: gtk2-devel >= 2.4
BuildRequires: libgnomeui-devel >= 2.8
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.8
BuildRequires: libbonoboui-devel >= 2.8
BuildRequires: bonobo-activation-devel
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc4}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.3
%endif
%if %{fc4} && %{gconsole}
BuildRequires: gtk2-devel >= 2.6
BuildRequires: libgnomeui-devel >= 2.10
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.8
BuildRequires: libbonoboui-devel >= 2.8
BuildRequires: bonobo-activation-devel
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc5}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.4
%endif
%if %{fc5} && %{gconsole}
BuildRequires: gtk2-devel >= 2.8
BuildRequires: libgnomeui-devel >= 2.14
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.14
BuildRequires: libbonoboui-devel >= 2.14
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc6}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.5
%endif
%if %{fc6} && %{gconsole}
BuildRequires: gtk2-devel >= 2.10
BuildRequires: libgnomeui-devel >= 2.16
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.16
BuildRequires: libbonoboui-devel >= 2.16
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc7}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.5
%endif
%if %{fc7} && %{gconsole}
BuildRequires: gtk2-devel >= 2.10
BuildRequires: libgnomeui-devel >= 2.18
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.18
BuildRequires: libbonoboui-devel >= 2.18
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc8}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.7
%endif
%if %{fc8} && %{gconsole}
BuildRequires: gtk2-devel >= 2.12
BuildRequires: libgnomeui-devel >= 2.20
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.20
BuildRequires: libbonoboui-devel >= 2.20
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if %{fc9}
BuildRequires: glibc-devel >= 2.8
BuildRequires: zlib-static
%endif
%if %{fc9} && %{gconsole}
BuildRequires: gtk2-devel >= 2.12
BuildRequires: libgnomeui-devel >= 2.22
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.3
BuildRequires: libbonobo-devel >= 2.22
BuildRequires: libbonoboui-devel >= 2.22
BuildRequires: GConf2-devel
BuildRequires: freetype-devel
%endif
%if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
BuildRequires: libtermcap-devel
BuildRequires: glibc-devel >= 2.3
%endif
%if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
BuildRequires: gtk2-devel >= 2.0
BuildRequires: libgnomeui-devel >= 2.0
BuildRequires: ORBit2-devel
BuildRequires: libart_lgpl-devel >= 2.0
BuildRequires: libbonobo-devel >= 2.0
BuildRequires: libbonoboui-devel >= 2.0
BuildRequires: bonobo-activation-devel
BuildRequires: GConf2-devel
BuildRequires: linc-devel
BuildRequires: freetype-devel
%endif
%if %{mysql} && ! %{mysql4} && ! %{mysql5}
BuildRequires: mysql-devel >= 3.23
%endif
%if %{mysql} && %{mysql4}
BuildRequires: mysql-devel >= 4.0
%endif
%if %{mysql} && %{mysql5}
BuildRequires: mysql-devel >= 5.0
%endif
%if %{postgresql} && %{wb3}
BuildRequires: rh-postgresql-devel >= 7
%endif
%if %{postgresql} && ! %{wb3}
BuildRequires: postgresql-devel >= 7
%endif
%if %{wxconsole}
BuildRequires: wxGTK-devel >= 2.6
%endif
%description
%{blurb}
%{blurb2}
%{blurb3}
%{blurb4}
%{blurb5}
%{blurb6}
%{blurb7}
%{blurb8}
%if %{mysql}
%package mysql
%endif
%if %{sqlite}
%package sqlite
%endif
%if %{postgresql}
%package postgresql
%endif
Summary: Bacula - The Network Backup Solution
Group: System Environment/Daemons
Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
Conflicts: bacula-client
Obsoletes: bacula-rescue
%if %{su9} || %{su10} || %{su102} || %{su103} || %{su110}
Conflicts: bacula
%endif
Requires: ncurses, libstdc++, zlib, openssl, mtx
%if %{rh7}
Requires: glibc >= 2.2
Requires: libtermcap
%endif
%if %{su9} || %{su10}
Requires: glibc >= 2.3
Requires: termcap
%endif
%if %{su102}
Requires: glibc >= 2.5
Requires: termcap
%endif
%if %{su103}
Requires: glibc >= 2.6
Requires: termcap
%endif
%if %{su110}
Requires: glibc >= 2.8
Requires: termcap
%endif
%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
Requires: glibc >= 2.3
Requires: libtermcap
%endif
%if %{fc5}
Requires: glibc >= 2.4
Requires: libtermcap
%endif
%if %{fc6} || %{fc7}
Requires: glibc >= 2.5
Requires: libtermcap
%endif
%if %{fc8}
Requires: glibc >= 2.7
Requires: libtermcap
%endif
%if %{fc9}
Requires: glibc >= 2.8
%endif
%if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
Requires: mysql >= 3.23
Requires: mysql-server >= 3.23
%endif
%if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
Requires: mysql >= 4.0
Requires: mysql-server >= 4.0
%endif
%if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{mdk} && %{mysql5}
Requires: mysql >= 5.0
Requires: mysql-server >= 5.0
%endif
%if %{mysql} && %{su9} && ! %{mysql4}
Requires: mysql >= 3.23
Requires: mysql-client >= 3.23
%endif
%if %{mysql} && %{su9} && %{mysql4}
Requires: mysql >= 4.0
Requires: mysql-client >= 4.0
%endif
%if %{mysql} && %{su10} && %{mysql4}
Requires: mysql >= 4.0
Requires: mysql-client >= 4.0
%endif
%if %{mysql} && %{su10} && %{mysql5}
Requires: mysql >= 5.0
Requires: mysql-client >= 5.0
%endif
%if %{mysql} && %{su102} && %{mysql5}
Requires: mysql >= 5.0
Requires: mysql-client >= 5.0
%endif
%if %{mysql} && %{su103} && %{mysql5}
Requires: mysql >= 5.0
Requires: mysql-client >= 5.0
%endif
%if %{mysql} && %{su110} && %{mysql5}
Requires: mysql >= 5.0
Requires: mysql-client >= 5.0
%endif
%if %{mysql} && %{mdk} && ! %{mysql4}
Requires: mysql >= 3.23
Requires: mysql-client >= 3.23
%endif
%if %{mysql} && %{mdk} && %{mysql4}
Requires: mysql >= 4.0
Requires: mysql-client >= 4.0
%endif
%if %{postgresql} && %{wb3}
Requires: rh-postgresql >= 7
Requires: rh-postgresql-server >= 7
%endif
%if %{postgresql} && ! %{wb3}
Requires: postgresql >= 7
Requires: postgresql-server >= 7
%endif
%if %{mysql}
%description mysql
%endif
%if %{sqlite}
%description sqlite
%endif
%if %{postgresql}
%description postgresql
%endif
%if %{python}
Requires: python >= %{pyver}
%endif
%{blurb}
%{blurb2}
%{blurb3}
%{blurb4}
%{blurb5}
%{blurb6}
%{blurb7}
%{blurb8}
%if %{mysql}
This build requires MySQL to be installed separately as the catalog database.
%endif
%if %{postgresql}
This build requires PostgreSQL to be installed separately as the catalog database.
%endif
%if %{sqlite}
This build incorporates sqlite3 as the catalog database, statically compiled.
%endif
%if %{python}
This build includes python scripting support.
%endif
%if ! %{client_only} && %{mtx}
%package mtx
Summary: Bacula - The Network Backup Solution
Group: System Environment/Daemons
Provides: mtx
%description mtx
This is Bacula's version of mtx tape utilities for Linux distributions that
do not provide their own mtx package
%endif
%package client
Summary: Bacula - The Network Backup Solution
Group: System Environment/Daemons
Provides: bacula-fd
Conflicts: bacula-mysql
Conflicts: bacula-sqlite
Conflicts: bacula-postgresql
Obsoletes: bacula-rescue
%if %{su9} || %{su10} || %{su102} || %{su103} || %{su110}
Provides: bacula
%endif
Requires: libstdc++, zlib, openssl
%if %{rh7}
Requires: glibc >= 2.2
Requires: libtermcap
%endif
%if %{su9} || %{su10}
Requires: glibc >= 2.3
Requires: termcap
%endif
%if %{su102}
Requires: glibc >= 2.5
Requires: termcap
%endif
%if %{su103}
Requires: glibc >= 2.6
Requires: termcap
%endif
%if %{su110}
Requires: glibc >= 2.8
Requires: termcap
%endif
%if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
Requires: glibc >= 2.3
Requires: libtermcap
%endif
%if %{fc5}
Requires: glibc >= 2.4
Requires: libtermcap
%endif
%if %{fc6} || %{fc7}
Requires: glibc >= 2.5
Requires: libtermcap
%endif
%if %{fc8}
Requires: glibc >= 2.7
Requires: libtermcap
%endif
%if %{fc9}
Requires: glibc >= 2.8
%endif
%if %{python}
Requires: python >= %{pyver}
%endif
%description client
%{blurb}
%{blurb2}
%{blurb3}
%{blurb4}
%{blurb5}
%{blurb6}
%{blurb7}
%{blurb8}
This is the File daemon (Client) only package. It includes the command line
console program.
%if %{python}
This build includes python scripting support.
%endif
%if ! %{client_only}
%package updatedb
Summary: Bacula - The Network Backup Solution
Group: System Environment/Daemons
%description updatedb
%{blurb}
%{blurb2}
%{blurb3}
%{blurb4}
%{blurb5}
%{blurb6}
%{blurb7}
%{blurb8}
This package installs scripts for updating older versions of the bacula
database.
%endif
%if %{gconsole}
%package gconsole
Summary: Bacula - The Network Backup Solution
Group: System Environment/Daemons
Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
%endif
%if %{gconsole} && %{su9}
Requires: gtk2 >= 2.0
Requires: libgnome >= 2.0
Requires: libgnomeui >= 2.0
Requires: glibc >= 2.3
Requires: ORBit2
Requires: libart_lgpl >= 2.0
Requires: libbonobo >= 2.0
Requires: libbonoboui >= 2.0
Requires: bonobo-activation
Requires: gconf2
Requires: linc
Requires: freetype2
%endif
%if %{gconsole} && %{su10}
Requires: gtk2 >= 2.8
Requires: libgnome >= 2.12
Requires: libgnomeui >= 2.12
Requires: glibc >= 2.3
Requires: ORBit2
Requires: libart_lgpl >= 2.3
Requires: libbonobo >= 2.10
Requires: libbonoboui >= 2.10
Requires: bonobo-activation
Requires: gconf2
Requires: freetype2
Requires: cairo
Requires: fontconfig >= 2.3
Requires: gnome-vfs2 >= 2.12
Requires: libpng
%endif
%if %{gconsole} && %{su102}
Requires: gtk2 >= 2.10
Requires: libgnome >= 2.16
Requires: libgnomeui >= 2.16
Requires: glibc >= 2.5
Requires: ORBit2
Requires: libart_lgpl >= 2.3
Requires: libbonobo >= 2.16
Requires: libbonoboui >= 2.16
Requires: bonobo-activation
Requires: gconf2
Requires: freetype2
Requires: cairo
Requires: fontconfig >= 2.4
Requires: gnome-vfs2 >= 2.16
Requires: libpng
%endif
%if %{gconsole} && %{su103}
Requires: gtk2 >= 2.12
Requires: libgnome >= 2.20
Requires: libgnomeui >= 2.20
Requires: glibc >= 2.6
Requires: ORBit2
Requires: libart_lgpl >= 2.3
Requires: libbonobo >= 2.20
Requires: libbonoboui >= 2.20
Requires: bonobo-activation
Requires: gconf2
Requires: freetype2
Requires: cairo
Requires: fontconfig >= 2.4
Requires: gnome-vfs2 >= 2.20
Requires: libpng
%endif
%if %{gconsole} && %{su110}
Requires: gtk2 >= 2.12
Requires: libgnome >= 2.22
Requires: libgnomeui >= 2.22
Requires: glibc >= 2.8
Requires: ORBit2
Requires: libart_lgpl >= 2.3
Requires: libbonobo >= 2.22
Requires: libbonoboui >= 2.22
Requires: bonobo-activation
Requires: gconf2
Requires: freetype2
Requires: cairo
Requires: fontconfig >= 2.4
Requires: gnome-vfs2 >= 2.22
Requires: libpng
%endif
%if %{gconsole} && %{mdk} && !%{mdv}
Requires: gtk2 >= 2.0
Requires: libgnomeui2
Requires: glibc >= 2.3
Requires: ORBit2
Requires: libart_lgpl >= 2.0
Requires: libbonobo >= 2.0
Requires: libbonoboui >= 2.0
Requires: GConf2
Requires: freetype2
%endif
%if %{gconsole} && %{mdv}
Requires: gtk2 >= 2.8
Requires: libgnomeui2
Requires: glibc >= 2.3
Requires: ORBit2
Requires: libart_lgpl >= 2.3