[bacula/f16] Fix check. If 0%{?rhel} returns -1 if not true, which is always lower than 5.

Simone Caronni slaanesh at fedoraproject.org
Mon Sep 24 13:28:47 UTC 2012


commit 5d763f64be1e77d6df7f7d2cdac52504c6732e04
Author: Simone Caronni <negativo17 at gmail.com>
Date:   Mon Sep 24 15:25:46 2012 +0200

    Fix check. If 0%{?rhel} returns -1 if not true, which is always lower than 5.

 bacula.spec |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 8cbc0ff..183414b 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -608,6 +608,7 @@ pushd bacula-base
         desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
         install -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}
         install -m 644 -D src/qt-console/bat.conf %{buildroot}%{_sysconfdir}/bacula/bat.conf
+        install -m 644 -D scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
         %endif
 popd
 
@@ -728,7 +729,7 @@ chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
 rm -rf %{buildroot}%{_datadir}/doc/bacula/
 
 # Remove bat man page if bat is not built (gets installed unconditionally from make install)
-%if 0%{?rhel} <= 5
+%if 0%{?rhel} == 5
 rm -f %{buildroot}%{_mandir}/man1/bat.1*
 %endif
 


More information about the scm-commits mailing list