Summary: Drupal 7 VMOD for Varnish
Name: vmod-drupal7
Version: 0.1
Release: 1%{?dist}
License: BSD
Group: System Environment/Daemons
Source0: libvmod-drupal7.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: varnish > 3.0
BuildRequires: make
BuildRequires: python-docutils

Drupal 7 VMOD provides Drupal-related functions within Varnish.

%setup -n libvmod-drupal7

# this assumes that VARNISHSRC is defined on the rpmbuild command line, like this:
# rpmbuild -bb --define 'VARNISHSRC /home/user/rpmbuild/BUILD/varnish-3.0.3' redhat/*spec
./configure VARNISHSRC=%{VARNISHSRC} VMODDIR="$(PKG_CONFIG_PATH=%{VARNISHSRC} pkg-config --variable=vmoddir varnishapi)" --prefix=/usr/ --docdir='${datarootdir}/doc/%{name}'
make check

make install DESTDIR=%{buildroot}

rm -rf %{buildroot}

%doc /usr/share/doc/%{name}/*

* Wed Feb 04 2015 Xavier Guerrin <> - 0.1-0.20150204
- Initial version.