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