Summary: Bacula - The Network Backup Solution
Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
Name: bacula
-Version: 7.0.5
+Version: 7.2.0
Release: 1
License: AGPL v3
Group: Networking/Utilities
Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
-# Source0-md5: b4a99d673f5e1eaae8b257ccc610241f
+# Source0-md5: 8381b6523dab31648a0bae417e60832b
Source10: %{name}-dir.init
Source11: %{name}-fd.init
Source12: %{name}-sd.init
Patch2: %{name}-conf.patch
Patch3: %{name}-desktop.patch
Patch4: make_catalog_backup-setup-home.patch
+Patch5: %{name}-libtool.patch
URL: http://www.bacula.org/
BuildRequires: acl-devel
BuildRequires: autoconf
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
src/cats/create_* src/cats/delete_* src/cats/drop_* \
%build
cd autoconf
%{__aclocal} -I bacula-macros -I gettext-macros
-# $BUILD_DIR not seen by libtoolize, export it
-BUILD_DIR=.. %{__libtoolize}
+%{__libtoolize}
+mv autoconf/* .
+rmdir autoconf
cd ..
%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
# 5.0 -> 5.2 : 12_to_14
install -p updatedb/update_*_tables_10_to_11 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
install -p updatedb/update_*_tables_11_to_12 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
-install -p updatedb/update_*_tables_12_to_14 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
+install -p updatedb/update_*_tables_12_to_13 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
+install -p updatedb/update_*_tables_13_to_14 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
# place for site passwords
touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
-rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
# startup scripts, those in /etc/rc.d/init.d are better
rm $RPM_BUILD_ROOT%{_sbindir}/bacula
%dir %{_sysconfdir}
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
# do not remove bsmtp from files. Fix build if it is not installed.
-%attr(755,root,root) %{_sbindir}/bpluginfo
%attr(755,root,root) %{_sbindir}/bsmtp
%attr(755,root,root) %{_sbindir}/btraceback
%attr(755,root,root) %{_libdir}/libbac-7*.so
%attr(755,root,root) %{_libdir}/libbacfind-7*.so
%attr(755,root,root) %{_libdir}/libbacsql-7*.so
%{_mandir}/man8/bacula.8*
-%{_mandir}/man8/bpluginfo.8*
%{_mandir}/man1/bsmtp.1*
%{_mandir}/man8/btraceback.8*
%dir %{_libexecdir}/%{name}