From 9017302d33eef91976beb72b15a149091b746eaa Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Fri, 16 May 2014 10:19:55 +0200 Subject: [PATCH] Filter out libbaccats from auto generated Provides/Obsoletes --- bacula.spec | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/bacula.spec b/bacula.spec index abe6a36..592f5b6 100644 --- a/bacula.spec +++ b/bacula.spec @@ -1,9 +1,25 @@ %global uid 133 %global username bacula +# Prevent the non-existant libbacats-x.x.x.so library to be required. The library +# is provided by the libbacats-database-x.x.x.so variants and selected with the +# update-alternatives mechanism. +# RPM complains, as the shared object name it is always libbacats-x.x.x.so in all +# the database shared object variants. +%if 0%{?rhel} == 5 || 0%{?rhel} == 6 +%{?filter_setup: +%filter_from_provides /^libbaccats.*\.so.*/d; +%filter_from_requires /^libbaccats.*\.so.*/d; +%filter_setup +} +%else +%global __provides_exclude ^libbaccats.*\\.so.*$ +%global __requires_exclude ^libbaccats.*\\.so.*$ +%endif + Name: bacula Version: 7.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Cross platform network backup for Linux, Unix, Mac and Windows # See LICENSE for details License: AGPLv3 with exceptions @@ -735,6 +751,10 @@ fi %{_libdir}/nagios/plugins/check_bacula %changelog +* Fri May 16 2014 Simone Caronni - 7.0.3-2 +- Filter out libbaccats from auto generated Provides/Obsoletes and add note on + the libbaccats-x.x.x.so shared object name mess. + * Thu May 15 2014 Simone Caronni - 7.0.3-1 - Update to 7.0.3.