[webalizer] build (conditionally) against libdb-devel

jorton jorton at fedoraproject.org
Wed Apr 25 09:58:51 UTC 2012


commit 83e86eb39c81a7f25dc992baabf5ef1ca28ca540
Author: Joe Orton <jorton at redhat.com>
Date:   Wed Apr 25 10:58:40 2012 +0100

    build (conditionally) against libdb-devel

 webalizer.spec |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/webalizer.spec b/webalizer.spec
index 1c16f98..6d0fcc7 100644
--- a/webalizer.spec
+++ b/webalizer.spec
@@ -1,11 +1,17 @@
 %define ver 2.23
 %define patchlevel 05
 
+%if 0%{?fedora} < 18
+%global db_devel  db4-devel
+%else
+%global db_devel  libdb-devel
+%endif
+
 Name: webalizer
 Summary: A flexible Web server log file analysis program
 Group: Applications/Internet
 Version: 2.23_05
-Release: 3
+Release: 4%{?dist}
 URL: http://www.mrunix.net/webalizer/
 License: GPLv2+
 Source0: ftp://ftp.mrunix.net/pub/webalizer/%{name}-%{ver}-%{patchlevel}-src.tgz
@@ -17,7 +23,7 @@ Patch4: webalizer-2.21-02-underrun.patch
 Patch6: webalizer-2.23-05-confuser.patch
 Patch9: webalizer-2.23-05-groupvisit.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: gd-devel, db4-devel, bzip2-devel
+BuildRequires: gd-devel, %{db_devel}, bzip2-devel
 Requires(pre): /usr/sbin/useradd
 Requires: httpd, crontabs
 
@@ -85,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(-, webalizer, root) %{_localstatedir}/www/usage/*.png
 
 %changelog
+* Wed Apr 25 2012 Joe Orton <jorton at redhat.com> - 2.23_05-4
+- build (conditionally) against libdb-devel
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.23_05-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list