New upstream, DSOLink FTBFS fix.

This commit is contained in:
Jon Ciesla 2010-03-18 15:49:34 +00:00
parent ab2ba2c880
commit 0cbe383288
4 changed files with 24 additions and 6 deletions

View File

@ -1,2 +1,2 @@
bacula-5.0.0.tar.gz
bacula-docs-5.0.0.tar.bz2
bacula-5.0.1.tar.gz
bacula-docs-5.0.1.tar.bz2

View File

@ -0,0 +1,11 @@
--- bacula-5.0.1/bacula-5.0.1/src/qt-console/bat.pro.in~ 2010-02-24 09:33:48.000000000 -0600
+++ bacula-5.0.1/bacula-5.0.1/src/qt-console/bat.pro.in 2010-03-11 17:12:44.645296544 -0600
@@ -20,7 +20,7 @@
TARGET = bat
DEPENDPATH += .
INCLUDEPATH += .. . ./console ./restore ./select
-LIBS += -L../lib -lbaccfg -lbac @OPENSSL_LIBS@
+LIBS += -L../lib -lbaccfg -lbac -ldl @OPENSSL_LIBS@
LIBTOOL_LINK = @QMAKE_LIBTOOL@ --silent --tag=CXX --mode=link
LIBTOOL_INSTALL = @QMAKE_LIBTOOL@ --silent --mode=install
QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)

View File

@ -7,7 +7,7 @@
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
Name: bacula
Version: 5.0.0
Version: 5.0.1
Release: 1%{?dist}
# See LICENSE for details
License: GPLv2 with exceptions
@ -40,6 +40,7 @@ Patch3: bacula-pamd.patch
#Patch11: bacula-2.4.3-orphaned-jobs.patch
#Patch12: bacula-2.4.3-python26.patch
Patch13: bacula-3.0.2-openssl.patch
Patch14: bacula-5.0.1-dsolink.patch
URL: http://www.bacula.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel, atk-devel, ncurses-devel, pango-devel, perl
@ -367,6 +368,7 @@ pushd bacula-%{version}
#%patch11 -p0
#%patch12 -p0
%patch13 -p2 -b .openssl
%patch14 -p2
# Remove execution permissions from files we're packaging as docs later on
find examples -type f | xargs chmod -x
@ -394,6 +396,7 @@ build() {
cp -rl ../bacula-%{version}/* .
export CFLAGS=-I%{_includedir}/ncurses
export CPPFLAGS=-I%{_includedir}/ncurses
export QMAKE=/usr/bin/qmake-qt4
%configure \
--sysconfdir=%{_sysconfdir}/bacula \
--with-dir-user=bacula \
@ -425,7 +428,6 @@ export CPPFLAGS=-I%{_includedir}/ncurses
--enable-smartalloc \
--with-x \
--enable-bat \
--with-qwt=/usr/lib \
--disable-libtool \
$*
# Scratch this, it is trouble
@ -624,6 +626,8 @@ mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula
# Nuke the scripts we do not need
rm -vf %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql}
# Install bat.conf
install -m 644 bacula-sqlite/src/qt-console/bat.conf %{buildroot}%{_sysconfdir}/bacula/bat.conf
# Fix up some perms so rpmlint does not complain too much
chmod 755 %{buildroot}%{_sbindir}/*
@ -1006,6 +1010,9 @@ fi
%changelog
* Thu Feb 25 2010 Jon Ciesla <limb@jcomserv.net - 5.0.1-1
- New upstream, 5.0.1.
* Mon Jan 25 2010 Jon Ciesla <limb@jcomserv.net - 5.0.0-1
- New upstream, 5.0.0.

View File

@ -1,2 +1,2 @@
68e008d2578a6d9a50af60439db17dcb bacula-5.0.0.tar.gz
aab47415c19edf237804be1d663514b1 bacula-docs-5.0.0.tar.bz2
beb9f8da196b3c9ffb0356f087dbdb99 bacula-5.0.1.tar.gz
ce2ef0dca50ab916fd6701b53b7bb4df bacula-docs-5.0.1.tar.bz2