Fix build on RHEL/CentOS 6

This commit is contained in:
Simone Caronni 2018-06-15 11:03:13 +02:00
parent a303913827
commit a38ed26f76

View File

@ -3,7 +3,7 @@
Name: bacula
Version: 9.0.7
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details
License: AGPLv3 with exceptions
@ -393,9 +393,9 @@ convert %{SOURCE19} bacula-tray-monitor.png
# Nagios plugin
install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
# Remove catalogue backend symlinks
# This will be managed through alternatives, as it requires the name to NOT
# change between upgrades, so the versioned library name can not be used.
rm -f %{buildroot}%{_libdir}/libbaccats.so
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
# Bat
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
@ -580,6 +580,9 @@ fi
%files libs-sql
# On Fedora 28 this gets recreated automatically even if the library is
# deleted in the install section.
# On EPEL 6 this is required until RPM assembly time or an error is given due
# to the missing library.
# So: leave the library in place until the very end and just exclude it.
%exclude %{_libdir}/libbaccats-%{version}.so
%{_libdir}/libbaccats-mysql-%{version}.so
%{_libdir}/libbaccats-mysql.so
@ -731,6 +734,9 @@ fi
%{_libdir}/nagios/plugins/check_bacula
%changelog
* Fri Jun 15 2018 Simone Caronni <negativo17@gmail.com> - 9.0.7-7
- Fix build on RHEL/CentOS 6.
* Wed Jun 13 2018 Simone Caronni <negativo17@gmail.com> - 9.0.7-6
- Fix typo.