A new user interface for you!

File libvmod-curl.spec of Package libvmod-curl

%define VARNISHSRC /home/abuild/rpmbuild/BUILD/varnish-4.1.1

Summary: CURL support for Varnish VCL
Name: libvmod-curl
Version: 0.3
Release: 1
License: BSD
Group: System Environment/Daemons
Source0: libvmod-curl.tar.gz
Source1: varnish-4.1.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# we need EPEL, or at least mhash + mhash-devel from it:
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
Requires: varnish > 3.0
BuildRequires: make, autoconf, automake, libtool, python-docutils, curl-devel, ncurses-devel, libxslt, groff, pcre-devel, pkgconfig, libedit-devel
tar -zxf %{S:1}
cd varnish-4.1.1
cd ..
%setup -n libvmod-curl
# 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=/usr/lib64/varnish/vmods/ --prefix=/usr/  --docdir='${datarootdir}/doc/%{name}'
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}
# /opt/varnish/lib/varnish/vmods/
%if "%{RHVERSION}" == "EL5"

* Fri Apr 4 2014 Lasse Karstensen <support@varnish-software.com> - 0.3-1
- Tag a 0.3 release.

* Wed Nov 14 2012 Lasse Karstensen <lasse@varnish-software.com> - 0.1-0.20121114
- Initial version.