Searching google for "bacula build rpm" I find the
link below.
http://www.bacula.org/5.0.x-manuals/es/utility/utility/Bacula_RPM_Packaging_FAQ.html
Looking at the instructions and what is in the spec files I
figured that I should use the following command to build the
rpm.
rpmbuild -ba --define "build_su112 1" --define "build_mysql 1"
bacula.spec
I am in the platforms/rpms/suse directory to run the command and
I get the following errors.
error: Macro %depkgs_version has empty body
error: line 97: Illegal char '@' in: Release: @RELEASE@
Can someone tell me what am I missing to get configure to build
the spec files correctly?
Also has there been any thought in using the openSUSE build
service to make rpm's for different distros?
https://build.opensuse.org/
https://en.opensuse.org/openSUSE:Build%20Service%20supported%20build%20targets
https://en.wikipedia.org/wiki/Open_Build_Service
After each upload, the Build Service schedules the changed
packages to be rebuilt. On completion, the resulting binary
packages are published instantaneously to the download server,
which makes them available to the public.
bacula.spec.in
%define _release @RELEASE@
%define _version @VERSION@
%define depkgs_version @DEPKGS_VERSION@
bacula.spec
%define _release @RELEASE@
%define _version 7.4.7
%define depkgs_version
Script to run configure:
#!/bin/bash
PREFIX=/opt/bacula
CFLAGS="-g -O2 -Wall" \
./configure \
--enable-bat \
--enable-conio \
--enable-smartalloc \
--docdir=${PREFIX}/html \
--htmldir=${PREFIX}/html \
--libdir=${PREFIX}/lib \
--with-baseport=9101 \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--with-mysql \
--with-pid-dir=${PREFIX}/var/run/bacula \
--with-plugindir=${PREFIX}/plugins \
--with-scriptdir=${PREFIX}/scripts \
--with-systemd \
--with-working-dir=${PREFIX}/var/lib/bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--with-dir-user=bacula \
--with-dir-group=bacula \
--with-sd-user=bacula \
--with-sd-group=bacula \
--with-fd-user=bacula \
--with-fd-group=bacula \
--sbindir=${PREFIX}/bin \
--sysconfdir=${PREFIX}/etc/bacula
--
David Westfall