A new user interface for you! Read more...

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
%description
libvmod-digest
%prep
tar -zxf %{S:1}
cd varnish-3.0.7
./configure
make
cd ..
%setup -n libvmod-digest
%build
./autogen.sh
# 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
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
# /opt/varnish/lib/varnish/vmods/
/usr/lib64/varnish/
/usr/share/doc/libvmod-digest/
%if "%{RHVERSION}" == "EL5"
/usr/man/man?/*
%else
/usr/share/man/man?/*
%endif
%changelog
* Wed Oct 03 2012 Lasse Karstensen <lasse@varnish-software.com> - 0.1-0.20120918
- Initial version.