]> git.sur5r.net Git - bacula/bacula/blob - gui/bimagemgr/bacula-bimagemgr.spec.in
Update
[bacula/bacula] / gui / bimagemgr / bacula-bimagemgr.spec.in
1 # Bacula Image Manager RPM spec file
2 # Copyright (C) 2004 Kern Sibbald
3
4 # Platform defines
5
6 %define rhel 0
7 %{?build_rhel:%define rhel 1}
8
9 %define suse 0
10 %{?build_suse:%define suse 1}
11
12 %define mdk 0
13 %{?build_mdk:%define mdk 1}
14
15 # test for a platform definition
16 %if ! %{rhel} && ! %{suse} && ! %{mdk}
17 %{error: You must specify a platform. Please examine the spec file.}
18 exit 1
19 %endif
20
21 # set destination directories
22 %define cgidir /var/www/cgi-bin
23 %define docdir /var/www/html
24 %define sysconfdir /etc/bacula
25 %if %{suse}
26 %define cgidir /srv/www/cgi-bin
27 %define docdir /srv/www/htdocs
28 %endif
29
30 # set ownership of files
31 %define binowner root
32 %define bingroup root
33 %define dataowner apache
34 %define datagroup apache
35 %if %{suse}
36 %define dataowner wwwrun
37 %define datagroup www
38 %endif
39
40 Summary: Bacula - The Network Backup Solution
41 Name: bacula
42 Version: @VERSION@
43 Release: 1
44 Group: System Environment/Daemons
45 Copyright: GPL v2
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>
53
54 %description
55
56 %package bimagemgr
57 Summary: Bacula - The Network Backup Solution
58 Group: System Environment/Daemons
59
60 Requires: perl, perl-DBI, bacula-server, cdrecord, mkisofs
61 %if %{mdk}
62 Requires: apache
63 %else
64 Requires: httpd
65 %endif
66
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 
74 which have.
75
76
77 %prep
78
79 %setup 
80
81 %build
82
83 %install
84
85 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
86
87 mkdir -p $RPM_BUILD_ROOT/%{cgidir}
88 mkdir -p $RPM_BUILD_ROOT/%{docdir}
89 mkdir -p $RPM_BUILD_ROOT/%{sysconfdir}
90
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}/
98
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
104
105 %clean
106 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
107
108 %files bimagemgr
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
116
117 %defattr(-,%{dataowner},%{datagroup})
118 %{docdir}/temp.html
119
120 %post bimagemgr
121
122 %preun bimagemgr
123
124 %changelog
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>
133 - initial spec file