bacula/bacula.spec

changeset 220
a6cd892638c1
parent 143
5479ddead00b
child 223
d1b7fc7f844a
equal deleted inserted replaced
3:0bed630328a9 4:798843aed111
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # MSvB:
25 # MSvB: Note, see http://www.bacula.org/en/?page=news
26 # MSvB: for information on new configuration options.
27 # MSvB:
28
24 # package information 29 # package information
25 Name: bacula 30 Name: bacula
26 Summary: Network Backup Tool 31 Summary: Network Backup Tool
27 URL: http://www.bacula.org/ 32 URL: http://www.bacula.org/
28 Vendor: Kern Sibbald 33 Vendor: Kern Sibbald
29 Packager: OpenPKG Foundation e.V. 34 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
31 Class: PLUS 36 Class: PLUS
32 Group: System 37 Group: System
33 License: GPL 38 License: GPL
34 Version: 2.4.4 39 Version: 3.0.2
35 Release: 20090405 40 Release: 20090916
36 41
37 # package options 42 # package options
38 %option with_server yes 43 %option with_server yes
39 %option with_ssl yes 44 %option with_ssl yes
40 %option with_wrap no 45 %option with_wrap no
41 %option with_dvd no 46 %option with_dvd no
42 %option with_mtx no 47 %option with_mtx no
43 %option with_python no 48 %option with_python no
44 %option with_db_sqlite no 49 %option with_dbback sqlite
45 %option with_db_pgsql no
46 %option with_db_mysql no
47
48 # package option sanity check
49 %if "%{with_db_sqlite}" == "no" && "%{with_db_mysql}" == "no" && "%{with_db_pgsql}" == "no"
50 %undefine with_db_sqlite
51 %define with_db_sqlite yes
52 %endif
53 50
54 # list of sources 51 # list of sources
55 Source0: http://switch.dl.sourceforge.net/bacula/bacula-%{version}.tar.gz 52 Source0: http://switch.dl.sourceforge.net/bacula/bacula-%{version}.tar.gz
56 Source1: rc.bacula 53 Source1: rc.bacula
57 Source2: bexec.sh 54 Source2: bexec.sh
60 # build information 57 # build information
61 Prefix: %{l_prefix} 58 Prefix: %{l_prefix}
62 BuildRoot: %{l_buildroot} 59 BuildRoot: %{l_buildroot}
63 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, gcc::with_cxx = yes 60 BuildPreReq: OpenPKG, openpkg >= 20060823, make, gcc, gcc::with_cxx = yes
64 PreReq: OpenPKG, openpkg >= 20060823 61 PreReq: OpenPKG, openpkg >= 20060823
65 BuildPreReq: ncurses, readline, zlib 62 BuildPreReq: ncurses, readline, zlib, gawk
66 PreReq: ncurses, readline, zlib 63 PreReq: ncurses, readline, zlib, gawk
67 %if "%{with_ssl}" == "yes" 64 %if "%{with_ssl}" == "yes"
68 BuildPreReq: openssl >= 0.9.8 65 BuildPreReq: openssl >= 0.9.8, openssl::with_threads = yes
69 PreReq: openssl >= 0.9.8 66 PreReq: openssl >= 0.9.8, openssl::with_threads = yes
70 %endif 67 %endif
71 %if "%{with_wrap}" == "yes" 68 %if "%{with_wrap}" == "yes"
72 BuildPreReq: tcpwrappers 69 BuildPreReq: tcpwrappers
73 PreReq: tcpwrappers 70 PreReq: tcpwrappers
74 %endif 71 %endif
75 %if "%{with_db_sqlite}" == "yes" 72 %if "%{with_dbback}" == "sqlite"
76 BuildPreReq: sqlite 73 BuildPreReq: sqlite
77 PreReq: sqlite 74 PreReq: sqlite
78 %endif 75 %endif
79 %if "%{with_db_mysql}" == "yes" 76 %if "%{with_dbback}" == "mysql"
80 BuildPreReq: mysql 77 BuildPreReq: mysql
81 PreReq: mysql 78 PreReq: mysql
82 %endif 79 %endif
83 %if "%{with_db_pgsql}" == "yes" 80 %if "%{with_dbback}" == "postgresql"
84 BuildPreReq: postgresql 81 BuildPreReq: postgresql
85 PreReq: postgresql 82 PreReq: postgresql
86 %endif 83 %endif
87 %if "%{with_dvd}" == "yes" 84 %if "%{with_dvd}" == "yes"
88 BuildPreReq: dvdrw-tools 85 BuildPreReq: dvdrw-tools
176 --with-openssl=%{l_prefix} \ 173 --with-openssl=%{l_prefix} \
177 %endif 174 %endif
178 %if "%{with_wrap}" == "yes" 175 %if "%{with_wrap}" == "yes"
179 --with-tcp-wrappers=yes \ 176 --with-tcp-wrappers=yes \
180 %endif 177 %endif
181 %if "%{with_db_sqlite}" == "yes" 178 %if "%{with_dbback}" == "sqlite"
182 --with-sqlite3=%{l_prefix} \ 179 --with-sqlite3=%{l_prefix} \
183 %endif 180 %endif
184 %if "%{with_db_mysql}" == "yes" 181 %if "%{with_dbback}" == "mysql"
185 --with-mysql=%{l_prefix} \ 182 --with-mysql=%{l_prefix} \
186 %endif 183 %endif
187 %if "%{with_db_pgsql}" == "yes" 184 %if "%{with_dbback}" == "postgresql"
188 --with-postgresql=%{l_prefix} \ 185 --with-postgresql=%{l_prefix} \
189 %endif 186 %endif
190 %if "%{with_python}" == "yes" || "%{with_dvd}" == "yes" 187 %if "%{with_python}" == "yes" || "%{with_dvd}" == "yes"
191 --with-python=%{l_prefix} \ 188 --with-python=%{l_prefix} \
192 %endif 189 %endif
198 --with-working-dir=%{l_prefix}/var/bacula \ 195 --with-working-dir=%{l_prefix}/var/bacula \
199 --with-pid-dir=%{l_prefix}/var/bacula/run \ 196 --with-pid-dir=%{l_prefix}/var/bacula/run \
200 --with-subsys-dir=%{l_prefix}/var/bacula/run/subsys \ 197 --with-subsys-dir=%{l_prefix}/var/bacula/run/subsys \
201 --with-archivedir=/tmp \ 198 --with-archivedir=/tmp \
202 --with-sbin-perm=0755 \ 199 --with-sbin-perm=0755 \
200 --disable-libtool \
203 --disable-nls 201 --disable-nls
204 202
205 # build 203 # build
206 %{l_make} %{l_mflags -O} 204 %{l_make} %{l_mflags -O}
207 205
219 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ 217 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
220 $RPM_BUILD_ROOT%{l_prefix}/var/bacula \ 218 $RPM_BUILD_ROOT%{l_prefix}/var/bacula \
221 $RPM_BUILD_ROOT%{l_prefix}/var/bacula/run \ 219 $RPM_BUILD_ROOT%{l_prefix}/var/bacula/run \
222 $RPM_BUILD_ROOT%{l_prefix}/var/bacula/run/subsys \ 220 $RPM_BUILD_ROOT%{l_prefix}/var/bacula/run/subsys \
223 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 221 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
224 $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ 222 $RPM_BUILD_ROOT%{l_prefix}/man/man8
225 $RPM_BUILD_ROOT%{l_prefix}/share/bacula/examples \
226 $RPM_BUILD_ROOT%{l_prefix}/share/bacula/examples/default-config
227 223
228 # install 224 # install
229 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT 225 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
230 226
231 # strip down installation 227 # strip down installation

mercurial