~ubuntu-branches/ubuntu/lucid/varnish/lucid-updates

« back to all changes in this revision

Viewing changes to redhat/varnish.spec

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2010-03-24 13:26:08 UTC
  • mfrom: (0.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100324132608-4uzkavctn26bdwyi
Tags: 2.1.0-1
* New upstream version
* Fix small error in man/vcl.7so

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Summary: High-performance HTTP accelerator
2
2
Name: varnish
3
 
Version: 2.0.6
4
 
Release: 1%{?dist}
 
3
Version: 2.0.7
 
4
Release: 0.1svn20100201r4527%{?dist}
5
5
License: BSD
6
6
Group: System Environment/Daemons
7
7
URL: http://www.varnish-cache.org/
8
8
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
9
9
#Patch0: varnish.varnishtest_debugflag.patch
10
 
#Patch1: varnish.s390x_pagesize.patch
11
 
#Patch2: varnish.sparc_pagesize.patch
12
10
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
11
# The svn sources needs autoconf, automake and libtool to generate a suitable
14
12
# configure script. Release tarballs would not need this
15
13
#BuildRequires: automake autoconf libtool
16
 
BuildRequires: ncurses-devel libxslt groff
 
14
BuildRequires: ncurses-devel libxslt groff pcre-devel pkgconfig
17
15
Requires: varnish-libs = %{version}-%{release}
18
16
Requires: logrotate
19
17
Requires: ncurses
70
68
# Release tarballs would not need this
71
69
#./autogen.sh
72
70
 
73
 
#%patch0 -p0
74
 
#%patch1 -p0
75
 
#%patch2 -p0
 
71
#%patch0
76
72
 
77
73
# Hack to get 32- and 64-bits tests run concurrently on the same build machine
78
74
case `uname -m` in
97
93
# Remove "--disable static" if you want to build static libraries 
98
94
# jemalloc is not compatible with Red Hat's ppc* RHEL5 kernel koji server :-(
99
95
%ifarch ppc64 ppc
100
 
%configure --disable-static --localstatedir=/var/lib --disable-jemalloc
 
96
        if [[ `uname -r` =~ "2.6.18-.*" ]]
 
97
                then %configure --disable-static --localstatedir=/var/lib --disable-jemalloc
 
98
                else %configure --disable-static --localstatedir=/var/lib
 
99
        fi
101
100
%else
102
 
%configure --disable-static --localstatedir=/var/lib
 
101
        %configure --disable-static --localstatedir=/var/lib
103
102
%endif
104
103
 
105
104
# We have to remove rpath - not allowed in Fedora
136
135
        %endif
137
136
%endif
138
137
 
 
138
# The redhat ppc builders seem to have some ulimit problems?
 
139
# These tests work on a rhel4 ppc/ppc64 instance outside the builders
 
140
%ifarch ppc64 ppc
 
141
        %if 0%{?rhel} == 4
 
142
                rm bin/varnishtest/tests/c00031.vtc
 
143
                rm bin/varnishtest/tests/r00387.vtc
 
144
        %endif
 
145
%endif
 
146
 
 
147
# p class checks are still unstable
 
148
rm bin/varnishtest/tests/p*.vtc
 
149
 
139
150
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
140
151
%{__make} check LD_LIBRARY_PATH="../../lib/libvarnish/.libs:../../lib/libvarnishcompat/.libs:../../lib/libvarnishapi/.libs:../../lib/libvcl/.libs"
141
152
 
239
250
%postun libs -p /sbin/ldconfig
240
251
 
241
252
%changelog
 
253
* Mon Jan 25 2010 Ingvar Hagelund <ingvar@linpro.no> - 2.0.7-0.1
 
254
- changes-2.0.6.html works now, so remove fix
 
255
- Added pcre-devel and pkgconfig to the build requirements
 
256
 
 
257
* Wed Dec 23 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-2
 
258
- Added a test that enables jemalloc on ppc if the kernel is
 
259
  not a rhel5 kernel (as on redhat builders)
 
260
- Removed tests c00031.vtc and r00387on rhel4/ppc as they fail
 
261
  on the Red Hat ppc builders (but works on my rhel4 ppc instance)
 
262
- Added a patch that fixes broken changes-2.0.6.html in doc
 
263
 
242
264
* Mon Dec 14 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.6-1
243
265
- New upstream release
 
266
- Removed patches for libjemalloc, as they are added upstream
244
267
 
245
268
* Mon Nov 09 2009 Ingvar Hagelund <ingvar@linpro.no> - 2.0.5-1
246
269
- New upstream release