From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020827 Description of problem: The new package ftp://people.redhat.com/jdennis/postfix-2.0.6-11.src.rpm doesn't build on RedHat 7.2 because it lacks support for db4. Version-Release number of selected component (if applicable): postfix-2.0.6-11 How reproducible: Always Steps to Reproduce: 1.rpm --rebuild postfix-2.0.6-11.src.rpm 2. 3. Actual Results: It doesn't build because db4-devel is missing. Expected Results: The package should have used db3-devel instead. Additional info: Of course, this is not a bug because the package isn't intended to build on RedHat 7.x. However this small patch makes it build on 7.x and 8.x. --- postfix-2.0.6-11.src/postfix.spec Mon Mar 10 23:38:43 2003 +++ /usr/src/redhat/SPECS/postfix.spec Thu Mar 13 08:51:56 2003 @@ -40,6 +40,9 @@ %define maildrop_group postdrop %define maildrop_gid %{POSTDROP_GID} +# Do we use db3 or db4 ? If we have db4, assume db4, otherwise db3. +%define dbver %(eval "rpm -q --quiet db4 && echo db4 || echo db3") + Name: postfix Group: System Environment/Daemons URL: http://www.postfix.org @@ -70,7 +73,7 @@ BuildRoot: %{_tmppath}/%{name}-buildroot # Determine the different packages required for building postfix -BuildRequires: gawk, perl, sed, ed, db4-devel, pkgconfig +BuildRequires: gawk, perl, sed, ed, %{dbver}-devel, pkgconfig %if %{LDAP} BuildRequires: openldap >= 1.2.9, openldap-devel >= 1.2.9
Thanks!!! I've added your fix to the spec file.