Fix configure error

Signed-off-by: cherry530 <xuping33@huawei.com>
(cherry picked from commit 6c08fea3f2f3d96dca0b527e2fa63809db15f321)
This commit is contained in:
cherry530 2022-04-15 14:26:07 +08:00 committed by openeuler-sync-bot
parent 7aa0f189fa
commit e61421911f

View File

@ -3,7 +3,7 @@
Name: bacula
Version: 9.4.4
Release: 4
Release: 5
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
License: AGPLv3 with exceptions
URL: http://www.bacula.org
@ -96,14 +96,7 @@ Provides check_bacula support for Nagios.
%prep
%autosetup -p1
#cp %{SOURCE2} %{SOURCE3} %{SOURCE4} .
pushd autoconf
sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' libtool/libtool.m4
aclocal -I bacula-macros/ -I gettext-macros/ -I libtool/
popd
autoconf -I autoconf/ -o configure autoconf/configure.in
sed -i -r 's/(hardcode_into_libs)=.*$/\1=no/' configure
find updatedb -type f | xargs chmod -x
%build
@ -147,7 +140,9 @@ export PATH="$PATH:%{_qt5_bindir}"
--with-subsys-dir=%{_localstatedir}/lock/subsys \
--with-working-dir=%{_localstatedir}/spool/bacula \
%disable_rpath
#Remove RPATH
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%make_build -C examples/nagios/check_bacula
@ -318,6 +313,9 @@ fi
%{_mandir}/man*
%changelog
* Fri Apr 15 2022 xu_ping <xuping33@h-partners.com> - 9.4.4-5
- Fix configure error
* Mon Mar 8 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 9.4.4-4
- Stop the service and the process exits normally