A new user interface for you!

File libvmod-digest.spec of Package libvmod-digest

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

Summary: libmhash support for Varnish VCL
Name: libvmod-digest
Version: 3.0
Release: 1%{?dist}
License: BSD
Group: System Environment/Daemons
Source0: libvmod-digest.tar.gz
Source1: varnish-3.0.7.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, mhash
BuildRequires: make, autoconf, automake, libtool, python-docutils, mhash-devel, ncurses-devel, libxslt, groff, pcre-devel, pkgconfig, libedit-devel
tar -zxf %{S:1}
cd varnish-3.0.7
cd ..
%setup -n libvmod-digest
# 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"
* Wed Oct 03 2012 Lasse Karstensen <lasse@varnish-software.com> - 0.1-0.20120918
- Initial version.