Пакет amanda: Specfile

  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
%def_disable static
%def_disable manbuild

Name: amanda
Version: 2.6.0.2
Release: alt1
Packager: Grigory Batalov <bga@altlinux.ru>

Summary: The server side of the AMANDA tape backup system
Summary(ru_RU.KOI8-R): \xf3\xc5\xd2\xd7\xc5\xd2\xce\xc1\xd1 \xde\xc1\xd3\xd4\xd8 \xd3\xc9\xd3\xd4\xc5\xcd\xd9 \xd2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc7\xcf \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1 AMANDA
License: BSD
Group: Archiving/Backup
Url: http://www.amanda.org

Source0: http://download.sourceforge.net/amanda/%name-%version.tar
Source1: amanda.crontab
Source3: amanda.conf
Source4: disklist
Source5: amanda-xinetd
Source6: amandaidx-xinetd
Source7: amidxtape-xinetd
Source8: amandahosts

Patch0: %name-%version-alt.patch

# Added on Tue Nov 18 2008
#BuildRequires: dump flex gcc-c++ glib2-devel libcurl-devel libncurses-devel libreadline-devel ncompress openssh-clients packages-info-i18n-common perl-devel samba-client subversion

BuildRequires: glib2-devel
BuildRequires: perl-devel
BuildRequires: libtinfo-devel libreadline-devel
BuildRequires: flex

%if_enabled manbuild
BuildRequires: xsltproc docbook-style-xsl docbook-dtds
%endif

Requires: dump xfsdump gzip gnuplot mailx mt-st samba-client %name-common = %version
# amdevcheck requires:
Requires: perl-Math-BigInt

# find self-provided libraries
%add_findprov_lib_path %_libdir/%name

# can't trace Perl modules
%add_findreq_skiplist %perl_vendor_archlib/*
#%%add_findreq_skiplist %perl_vendor_autolib/*
%add_findreq_skiplist %_sbindir/amcheckdump
%add_findreq_skiplist %_sbindir/amdevcheck

%description
The %name package should be installed on the AMANDA server, the machine
attached to the device (such as a tape drive) where backups will be written.
You will also need to install the %name-common package to the AMANDA server.
And, if the server is also to be backed up, the server also needs to have
the %name-client package installed.

%description -l ru_RU.KOI8-R
\xf0\xc1\xcb\xc5\xd4 %name \xc4\xcf\xcc\xd6\xc5\xce \xc2\xd9\xd4\xd8 \xd5\xd3\xd4\xc1\xce\xcf\xd7\xcc\xc5\xce \xce\xc1 \xd3\xc5\xd2\xd7\xc5\xd2 AMANDA, \xcd\xc1\xdb\xc9\xce\xd5 \xcb \xcb\xcf\xd4\xcf\xd2\xcf\xca
\xd0\xcf\xc4\xcb\xcc\xc0\xde\xc5\xce\xcf \xd5\xd3\xd4\xd2\xcf\xca\xd3\xd4\xd7\xcf \xd2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc7\xcf \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1 (\xce\xc1\xd0\xd2\xc9\xcd\xc5\xd2, \xce\xc1\xcb\xcf\xd0\xc9\xd4\xc5\xcc\xd8
\xce\xc1 \xcc\xc5\xce\xd4\xc5). \xf7\xc1\xcd \xd4\xc1\xcb\xd6\xc5 \xd0\xcf\xd4\xd2\xc5\xc2\xd5\xc5\xd4\xd3\xd1 \xd5\xd3\xd4\xc1\xce\xcf\xd7\xc9\xd4\xd8 \xd0\xc1\xcb\xc5\xd4 %name-common.
\xeb\xd2\xcf\xcd\xc5 \xd4\xcf\xc7\xcf, \xc5\xd3\xcc\xc9 \xd3\xc5\xd2\xd7\xc5\xd2 \xd4\xc1\xcb\xd6\xc5 \xce\xd5\xd6\xce\xcf \xc1\xd2\xc8\xc9\xd7\xc9\xd2\xcf\xd7\xc1\xd4\xd8, \xd5\xd3\xd4\xc1\xce\xcf\xd7\xc9\xd4\xc5 \xce\xc1 \xce\xc5\xc7\xcf
\xd0\xc1\xcb\xc5\xd4 %name-client.

%package common
Summary: A network-capable tape backup solution
Summary(ru_RU.KOI8-R): \xf2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc5 \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xc5 \xce\xc1 \xcc\xc5\xce\xd4\xd5 \xd3 \xd0\xcf\xc4\xc4\xc5\xd2\xd6\xcb\xcf\xca \xd3\xc5\xd4\xc9
Group: Archiving/Backup
Requires(pre): shadow-utils
Requires: tar

%description common
AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
backup system that allows the administrator of a LAN to set up a single
master backup server to back up multiple hosts to a single large capacity
tape drive.  AMANDA uses native dump and/or GNU tar facilities and can
back up a large number of workstations running multiple versions of Unix.
Newer versions of AMANDA (including this version) can use SAMBA to back
up Microsoft(TM) Windows95/NT hosts.  The %name package contains the
core AMANDA programs and will need to be installed on both AMANDA clients
and AMANDA servers.  Note that you will have to install the amanda-client
and amanda-server packages as well.

%description -l ru_RU.KOI8-R common
AMANDA - the Advanced Maryland Automatic Network Disk Archiver,
\xf0\xc5\xd2\xc5\xc4\xcf\xd7\xcf\xca \xc1\xd7\xd4\xcf\xcd\xc1\xd4\xc9\xde\xc5\xd3\xcb\xc9\xca \xc1\xd2\xc8\xc9\xd7\xc1\xd4\xcf\xd2 \xd3\xc5\xd4\xc5\xd7\xd9\xc8 \xc4\xc9\xd3\xcb\xcf\xd7 \xc9\xda \xed\xdc\xd2\xc9\xcc\xc5\xce\xc4\xc1 - \xdc\xd4\xcf
\xd3\xc9\xd3\xd4\xc5\xcd\xc1 \xd2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc7\xcf \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1, \xd0\xcf\xda\xd7\xcf\xcc\xd1\xc0\xdd\xc1\xd1 \xc1\xc4\xcd\xc9\xce\xc9\xd3\xd4\xd2\xc1\xd4\xcf\xd2\xd5 \xd3\xc5\xd4\xc9
\xc9\xd3\xd0\xcf\xcc\xd8\xda\xcf\xd7\xc1\xd4\xd8 \xcf\xc4\xc9\xce \xc1\xd2\xc8\xc9\xd7\xce\xd9\xca \xd3\xc5\xd2\xd7\xc5\xd2 \xc4\xcc\xd1 \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1 \xc4\xc1\xce\xce\xd9\xc8 \xce\xc1 \xcc\xc5\xce\xd4\xd5
\xd3 \xce\xc5\xd3\xcb\xcf\xcc\xd8\xcb\xc9\xc8 \xcd\xc1\xdb\xc9\xce. AMANDA \xc2\xc1\xda\xc9\xd2\xd5\xc5\xd4\xd3\xd1 \xce\xc1 \xd7\xcf\xda\xcd\xcf\xd6\xce\xcf\xd3\xd4\xd1\xc8 dump \xc9/\xc9\xcc\xc9 GNU tar
\xc9 \xcd\xcf\xd6\xc5\xd4 \xd2\xc1\xc2\xcf\xd4\xc1\xd4\xd8 \xd3 \xc2\xcf\xcc\xd8\xdb\xc9\xcd \xde\xc9\xd3\xcc\xcf\xcd \xd2\xc1\xc2\xcf\xde\xc9\xc8 \xd3\xd4\xc1\xce\xc3\xc9\xca \xc9 \xd2\xc1\xda\xcc\xc9\xde\xce\xd9\xcd\xc9 \xd7\xc5\xd2\xd3\xc9\xd1\xcd\xc9
Unix. \xf0\xcf\xd3\xcc\xc5\xc4\xce\xc9\xc5 \xd7\xc5\xd2\xd3\xc9\xc9 AMANDA \xd4\xc1\xcb\xd6\xc5 \xcd\xcf\xc7\xd5\xd4 \xd2\xc1\xc2\xcf\xd4\xc1\xd4\xd8 \xd3 Microsoft(TM)
Windows95/NT \xd0\xd2\xc9 \xd0\xcf\xcd\xcf\xdd\xc9 SAMBA. \xf0\xc1\xcb\xc5\xd4 %name \xd3\xcf\xc4\xc5\xd2\xd6\xc9\xd4 \xcb\xcc\xc0\xde\xc5\xd7\xd9\xc5 \xcb\xcf\xcd\xd0\xcf\xce\xc5\xce\xd4\xd9
AMANDA \xc9 \xc4\xcf\xcc\xd6\xc5\xce \xc2\xd9\xd4\xd8 \xd5\xd3\xd4\xc1\xce\xcf\xd7\xcc\xc5\xce \xcb\xc1\xcb \xce\xc1 \xcd\xc1\xdb\xc9\xce\xd9-\xcb\xcc\xc9\xc5\xce\xd4\xd9, \xd4\xc1\xcb \xc9 \xce\xc1 \xd3\xc5\xd2\xd7\xc5\xd2.

%package client
Summary: The client component of the AMANDA tape backup system
Summary(ru_RU.KOI8-R): \xeb\xcc\xc9\xc5\xce\xd4\xd3\xcb\xc1\xd1 \xde\xc1\xd3\xd4\xd8 \xd3\xc9\xd3\xd4\xc5\xcd\xd9 \xd2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc7\xcf \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xd1 AMANDA
Group: Archiving/Backup
Requires: %name-common = %version

%description client
The %name-client package should be installed on any machine that will
be backed up by AMANDA (including the server if it also needs to be
backed up).  You will also need to install the %name package to each
AMANDA client.

%description -l ru_RU.KOI8-R client
\xf0\xc1\xcb\xc5\xd4 %name-client \xd0\xd2\xc5\xc4\xce\xc1\xda\xce\xc1\xde\xc5\xce \xc4\xcc\xd1 \xcd\xc1\xdb\xc9\xce, \xd3 \xcb\xcf\xd4\xcf\xd2\xd9\xc8 \xc2\xd5\xc4\xc5\xd4 \xcf\xd3\xd5\xdd\xc5\xd3\xd4\xd7\xcc\xd1\xd4\xd8\xd3\xd1
\xd2\xc5\xda\xc5\xd2\xd7\xce\xcf\xc5 \xcb\xcf\xd0\xc9\xd2\xcf\xd7\xc1\xce\xc9\xc5 (\xd7\xcb\xcc\xc0\xde\xc1\xd1 \xd3\xc5\xd2\xd7\xc5\xd2, \xc5\xd3\xcc\xc9 \xc5\xc7\xcf \xd4\xcf\xd6\xc5 \xce\xd5\xd6\xce\xcf \xc1\xd2\xc8\xc9\xd7\xc9\xd2\xcf\xd7\xc1\xd4\xd8).
\xf7\xc1\xcd \xd4\xc1\xcb\xd6\xc5 \xd0\xcf\xd4\xd2\xc5\xc2\xd5\xc5\xd4\xd3\xd1 \xd5\xd3\xd4\xc1\xce\xcf\xd7\xc9\xd4\xd8 \xd0\xc1\xcb\xc5\xd4 %name.

%package devel
Summary: Development libraries of AMANDA
Summary(ru_RU.KOI8-R): \xe2\xc9\xc2\xcc\xc9\xcf\xd4\xc5\xcb\xc9 AMANDA \xc4\xcc\xd1 \xd2\xc1\xda\xd2\xc1\xc2\xcf\xd4\xde\xc9\xcb\xcf\xd7
Group: Development/Other
Requires: %name-common = %version %name-client = %version %name = %version

%description devel
The %name-devel package should be installed on any machine that will
be used to develop amanda applications.

%description -l ru_RU.KOI8-R devel
\xf0\xc1\xcb\xc5\xd4 %name-devel \xd0\xd2\xc5\xc4\xce\xc1\xda\xce\xc1\xde\xc5\xce \xc4\xcc\xd1 \xd2\xc1\xda\xd2\xc1\xc2\xcf\xd4\xcb\xc9 \xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xca \xce\xc1 \xcf\xd3\xce\xcf\xd7\xc5 AMANDA.

%package devel-static
Summary: Static development libraries of AMANDA
Summary(ru_RU.KOI8-R): \xf3\xd4\xc1\xd4\xc9\xde\xc5\xd3\xcb\xc9\xc5 \xc2\xc9\xc2\xcc\xc9\xcf\xd4\xc5\xcb\xc9 AMANDA \xc4\xcc\xd1 \xd2\xc1\xda\xd2\xc1\xc2\xcf\xd4\xde\xc9\xcb\xcf\xd7
Group: Development/Other
Requires: %name-devel = %version

%description devel-static
The %name-devel-static package should be installed on any machine
that will be used to develop statically linked amanda applications.

%description -l ru_RU.KOI8-R devel-static
\xf0\xc1\xcb\xc5\xd4 %name-devel-static \xd0\xd2\xc5\xc4\xce\xc1\xda\xce\xc1\xde\xc5\xce \xc4\xcc\xd1 \xd3\xc2\xcf\xd2\xcb\xc9 \xd3\xd4\xc1\xd4\xc9\xde\xc5\xd3\xcb\xc9 \xd3\xcc\xc9\xce\xcb\xcf\xd7\xc1\xce\xce\xd9\xc8
\xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xca \xce\xc1 \xcf\xd3\xce\xcf\xd7\xc5 AMANDA.

%prep
%setup -q
%patch0 -p1
gzip -c ChangeLog > ChangeLog.gz

# re-apply this one when the patch is updated,
# there's too many rejects as is.
#%patch1 -p1 -b .append

find . -type f -name '*.[hc]' -print0 | xargs subst 's,<varargs.h>,<stdarg.h>,g'

%build
AUTOPOINT=true %autoreconf
export XFSDUMP=/sbin/xfsdump
export XFSRESTORE=/sbin/xfsrestore
export SAMBA_CLIENT=%_bindir/smbclient
export GNUPLOT=%_bindir/gnuplot
export MT=/bin/mt
export MAILER=/bin/mail
export DUMP=/sbin/dump
export RESTORE=/sbin/restore
%configure \
    --enable-shared \
    --with-index-server=localhost \
    --with-tape-server=localhost \
    --with-gnuplot=/usr/bin/gnuplot \
    --with-star=/usr/bin/star \
    --with-gnutar=/bin/tar \
    --with-gnutar-listdir=%_localstatedir/amanda/gnutar-lists \
    --with-smbclient=%_bindir/smbclient \
    --with-amlibexecdir=%_libdir/amanda \
    --with-amperldir=%perl_vendor_archlib  \
    --with-db=text \
    --with-amandahosts \
    --with-user=amanda \
    --with-group=disk \
    --with-debugging \
    --with-fqdn \
    --with-bsd-security \
    --with-bsdtcp-security \
    --with-bsdudp-security \
    --with-ssh-security \
    --with-udpportrange=700,740 \
    --with-tcpportrange=11000,11040 \
    --with-low-tcpportrange=700,710 \
    --with-maxtapeblocksize=512 \
    --with-assertions \
    --disable-installperms \
    --program-transform-name="" \
    %{subst_enable static} \
    %{?_enable_manbuild:--enable-manpage-build} \
    %{!?_enable_manbuild:--disable-manpage-build}
%make_build

%install
%make_install install DESTDIR=%buildroot

mkdir -p %buildroot%_sysconfdir/xinetd.d
install -m 640 %SOURCE5 %buildroot%_sysconfdir/xinetd.d/amanda
install -m 640 %SOURCE6 %buildroot%_sysconfdir/xinetd.d/amandaidx
install -m 640 %SOURCE7 %buildroot%_sysconfdir/xinetd.d/amidxtape
sed -i -e 's,@LIBDIR@,%_libdir,g' \
	%buildroot%_sysconfdir/xinetd.d/{amanda,amandaidx,amidxtape}

mkdir -p %buildroot%_localstatedir/amanda
install -m 660 %SOURCE8 %buildroot%_localstatedir/amanda/.amandahosts

mkdir -p examples
cp -R example/* examples
rm -f examples/Makefile*
rm -f examples/config.site

mkdir -p %buildroot%_sysconfdir/amanda/DailySet1
install -m 644 %SOURCE1 %buildroot%_sysconfdir/amanda/crontab.sample
install -m 644 %SOURCE3 %buildroot%_sysconfdir/amanda/DailySet1/amanda.conf
install -m 644 %SOURCE4 %buildroot%_sysconfdir/amanda/DailySet1/disklist
touch %buildroot%_sysconfdir/amandates

mkdir -p %buildroot%_localstatedir/amanda/gnutar-lists
mkdir -p %buildroot%_localstatedir/amanda/DailySet1/index

# remove installed docs which we let RPM handle to install
rm -rf %buildroot%_datadir/amanda

# Control settings
mkdir -p %buildroot%_sysconfdir/control.d/facilities
for i in %_libdir/amanda/dumper %_libdir/amanda/planner %_sbindir/amcheck \
         %_libdir/amanda/calcsize %_libdir/amanda/killpgrp \
	 %_libdir/amanda/rundump %_libdir/amanda/runtar; do
   PROGNAME=`basename $i`
   cat > %buildroot%_sysconfdir/control.d/facilities/$PROGNAME << EOF
#!/bin/sh

. /etc/control.d/functions

BINARY=$i

new_fmode public 4710 root disk
new_fmode restricted 700 root root

control_fmode "\$BINARY" "\$*" || exit 1
EOF
done
chmod 0755 %buildroot%_sysconfdir/control.d/facilities/*

# remove non-packaged files
find %buildroot -type f -name '*.la' -print0 | \
	xargs -r0 rm -f

### amanda ###
%pre
[ $1 -eq 1 ] || /usr/sbin/control-dump dumper planner amcheck

%post
%post_ldconfig
[ $1 -eq 1 ] || /usr/sbin/control-restore dumper planner amcheck

%postun -p %postun_ldconfig

### amanda-common ###
%pre common
/usr/sbin/useradd -M -n -g disk -r -d %_localstatedir/amanda -s /dev/null \
	-c "system user for %name" amanda >/dev/null 2>&1 || :

%post common -p %post_ldconfig

%postun common -p %postun_ldconfig

### amanda-client ###
%pre client
[ $1 -eq 1 ] || /usr/sbin/control-dump calcsize killpgrp rundump runtar

%post client
%post_ldconfig
[ $1 -eq 1 ] || /usr/sbin/control-restore calcsize killpgrp rundump runtar

%postun client -p %postun_ldconfig
###

%files common
%_libdir/amanda/libamanda-*.so
%_libdir/amanda/libamandad-*.so
%_libdir/amanda/libamtape-*.so
%_libdir/amanda/libamglue.so
%_libdir/amanda/amanda-sh-lib.sh
%attr(-,amanda,disk) %dir %_localstatedir/amanda/
%attr(-,amanda,disk) %dir %_sysconfdir/amanda/
%dir %_libdir/amanda/
%attr(600,amanda,disk) %config(noreplace) %_localstatedir/amanda/.amandahosts
%attr(-,amanda,disk) %config(noreplace) %_sysconfdir/amandates
%perl_vendor_archlib/Amanda
%perl_vendor_autolib/Amanda

%files
%doc examples COPYRIGHT* NEWS README ChangeLog.gz
%attr(4710,root,disk) %_libdir/amanda/dumper
%attr(4710,root,disk) %_libdir/amanda/planner
%attr(4710,root,disk) %_sbindir/amcheck
%config %_sysconfdir/control.d/facilities/dumper
%config %_sysconfdir/control.d/facilities/planner
%config %_sysconfdir/control.d/facilities/amcheck
%_libdir/amanda/libamserver-*.so
%_libdir/amanda/librestore-*.so
%_libdir/amanda/libamdevice-*.so
%config(noreplace) %_sysconfdir/xinetd.d/amandaidx
%config(noreplace) %_sysconfdir/xinetd.d/amidxtape
%_libdir/amanda/amidxtaped
%_libdir/amanda/amindexd
%_libdir/amanda/amlogroll
%_sbindir/amrestore
%_libdir/amanda/amtrmidx
%_libdir/amanda/amtrmlog
%_libdir/amanda/driver
%_libdir/amanda/chunker
%_libdir/amanda/taper
%_libdir/amanda/amcleanupdisk
%_libdir/amanda/chg-iomega
%_libdir/amanda/chg-scsi
%_libdir/amanda/chg-manual
%_libdir/amanda/chg-multi
%_libdir/amanda/chg-mtx
%_libdir/amanda/chg-rth
%_libdir/amanda/chg-chs
%_libdir/amanda/chg-chio
%_libdir/amanda/chg-zd-mtx
%_libdir/amanda/chg-disk
%_libdir/amanda/chg-mcutil
%_libdir/amanda/chg-null
%_libdir/amanda/amcat.awk
%_libdir/amanda/amplot.awk
%_libdir/amanda/amplot.g
%_libdir/amanda/amplot.gp
%_libdir/amanda/chg-lib.sh
%_sbindir/amadmin
%_sbindir/amflush
%_sbindir/amgetconf
%_sbindir/amlabel
%_sbindir/amtape
%_sbindir/amreport
%_sbindir/amcheckdb
%_sbindir/amcleanup
%_sbindir/amdump
%_sbindir/amoverview
%_sbindir/amrmtape
%_sbindir/amtoc
%_sbindir/amverify
%_sbindir/amstatus
%_sbindir/amplot
%_sbindir/amdd
%_sbindir/ammt
%_sbindir/amverifyrun
%_sbindir/amtapetype
%_sbindir/amaespipe
%_sbindir/amcrypt*
%_sbindir/amfetchdump
%_sbindir/amaddclient
%_sbindir/amcheckdump
%_sbindir/amdevcheck
%_sbindir/amserverconfig
%_sbindir/amgpgcrypt

%attr(-,amanda,disk) %dir %_localstatedir/amanda/DailySet1/
%attr(-,amanda,disk) %dir %_localstatedir/amanda/DailySet1/index
%attr(-,amanda,disk) %dir %_sysconfdir/amanda/DailySet1
%attr(-,amanda,disk) %config(noreplace) %_sysconfdir/amanda/DailySet1/amanda.conf
%attr(-,amanda,disk) %config(noreplace) %_sysconfdir/amanda/crontab.sample
%attr(-,amanda,disk) %config(noreplace) %_sysconfdir/amanda/DailySet1/disklist
%_mandir/man8/amplot.8*
%_man8dir/amanda.8*
%_man8dir/amadmin.8*
%_man8dir/amcheck.8*
%_man8dir/amcheckdb.8*
%_man8dir/amcleanup.8*
%_man8dir/amdump.8*
%_man8dir/amflush.8*
%_man8dir/amlabel.8*
%_man8dir/amoverview.8*
%_man8dir/amrmtape.8*
%_man8dir/amtape.8*
%_man8dir/amtoc.8*
%_man8dir/amverify.8*
%_man8dir/amstatus.8*
%_man8dir/amreport.8*
%_man8dir/amdd.8*
%_man8dir/amgetconf.8*
%_man8dir/ammt.8*
%_man8dir/amverifyrun.8*
%_man8dir/amtapetype.8*
%_man8dir/amaespipe.8*
%_man8dir/amcrypt.8*
%_man8dir/amcrypt-ossl.8*
%_man8dir/amcrypt-ossl-asym.8*
%_man8dir/amfetchdump.8*
%_man8dir/amrestore.8*
%_man8dir/amcheckdump.8*
%_man5dir/amanda.conf.5*

%_man8dir/amcryptsimple.8*
%_man8dir/amdevcheck.8*
%_man8dir/amgpgcrypt.8*
%_man8dir/amserverconfig.8*
%_man8dir/amaddclient.8*


%files client
%config(noreplace) %_sysconfdir/xinetd.d/amanda

%attr(4710,root,disk) %_libdir/amanda/calcsize
%attr(4710,root,disk) %_libdir/amanda/killpgrp
%attr(4710,root,disk) %_libdir/amanda/rundump
%attr(4710,root,disk) %_libdir/amanda/runtar
%config %_sysconfdir/control.d/facilities/calcsize
%config %_sysconfdir/control.d/facilities/killpgrp
%config %_sysconfdir/control.d/facilities/rundump
%config %_sysconfdir/control.d/facilities/runtar

%_libdir/amanda/libamclient-*.so

%_libdir/amanda/amandad
#%_libdir/amanda/amqde
%_libdir/amanda/patch-system
%_libdir/amanda/selfcheck
%_libdir/amanda/sendbackup
%_libdir/amanda/sendsize
%_libdir/amanda/versionsuffix
%_libdir/amanda/chg-juke
%_libdir/amanda/chg-rait
%_libdir/amanda/noop
%_libdir/amanda/generic-dumper
%_libdir/amanda/amgtar

%_sbindir/amrecover
%_sbindir/amoldrecover

%attr(-,amanda,disk) %_localstatedir/amanda/gnutar-lists/

%_man8dir/amrecover.8*
%_man5dir/amanda-client.conf.5*

%files devel
%_libdir/amanda/libamanda.so
%_libdir/amanda/libamandad.so
%_libdir/amanda/libamtape.so
%_libdir/amanda/libamclient.so
%_libdir/amanda/libamserver.so
%_libdir/amanda/librestore.so
%_libdir/amanda/libamdevice.so

%if_enabled static
%files devel-static
%_libdir/amanda/libamanda.a
%_libdir/amanda/libamandad.a
%_libdir/amanda/libamtape.a
%_libdir/amanda/libamclient.a
%_libdir/amanda/libamserver.a
%_libdir/amanda/librestore.a
%_libdir/amanda/libamdevice.a
%endif

%changelog
* Fri Nov 21 2008 Grigory Batalov <bga@altlinux.ru> 2.6.0.2-alt1
- New upstream release (2.6.0p2).
- New utilities in server package:
  + amaddclient
  + amcheckdump
  + amdevcheck
  + amserverconfig
  + amgpgcrypt
- Amanda perl module in common package.

* Thu May 31 2007 Grigory Batalov <bga@altlinux.ru> 2.5.2-alt1
- New upstream release (2.5.2p1).

* Mon Apr 16 2007 Grigory Batalov <bga@altlinux.ru> 2.5.1-alt3
- Use %%_libdir in xinetd scripts.

* Fri Apr 06 2007 Grigory Batalov <bga@altlinux.ru> 2.5.1-alt2
- Remove ncompress from Requires.

* Sat Jan 20 2007 Grigory Batalov <bga@altlinux.ru> 2.5.1-alt1
- New upstream release (2.5.1p3).
- Link patch (-alt-libs) updated.
- Chown removal patch (-alt-nochown) updated.
- Ubuntu dump support patch (-mdk-ubuntu) added.
- New libs and manpages included.

* Tue Jun 20 2006 Grigory Batalov <bga@altlinux.ru> 2.5.0-alt2
- 2.5.0p2.
- Truncate build dependence list by specifying programs with absolute path.
- Make .amandahosts readable by owner only.

* Fri Apr 07 2006 Grigory Batalov <bga@altlinux.ru> 2.5.0-alt1.1
- Fix x86_64 build
  + remove xfsdump dependence
  + use %%_libdir instead of %%_libexecdir

* Wed Mar 29 2006 Grigory Batalov <bga@altlinux.ru> 2.5.0-alt1
- 2.5.0
- BSD-security is nesessary for building now
- Amqde is removed
- Use libtinfo instead of libcurses
- Specfile cleanup:
  + don't use built-in command aliases
  + quote percent sign (%%) in changelog

* Fri Dec 30 2005 ALT QA Team Robot <qa-robot@altlinux.org> 2.4.5-alt1.1
- Rebuilt with libreadline.so.5.

* Tue May 24 2005 Grigory Batalov <bga@altlinux.ru> 2.4.5-alt1
- 2.4.5

* Wed Mar 09 2005 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt8
- 2.4.4p4
- specfile clean up

* Mon Aug 23 2004 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt7
- amqde moved to client package

* Sun May 30 2004 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt6
- little patch against new gnuplot

* Mon May 17 2004 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt5
- amanda login shell changed to /dev/null
- devel-static build made conditional

* Wed Mar 10 2004 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt4.1
- libdb4.0-devel dependence removed

* Mon Jan 26 2004 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt4
- 2.4.4p2

* Wed Dec 17 2003 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt3
- .la files removed
- shmctl and shmdt calls corrected
- request-tape patch removed

* Fri Nov 14 2003 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt2
- 2.4.4p1

* Thu Aug 28 2003 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt1.1
- request subroutine renamed to request-tape

* Wed Aug 13 2003 Grigory Batalov <bga@altlinux.ru> 2.4.4-alt1
- built for ALT Linux

* Fri Mar 21 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.4.4-1mdk
- 2.4.4
- add missing files

* Sun Jan 26 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.4.3-1mdk
- 2.4.3
- bzip all sources
- use P0 from RH
- remove installed files
- add installed files
- fix no-prereq-on rpm-helper
- built without gdbm (use flatfile db)
- misc spec file fixes

* Mon Sep 16 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.4.2p2-6mdk
- s|//|/| for ~amanda (Oden Eriksson)
- Require mailx (Yura Gusev)
- Various Buildrequires

* Sun Sep 15 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.4.2p2-5mdk
- Actually use the pre script to create users, make it more like
  _pre_useradd (but not identical, since we need the group) (Oden Eriksson)
- Tape append patch (Brian Murrell), requires automake and autoconf be run.
- spec fixes for stuff inherited from rh
- Buildrequires flex

* Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 2.4.2p2-4mdk
- requires samba-client

* Sat Aug 17 2002 Buchan Milne <bgmilne@linux-mandrake.com> 2.4.2p2-3mdk
- Time to bite the bullet and put this in contrib (aka better rpmlint errors
  galore than no network backup software ;-)).

* Sun Jul 21 2002 Buchan Milne <bgmilne@cae.co.za> 2.4.2p2-2mdk
- Use %%_{pre,post}un_service xinetd
- pseudo-libify

* Mon Jul 30 2001 Buchan Milne <bgmilne@cae.co.za> 2.4.2p2-1mdk
- Mandrake package, added buildrequires and requires for
  libtermcap
- Fixed Tronds incorrect date (was 2002) below, rpm does
  not like time-warping packages.

* Wed Apr  4 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- 2.4.2p2 - fixes problems with amrecover (#26567)
- made config files noreplace
- don't build on IA64 right now, amanda doesn't like
  the dump there: It segfaults.

* Fri Mar 16 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- Add /usr/bin/smbclient to buildprereq (#31996), to
  avoid samba being built without such support

* Thu Feb 22 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- Use %%{version} in source URL, and thus actually use
  2.4.2p1 instead of 2.4.2 (doh! # 28759)
- add patch to handle bogus /dev/root entries (#28759)

* Fri Feb 16 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- 2.4.2p1 bugfix release
- move amandaixd and amidxtape to the server package (#28037)

* Wed Jan 31 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- move /etc/xinetd.d/amanda to the client subpackage (#25430)

* Tue Jan 30 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- don't have "chunksize -1" as the default, as it's no longer
  supported
- make it uid amanda, with home /var/lib/amada
  so programs can actually access it (#20510)
- make .amandahosts a config file (#18322)

* Tue Jan 23 2001 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- 2.4.2
- make the UDP service "wait" (#23047)

* Tue Oct 10 2000 Jeff Johnson <jbj@redhat.com>
- build with shared libraries.
- add amanda-devel package to contain static libraries.
- update to 2.4.2-19991216-beta1 (#16818).
- sort out client-server file confusions (#17232).
- amandaidx-xinetd should have "wait = no" (#17551).
- /var/lib/amanda needs operator.disk ownership (17913).
- /etc/xinetd.d/amanda added to the amanda-server package (#18112).
- ignore socket error message (#18322).

* Sun Sep  3 2000 Florian La Roche <Florian.LaRoche@redhat.de>
- do not include /etc/xinetd.d/amandaidx in the server rpm

* Mon Aug 21 2000 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- only do reload of xinetd if xinetd is running (#16653)
- don't show output of reload command to STDOUT (#16653)
- don't use /usr/sbin/tcpd in amidx, xinetd is linked
  with tcp_wrappers
- prereq initscripts (fixes #14572 and duplicates)

* Tue Aug  1 2000 Bill Nottingham <notting@redhat.com>
- turn off amandaidx by default (#14937)
- fix some binary permissions (#14938)

* Tue Aug  1 2000 Matt Wilson <msw@redhat.com>
- added Prereq: /sbin/service xinetd to client and server subpackages

* Tue Jul 18 2000 Trond Eivind Glomsr\xf8d <teg@redhat.com>
- xinetd support

* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild

* Sun Jun 18 2000 Jeff Johnson <jbj@redhat.com>
- add prereqs for scriptlets, requires for common package.

* Sat Jun 10 2000 Jeff Johnson <jbj@redhat.com>
- FHS packaging.
- move to 7.0 distro.

* Tue May 23 2000 Tim Powers <timp@redhat.com>
- built for 7.0
- man pages in /usr/share/man

* Thu Apr 27 2000 Tim Powers <timp@redhat.com>
- added usr/lib/amanda/chg-zd-mtx to the client RPM to fix bug #8282

* Wed Mar 8 2000 Tim Powers <timp@redhat.com>
- fixed files/dirs ending up in the wrong packages.
- last time it wasn't built with dump (doh!), this time it is. Now has a
	BuildRequires for dump.

* Thu Feb 10 2000 Tim Powers <timp@redhat.com>
- strip binaries

* Fri Jan 21 2000 TIm Powers <timp@redhat.com>
- added chown lines to post section

* Tue Jan 11 2000 Tim Powers <timp@redhat.com>
- make sure the man pages are gzipped in each subpackage, overriding the build
	system spec_install_post macro.
- using mega spec file changes from Marc Merlin <merlin_bts@valinux.com> since
	the package we were shipping in the past had some major issues (not in
	Marc's words ;)
- using Marc's added README and modified config files.
- adapted patches written by Alexandre Oliva <oliva@dcc.unicamp.br> from Marc
	Merlin's package so that the patch matches the source version (the patches
	are the glibc2.1 and glibc2.2 patches)

* Mon Jan 3 2000 Tim Powers <timp@redhat.com>
- fix so configure doesn't crap out (libtoolize --force)
- gzip man pages, strip binaries
- rebuilt for 6.2

* Thu Aug 5 1999 Tim Powers <timp@redhat.com>
- applied patch so that it reports the available holding disk space correctly

* Thu Jul 8 1999 Tim Powers <timp@redhat.com>
- added %%defattr lines
- rebuilt for 6.1

* Wed May 05 1999 Bill Nottingham <notting@redhat.com>
- update to 2.4.1p1

* Tue Oct 27 1998 Cristian Gafton <gafton@redhat.com>
- version 2.4.1

* Tue May 19 1998 Cristian Gafton <gafton@redhat.com>
- upgraded to full 2.4.0 release

* Thu Feb 19 1998 Otto Hammersmith <otto@redhat.com>
- fixed group for -client and -server packages (Network->Networking)

* Wed Feb 11 1998 Otto Hammersmith <otto@redhat.com>
- updated to 2.4.0b6, fixes security hole among other things
  (as well as finally got the glibc patch in the main source.)

* Tue Jan 27 1998 Otto Hammersmith <otto@redhat.com>
- moved versionsuffix to client package to remove dependency of amanda on amanda-client

* Mon Jan 26 1998 Otto Hammersmith <otto@redhat.com>
- fixed libexec garbage.

* Wed Jan 21 1998 Otto Hammersmith <otto@redhat.com>
- split into three packages amanda, amanda-client, and amanda-server

* Fri Jan  9 1998 Otto Hammersmith <otto@redhat.com>
- updated to latest beta... builds much cleaner now.

* Thu Jan  8 1998 Otto Hammersmith <otto@redhat.com>
- created the package