Hi I have to build a rpm for the bacula-fd 5.2 in Cent OS 6, and follow this page : http://www.bacula.org/5.2.x-manuals/en/utility/utility/Bacula_RPM_Packaging_FAQ.html
I downloaded and extracted the bacula-5.2.13.tar.gz file, then : Looked at the bacula.spec.in file in "platforms/rpms/redhat/bacula.spec.in" Tried to build with this command : rpmbuild -ba --define "build_centos6 1" --define "build_client_only 1" platforms/rpms/redhat/bacula.spec.in But if fails with error: line 457: empty tag: Distribution: The line in the spec file is : Distribution: %{_dist} I think that the _dist variable is empty because in the precedent lines, the centos6 condition is missing : %if %{centos5} || %{centos4} || %{centos3} %define _dist %(grep CentOS /etc/redhat-release) %endif If I add a centos6 condition, the same error message appears. Anyone has an idea, or is there another way to build a RPM file ? Regards Norbert ------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users