[bacula] Filter out libbaccats from auto generated Provides/Obsoletes
Simone Caronni
slaanesh at fedoraproject.org
Fri May 16 08:20:06 UTC 2014
commit 9017302d33eef91976beb72b15a149091b746eaa
Author: Simone Caronni <negativo17 at gmail.com>
Date: Fri May 16 10:19:55 2014 +0200
Filter out libbaccats from auto generated Provides/Obsoletes
bacula.spec | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
---
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 <negativo17 at gmail.com> - 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 <negativo17 at gmail.com> - 7.0.3-1
- Update to 7.0.3.
More information about the scm-commits
mailing list