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

-- 
 

This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to which they are addressed. 
If you have received this email in error please notify the system manager. 
This message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. If you are not the intended recipient 
you are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly 
prohibited.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to