781c413
%global vmoddir %{_libdir}/varnish/vmods
781c413
781c413
Name:           vmod-querystring
781c413
Version:        1.0.1
781c413
Release:        1%{?dist}
781c413
Group:          System Environment/Libraries
781c413
Summary:        QueryString module for Varnish Cache
781c413
URL:            https://github.com/dridi/libvmod-querystring
781c413
License:        GPLv3+
781c413
781c413
Source:         %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
781c413
781c413
BuildRequires:  python-docutils
781c413
BuildRequires:  varnish >= 4.1.3
781c413
BuildRequires:  pkgconfig(varnishapi) >= 4.1.3
781c413
781c413
Requires:       varnish >= 4.1.3
781c413
781c413
781c413
%description
781c413
The purpose of this module is to give you a fine-grained control over a URL's
781c413
query-string in Varnish Cache. It's possible to remove the query-string, clean
781c413
it, sort its parameters or filter it to only keep a subset of them.
781c413
781c413
This can greatly improve your hit ratio and efficiency with Varnish, because
781c413
by default two URLs with the same path but different query-strings are also
781c413
different. This is what the RFCs mandate but probably not what you usually
781c413
want for your web site or application.
781c413
781c413
A query-string is just a character string starting after a question mark in a
781c413
URL. But in a web context, it is usually a structured key/values store encoded
781c413
with the `application/x-www-form-urlencoded' media type. This module deals
781c413
with this kind of query-strings.
781c413
781c413
781c413
%prep
781c413
%setup -q
781c413
781c413
781c413
%build
781c413
%configure --disable-silent-rules
781c413
%make_build CFLAGS="%{optflags}"
781c413
781c413
781c413
%install
781c413
%make_install
781c413
rm %{buildroot}%{vmoddir}/*.la
781c413
781c413
781c413
%check
781c413
make %{?_smp_mflags} check
781c413
781c413
781c413
%files
781c413
%license LICENSE
781c413
%{_mandir}/man?/*
781c413
%{_docdir}/*
781c413
%{vmoddir}/*.so
781c413
781c413
781c413
%changelog
781c413
* Sun Sep 25 2016 Dridi Boukelmoune <dridi.boukelmoune@gmail.com> - 1.0.1-1
781c413
- Initial spec.