[bacula] Fix BuildRequires on old platforms
Simone Caronni
slaanesh at fedoraproject.org
Wed Jan 4 17:28:57 UTC 2012
commit 11812bf048343ce2d48023086c6a5b814fe4db42
Author: Simone Caronni <negativo17 at gmail.com>
Date: Wed Jan 4 18:28:44 2012 +0100
Fix BuildRequires on old platforms
bacula.spec | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 0a04ad7..028b330 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -38,7 +38,7 @@ Patch8: bacula-5.2.2-qt-console-optflags.patch
BuildRequires: openssl-devel, ncurses-devel, perl, glibc-devel
BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
BuildRequires: mysql-devel, postgresql-devel, sqlite-devel
-BuildRequires: desktop-file-utils, python-devel, lzo-devel, sed
+BuildRequires: desktop-file-utils, python-devel, sed
BuildRequires: libacl-devel, tetex-latex, tetex, ghostscript
BuildRequires: readline-devel, libcap-devel
@@ -64,6 +64,10 @@ BuildRequires: systemd-units
BuildRequires: latex2html
%endif
+%if 0%{?fedora} >= 6 || 0%{?rhel} >= 5
+BuildRequires: lzo-devel >= 2.02
+%endif
+
%description
Bacula is a set of programs that allow you to manage the backup,
recovery, and verification of computer data across a network of
@@ -321,7 +325,7 @@ export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
$*
}
-%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
+%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
export QMAKE=/usr/bin/qmake-qt4
build --enable-bat --htmldir=%{_datadir}/doc/bacula-console-bat-%{version}
%else
@@ -764,7 +768,7 @@ fi
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
%{_mandir}/man8/bconsole.8.gz
-%if 0%{?fedora} >= 11 || 0%{?rhel} >= 6
+%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
%files console-bat
%defattr(-,root,root,-)
%doc %{_datadir}/doc/bacula-console-bat-%{version}/*
More information about the scm-commits
mailing list