Logoj0ke.net Open Build Service > Projects > server:backup > bacula > Changes
Sign Up | Log In

Changes of Revision 9

[-] Added bacula.spec
x
 
1
@@ -0,0 +1,337 @@
2
+#
3
+# spec file for package bacula (Version 2.4.3)
4
+#
5
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
6
+# This file and all modifications and additions to the pristine
7
+# package are under the same license as the package itself.
8
+#
9
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
10
+#
11
+
12
+Name:           bacula
13
+%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
14
+BuildRequires:  gcc-c++ libacl-devel sqlite-devel openssl-devel readline-devel tcpd-devel
15
+BuildRequires:  xorg-x11-devel qt qt-devel python python-devel atk-devel
16
+BuildRequires:  cairo-devel expat fontconfig-devel freetype2-devel glib2-devel glitz-devel
17
+BuildRequires:  gtk2-devel libpng-devel pango-devel xorg-x11-devel zlib-devel
18
+%if 0%{?sles_version} > 10 || 0%{?suse_version}
19
+BuildRequires: libqwt5-devel libqwt5
20
+%endif
21
+License:        GPL v2 or later
22
+Group:          Productivity/Archiving/Backup
23
+Autoreqprov:    on
24
+Version:        2.4.3
25
+Release:        1
26
+Summary:        Bacula--The Network Backup Solution: Client Part
27
+URL:             http://www.bacula.org
28
+Source0:        %{name}-%{version}.tar.gz
29
+Source10:       bacula-dir.init
30
+Source11:       bacula-fd.init
31
+Source12:       bacula-sd.init
32
+Source20:       bacula-dir.fw
33
+Source21:       bacula-fd.fw
34
+Source22:       bacula-sd.fw
35
+#Patch:          %{name}-%{version}-cflags.diff
36
+Patch1:         001-check-python26.diff
37
+Patch2:        2.4.3-cancel-after-network-outage.patch
38
+Patch3:        2.4.3-orphaned-jobs.patch
39
+Patch4:        2.4.3-prune-deadlock.patch
40
+Patch5:        2.4.3-update-slots.patch
41
+Patch6:        2.4.3-win32-runscript-unicode-path.patch
42
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
43
+
44
+%description
45
+Bacula comes by night and sucks the vital essence from your computers.
46
+Bacula is a set of computer programs that permit you (or the system
47
+administrator) to manage backup, recovery, and verification of computer
48
+data across a network of computers of different kinds. In technical
49
+terms, it is a network client/server-based backup program. Bacula is
50
+relatively easy to use and efficient, while offering many advanced
51
+storage management features that make it easy to find and recover lost
52
+or damaged files.
53
+
54
+
55
+
56
+%debug_package
57
+%package server
58
+Summary:        Bacula - The Network Backup Solution - server part
59
+Group:          Productivity/Archiving/Backup
60
+Requires:       bacula = %{version}
61
+Autoreqprov:    on
62
+
63
+%description server
64
+Bacula - It comes by night and sucks the vital essence from your
65
+computers. Bacula is a set of computer programs that permit you (or the
66
+system administrator) to manage backup, recovery, and verification of
67
+computer data across a network of computers of different kinds. In
68
+technical terms, it is a network client/server based backup program.
69
+Bacula is relatively easy to use and efficient, while offering many
70
+advanced storage management features that make it easy to find and
71
+recover lost or damaged files. This package contains Bacula server
72
+daemons.
73
+
74
+%package gui
75
+Summary:        Bacula - The Network Backup Solution - admin GUI
76
+Group:          Productivity/Archiving/Backup
77
+Requires:       bacula = %{version}
78
+Autoreqprov:    on
79
+
80
+%description gui
81
+Bacula - It comes by night and sucks the vital essence from your
82
+computers. Bacula is a set of computer programs that permit you (or the
83
+system administrator) to manage backup, recovery, and verification of
84
+computer data across a network of computers of different kinds. In
85
+technical terms, it is a network client/server based backup program.
86
+Bacula is relatively easy to use and efficient, while offering many
87
+advanced storage management features that make it easy to find and
88
+recover lost or damaged files. This package contains Bacula GUI
89
+programs bat (QT) and tray monitor (KDE/Gnome).
90
+
91
+
92
+
93
+%prep
94
+%setup -q
95
+#%patch
96
+%patch1 -p1
97
+%patch2
98
+%patch3
99
+%patch4
100
+%patch5
101
+%patch6
102
+
103
+%build
104
+unset NOFORTIFY
105
+%if 0%{?suse_version} >= 1100  
106
+# bacula will crash otherwise
107
+NOFORTIFY='-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0'
108
+%endif
109
+CFLAGS="-fno-strict-aliasing $RPM_OPT_FLAGS $NOFORTIFY" ./configure \
110
+   --prefix=%{_prefix} \
111
+   --libexecdir=%{_libdir} \
112
+        --sbindir=%{_sbindir} \
113
+        --bindir=%{_bindir} \
114
+        --libdir=%{_libdir} \
115
+        --infodir=%{_infodir} \
116
+        --mandir=%{_mandir} \
117
+   --sysconfdir=%{_sysconfdir}/bacula \
118
+   --with-working-dir=/var/lib/bacula/working \
119
+   --with-scriptdir=/usr/lib/bacula \
120
+   --with-sqlite3 \
121
+   --with-openssl \
122
+   --with-python=/usr/ \
123
+   --enable-bat \
124
+   --enable-tray-monitor \
125
+   --with-tcp-wrappers
126
+make CFLAGS="$RPM_OPT_FLAGS $NOFORTIFY"
127
+
128
+%install
129
+make DESTDIR=$RPM_BUILD_ROOT install
130
+install -m 755 src/qt-console/bat $RPM_BUILD_ROOT/%{_sbindir}/bat
131
+mkdir -p $RPM_BUILD_ROOT/etc/init.d
132
+install -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/init.d/bacula-dir
133
+install -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/init.d/bacula-fd
134
+install -m 755 %SOURCE12 $RPM_BUILD_ROOT/etc/init.d/bacula-sd
135
+ln -sf ../../etc/init.d/bacula-fd       $RPM_BUILD_ROOT/%{_sbindir}/rcbacula-fd
136
+ln -sf ../../etc/init.d/bacula-sd       $RPM_BUILD_ROOT/%{_sbindir}/rcbacula-sd
137
+ln -sf ../../etc/init.d/bacula-dir      $RPM_BUILD_ROOT/%{_sbindir}/rcbacula-dir
138
+# remove /etc/bacula/startmysql
139
+# and /etc/bacula/stopmysql
140
+# as they are not needed (bug #145310)
141
+##rm $RPM_BUILD_ROOT/etc/bacula/startmysql $RPM_BUILD_ROOT/etc/bacula/stopmysql
142
+##rm $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-dir $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-fd $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-sd
143
+rm $RPM_BUILD_ROOT/usr/lib/bacula/startmysql $RPM_BUILD_ROOT/usr/lib/bacula/stopmysql
144
+rm $RPM_BUILD_ROOT/usr/lib/bacula/bacula-ctl-dir $RPM_BUILD_ROOT/usr/lib/bacula/bacula-ctl-fd $RPM_BUILD_ROOT/usr/lib/bacula/bacula-ctl-sd
145
+#install fw definitions
146
+mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}/
147
+install -m 755 %SOURCE20 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-dir
148
+install -m 755 %SOURCE21 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-fd
149
+install -m 755 %SOURCE22 $RPM_BUILD_ROOT/%{_fwdefdir}/bacula-sd
150
+
151
+%clean
152
+rm -rf $RPM_BUILD_ROOT
153
+
154
+%preun
155
+%stop_on_removal bacula-fd
156
+
157
+%postun
158
+%restart_on_update bacula-fd
159
+%insserv_cleanup
160
+
161
+%preun server
162
+%stop_on_removal bacula-dir bacula-sd
163
+
164
+%postun server
165
+%restart_on_update bacula-dir bacula-sd
166
+%insserv_cleanup
167
+
168
+%files
169
+%defattr(-,root,root)
170
+%config /etc/init.d/bacula-fd
171
+%doc ABOUT-NLS COPYING INSTALL LICENSE README VERIFYING ReleaseNotes projects
172
+%{_sbindir}/bacula-fd
173
+%{_sbindir}/rcbacula-fd
174
+%{_sbindir}/bconsole
175
+%{_sbindir}/btraceback
176
+%config(noreplace) /etc/bacula/bacula-fd.conf
177
+%config(noreplace) /etc/bacula/bconsole.conf
178
+/usr/lib/bacula/btraceback.dbx
179
+/usr/lib/bacula/btraceback.gdb
180
+/usr/lib/bacula/gconsole
181
+/usr/lib/bacula/mtx-changer
182
+/usr/lib/bacula/bacula
183
+/usr/lib/bacula/dvd-handler
184
+/usr/lib/bacula/disk-changer
185
+/usr/lib/bacula/bconsole
186
+%dir /etc/bacula
187
+%dir /usr/lib/bacula
188
+%dir /var/lib/bacula
189
+%dir /var/lib/bacula/working
190
+%config %{_fwdefdir}/bacula-fd
191
+%doc %{_mandir}/man8/*
192
+%doc %{_mandir}/man1/bsmtp.1.gz
193
+
194
+%files server
195
+%defattr(-,root,root)
196
+%config /etc/init.d/bacula-sd
197
+%config /etc/init.d/bacula-dir
198
+%{_sbindir}/bacula-dir
199
+%{_sbindir}/bacula-sd
200
+%{_sbindir}/rcbacula-dir
201
[+] Added 001-check-python26.diff ^
[+] Added 2.4.3-cancel-after-network-outage.patch ^
[+] Added 2.4.3-orphaned-jobs.patch ^
[+] Added 2.4.3-prune-deadlock.patch ^
[+] Added 2.4.3-update-slots.patch ^
[+] Added 2.4.3-win32-runscript-unicode-path.patch ^
Added bacula-2.4.3.tar.gz ^
[+] Added bacula-dir.fw ^
[+] Added bacula-dir.init ^
[+] Added bacula-fd.fw ^
[+] Added bacula-fd.init ^
[+] Added bacula-sd.fw ^
[+] Added bacula-sd.init ^