Summary: Bacula - The Network Backup Solution
Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
Name: bacula
-Version: 13.0.3
+Version: 15.0.2
Release: 1
License: AGPL v3
Group: Networking/Utilities
Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
-# Source0-md5: e686d4f1864c8c3e5c4ccb48a50db9a7
+# Source0-md5: 258c6fec54b1b559b9b249e55808acb7
Source1: https://www.bacula.org/downloads/libs3-%{libs3_version}.tar.gz
# Source1-md5: ca97bc4133a21981139181ec8571f202
Source10: %{name}-dir.init
%{?with_pgsql:rm $RPM_BUILD_ROOT%{_libdir}/libbaccats-postgresql.{la,so}}
%{?with_sqlite3:rm $RPM_BUILD_ROOT%{_libdir}/libbaccats-sqlite3.{la,so}}
+# shebang fixes
+sed -i -e '1s@#!.*python@#!%{__python3}@' \
+ $RPM_BUILD_ROOT%{_libexecdir}/bacula/key-manager.py \
+ $RPM_BUILD_ROOT%{_sbindir}/md5tobase64.py
+
%if %{with nagios}
install -d $RPM_BUILD_ROOT%{nagiosplugindir}
%{__make} -C examples/nagios/check_bacula install \
# do not remove bsmtp from files. Fix build if it is not installed.
%attr(755,root,root) %{_sbindir}/bsmtp
%attr(755,root,root) %{_sbindir}/btraceback
-%attr(755,root,root) %{_libdir}/libbac-13*.so
-%attr(755,root,root) %{_libdir}/libbaccfg-13*.so
-%attr(755,root,root) %{_libdir}/libbacsd-13*.so
-%attr(755,root,root) %{_libdir}/libbacfind-13*.so
-%attr(755,root,root) %{_libdir}/libbacsql-13*.so
+%attr(755,root,root) %{_libdir}/libbac-15*.so
+%attr(755,root,root) %{_libdir}/libbaccfg-15*.so
+%attr(755,root,root) %{_libdir}/libbacsd-15*.so
+%attr(755,root,root) %{_libdir}/libbacfind-15*.so
+%attr(755,root,root) %{_libdir}/libbacsql-15*.so
%{_mandir}/man8/bacula.8*
%{_mandir}/man1/bsmtp.1*
%{_mandir}/man8/btraceback.8*
%attr(755,root,root) %{_sbindir}/bregex
%attr(755,root,root) %{_sbindir}/bwild
%attr(755,root,root) %{_sbindir}/bacula-dbcheck
+%attr(755,root,root) %{_sbindir}/get_malware_abuse.ch
+%attr(755,root,root) %{_sbindir}/md5tobase64.py
%{_mandir}/man8/bacula-dir.8*
%{_mandir}/man8/bacula-dbcheck.8*
+%{_mandir}/man8/bdirjson.8*
%{_mandir}/man8/bregex.8*
%{_mandir}/man8/bwild.8*
%{_libexecdir}/%{name}/query.sql
%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
+%attr(755,root,root) %{_libexecdir}/%{name}/install-key-manager.sh
+%attr(755,root,root) %{_libexecdir}/%{name}/key-manager.py
%if %{with pgsql}
%files db-postgresql
%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_catalog_backup
-%attr(755,root,root) %{_libdir}/libbaccats-postgresql-13*.so
+%attr(755,root,root) %{_libdir}/libbaccats-postgresql-15*.so
-%ghost %attr(755,root,root) %{_libdir}/libbaccats-13*.so
+%ghost %attr(755,root,root) %{_libdir}/libbaccats-15*.so
%ghost %{_libexecdir}/%{name}/create_bacula_database
%ghost %{_libexecdir}/%{name}/drop_bacula_tables
%ghost %{_libexecdir}/%{name}/drop_bacula_database
%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_catalog_backup
-%attr(755,root,root) %{_libdir}/libbaccats-mysql-13*.so
+%attr(755,root,root) %{_libdir}/libbaccats-mysql-15*.so
-%ghost %attr(755,root,root) %{_libdir}/libbaccats-13*.so
+%ghost %attr(755,root,root) %{_libdir}/libbaccats-15*.so
%ghost %{_libexecdir}/%{name}/create_bacula_database
%ghost %{_libexecdir}/%{name}/drop_bacula_tables
%ghost %{_libexecdir}/%{name}/drop_bacula_database
%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_catalog_backup
-%attr(755,root,root) %{_libdir}/libbaccats-sqlite3-13*.so
+%attr(755,root,root) %{_libdir}/libbaccats-sqlite3-15*.so
-%ghost %attr(755,root,root) %{_libdir}/libbaccats-13*.so
+%ghost %attr(755,root,root) %{_libdir}/libbaccats-15*.so
%ghost %{_libexecdir}/%{name}/create_bacula_database
%ghost %{_libexecdir}/%{name}/drop_bacula_tables
%ghost %{_libexecdir}/%{name}/drop_bacula_database
%attr(755,root,root) %{_sbindir}/bfdjson
%attr(755,root,root) %{_libdir}/bpipe-fd.so
%{_mandir}/man8/bacula-fd.8*
+%{_mandir}/man8/bfdjson.8*
%files sd
%defattr(644,root,root,755)
%attr(755,root,root) %{_libexecdir}/%{name}/isworm
%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
%attr(755,root,root) %{_libexecdir}/%{name}/tapealert
-%attr(755,root,root) %{_libdir}/bacula-sd-aligned-driver-13.*.so
+%attr(755,root,root) %{_libdir}/bacula-sd-aligned-driver-15.*.so
%if %{with s3}
-%attr(755,root,root) %{_libdir}/bacula-sd-cloud-driver-13.*.so
+%attr(755,root,root) %{_libdir}/bacula-sd-cloud-driver-15.*.so
%endif
%{_mandir}/man8/bacula-sd.8*
%{_mandir}/man8/bextract.8*
%{_mandir}/man8/bls.8*
%{_mandir}/man8/bscan.8*
+%{_mandir}/man8/bsdjson.8*
%{_mandir}/man8/btape.8*
%files console
%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
%attr(755,root,root) %{_sbindir}/bconsole
%attr(755,root,root) %{_sbindir}/bbconsjson
+%{_mandir}/man8/bbconsjson.8*
%{_mandir}/man8/bconsole.8*
%if %{with qt}