Filter out libbaccats from auto generated Provides/Obsoletes

This commit is contained in:
Simone Caronni 2014-05-16 10:19:55 +02:00
parent 47fa612afe
commit 9017302d33

View File

@ -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@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@gmail.com> - 7.0.3-1
- Update to 7.0.3.