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

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
%description
libvmod-curl
%prep
tar -zxf %{S:1}
cd varnish-4.1.1
./configure
make
cd ..
%setup -n libvmod-curl
%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-curl
%if "%{RHVERSION}" == "EL5"
/usr/man/man?/*
%else
/usr/share/man/man?/*
%endif

%changelog
* 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.