Summary: Varnish is a high-performance HTTP accelerator
Name: varnish
Version: 2.0
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: System Environment/Daemons
URL: http://www.varnish-cache.org/
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
+Patch0: varnish.varnishtest_debugflag.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# The svn sources needs autoconf, automake and libtool to generate a suitable
# configure script. Release tarballs would not need this
%setup -q
#%setup -q -n varnish-cache
+%patch0 -p0
+
# The svn sources needs to generate a suitable configure script
# Release tarballs would not need this
#./autogen.sh
%endif
%check
+# rhel5 on ppc64 is just too strange
+%ifarch ppc64
+ %if 0%{?rhel} > 4
+ cp bin/varnishd/.libs/varnishd bin/varnishd/lt-varnishd
+ %endif
+%endif
+
LD_LIBRARY_PATH="lib/libvarnish/.libs:lib/libvarnishcompat/.libs:lib/libvarnishapi/.libs:lib/libvcl/.libs" bin/varnishd/varnishd -b 127.0.0.1:80 -C -n /tmp/foo
%{__make} check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs"
%postun libs -p /sbin/ldconfig
%changelog
+* Thu Oct 16 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-2
+- Readded the debugflag patch. It's so practical
+- Added a strange workaround for make check on ppc64
+
* Wed Oct 15 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-1
- 2.0 released. New upstream sources
- Disabled jemalloc on ppc and ppc64. Added a note in README.redhat.