I'm trying to build RPM's from the bacula.spec file included with the 5.2.10 
source on CentOS 6.3 and have ran into several problems. 

rpmbuild -ba --define "build_centos6 1" --define "build_mysql 1" 
SPECS/bacula.spec
results in this error:
        error: line 457: Empty tag: Distribution:
which I think should be set by %define _dist %(grep CentOS /etc/redhat-release) 
but isn't.
so I set it manually like this: Distribution: %{CentOS release 6.3 (Final)}

That will allow the build to continue to this point...
Processing files: bacula-mysql-5.2.10-1.x86_64 
        error: File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/startmysql
 
        error: File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/stopmysql
 
        error: File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/query.sql

RPM build errors:
    File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/startmysql
    File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/stopmysql
    File not found: 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64/opt/bacula/scripts/query.sql

I can get past that by removing these lines from bacula.spec
        cp -p examples/sample-query.sql 
$RPM_BUILD_ROOT%{script_dir}/sample-query.sql
        %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
        %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
        %attr(-, root, %{daemon_group}) %config(noreplace) 
%{script_dir}/query.sql
        %attr(-, root, %{daemon_group}) %{script_dir}/sample-query.sql

But then..
Checking for unpackaged file(s): /usr/lib/rpm/check-files 
/home/bear/rpmbuild/BUILDROOT/bacula-5.2.10-1.x86_64
error: Installed (but unpackaged) file(s) found:
   /opt/bacula/lib64/libbaccats-5.2.10.so
   /opt/bacula/lib64/libbaccats-mysql-5.2.10.so
   /opt/bacula/lib64/libbaccats-mysql.la
   /opt/bacula/lib64/libbaccats-mysql.so
   /opt/bacula/lib64/libbaccats.la
   /opt/bacula/lib64/libbaccats.so
   /usr/share/man/man8/bregex.8.gz
   /usr/share/man/man8/bwild.8.gz

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /opt/bacula/lib64/libbaccats-5.2.10.so
   /opt/bacula/lib64/libbaccats-mysql-5.2.10.so
   /opt/bacula/lib64/libbaccats-mysql.la
   /opt/bacula/lib64/libbaccats-mysql.so
   /opt/bacula/lib64/libbaccats.la
   /opt/bacula/lib64/libbaccats.so
   /usr/share/man/man8/bregex.8.gz
   /usr/share/man/man8/bwild.8.gz

So is this something I'm doing wrong or is the spec file broken?
Any info or pointers would be appreciated.

Thanks, Robert

--
Robert Hartzell
President | RwHartzell.Net, Inc.
www.rwhartzell.net | blogs.rwhartzell.net/bear



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to