diff --git a/milter-greylist.spec b/milter-greylist.spec index 414814a..27beb79 100644 --- a/milter-greylist.spec +++ b/milter-greylist.spec @@ -20,7 +20,7 @@ Summary: Milter for greylisting, the next step in the spam control war Name: milter-greylist Version: 4.2.3 -Release: %release_func 1%{?beta} +Release: %release_func 2%{?beta} License: BSD with advertising Group: System Environment/Daemons URL: http://hcpnet.free.fr/milter-greylist/ @@ -33,7 +33,6 @@ Requires: init(%name) Provides: user(%username) = 7 Provides: group(%username) = 7 BuildRequires: bison flex m4 -BuildRequires: %_libdir/libbind.so BuildRequires: sendmail-devel %{?with_spf:libspf-devel} BuildRequires: fedora-usermgmt-devel BuildRequires: curl-devel GeoIP-devel @@ -122,8 +121,8 @@ done %define makeflags TEST=false BINDIR=%_sbindir %build -export CPPFLAGS="-DUSE_CURL -DUSE_GEOIP -D_GNU_SOURCE -D_REENTRANT $(pkg-config --cflags-only-I libcurl libbind)" -export LDFLAGS="-Wl,--as-needed -lbind -lcurl -lGeoIP" +export CPPFLAGS="-DUSE_CURL -DUSE_GEOIP -D_GNU_SOURCE -D_REENTRANT $(pkg-config --cflags-only-I libcurl)" +export LDFLAGS="-Wl,--as-needed $(pkg-config --libs libcurl) -lGeoIP" %configure \ --disable-rpath \ --with-user=%username \ @@ -214,8 +213,12 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Wed Aug 19 2009 Enrico Scholz +* Wed Aug 19 2009 Enrico Scholz - 4.2.3-2 - moved pre-2007 %%changelog entries into ChangeLog.rpm +- do not link against libbind anymore; recent glibc seems to have + fixed its resolver API so that -lresolv can be used by dnsrbl. Old + -lbind conflicts with this library in a subtly way causing segfaults + (#518274). * Wed Aug 19 2009 Enrico Scholz - 4.2.3-1 - updated to 4.2.3