1 # Bacula Image Manager RPM spec file
2 # Copyright (C) 2004 Kern Sibbald
7 %{?build_rhel:%define rhel 1}
10 %{?build_suse:%define suse 1}
13 %{?build_mdk:%define mdk 1}
15 # test for a platform definition
16 %if ! %{rhel} && ! %{suse} && ! %{mdk}
17 %{error: You must specify a platform. Please examine the spec file.}
21 # set destination directories
22 %define cgidir /var/www/cgi-bin
23 %define docdir /var/www/html
24 %define sysconfdir /etc/bacula
26 %define cgidir /srv/www/cgi-bin
27 %define docdir /srv/www/htdocs
30 # set ownership of files
33 %define dataowner apache
34 %define datagroup apache
36 %define dataowner wwwrun
40 Summary: Bacula - The Network Backup Solution
44 Group: System Environment/Daemons
46 Source: %{name}-%{version}.tar.gz
47 BuildRoot: %{_tmppath}/%{name}-root
48 URL: http://www.bacula.org/
49 BuildArchitectures: noarch
50 Vendor: The Bacula Team
51 Distribution: The Bacula Team
52 Packager: D. Scott Barninger <barninger at fairfieldcomputers dot com>
57 Summary: Bacula - The Network Backup Solution
58 Group: System Environment/Daemons
60 Requires: perl, perl-DBI, bacula-server, cdrecord, mkisofs
67 %description bimagemgr
68 Bacula is a set of computer programs that permit you (or the system
69 administrator) to manage backup, recovery, and verification of computer
70 data across a network of computers of different kinds. bimagemgr is a
71 utility to manage backups made to files intended for burning to CDR
72 disk. bimagemgr allows you to easily see which Volumes have been written
73 to more recently than they have been recorded to CDR disk and record those
85 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
87 mkdir -p $RPM_BUILD_ROOT/%{cgidir}
88 mkdir -p $RPM_BUILD_ROOT/%{docdir}
89 mkdir -p $RPM_BUILD_ROOT/%{sysconfdir}
91 cp -p src/bimagemgr/bimagemgr.pl $RPM_BUILD_ROOT/%{cgidir}/
92 cp -p src/bimagemgr/create_cdimage_table.pl $RPM_BUILD_ROOT/%{sysconfdir}/
93 cp -p src/bimagemgr/README $RPM_BUILD_ROOT/%{sysconfdir}/README.bimagemgr
94 cp -p src/bimagemgr/bimagemgr.gif $RPM_BUILD_ROOT/%{docdir}/
95 cp -p src/bimagemgr/cdrom_spins.gif $RPM_BUILD_ROOT/%{docdir}/
96 cp -p src/bimagemgr/clearpixel.gif $RPM_BUILD_ROOT/%{docdir}/
97 cp -p src/bimagemgr/temp.html $RPM_BUILD_ROOT/%{docdir}/
99 chmod 755 $RPM_BUILD_ROOT/%{cgidir}/bimagemgr.pl
100 chmod 750 $RPM_BUILD_ROOT/%{sysconfdir}/create_cdimage_table.pl
101 chmod 644 $RPM_BUILD_ROOT/%{sysconfdir}/README.bimagemgr
102 chmod 644 $RPM_BUILD_ROOT/%{docdir}/*
103 chmod 664 $RPM_BUILD_ROOT/%{docdir}/temp.html
106 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
109 %defattr(-,%{binowner},%{bingroup})
110 %{cgidir}/bimagemgr.pl
111 %{sysconfdir}/create_cdimage_table.pl
112 %{sysconfdir}/README.bimagemgr
113 %{docdir}/bimagemgr.gif
114 %{docdir}/cdrom_spins.gif
115 %{docdir}/clearpixel.gif
117 %defattr(-,%{dataowner},%{datagroup})
125 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
126 - ASSIGNMENT OF COPYRIGHT
127 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
128 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
129 - all right, title and interest in and to the copyright in this software RPM
130 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
131 - free of all liens, encumbrances or any known claims against said copyright.
132 * Sun Nov 14 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>