Fix BuildRequires on old platforms

This commit is contained in:
Simone Caronni 2012-01-04 18:28:44 +01:00
parent f5d09cc0e8
commit 11812bf048

View File

@ -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}/*