diff --git a/.gitignore b/.gitignore index e69de29..3e02ed9 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/vmod-querystring-1.0.1.tar.gz diff --git a/sources b/sources index e69de29..e7966ac 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (vmod-querystring-1.0.1.tar.gz) = c579a84ce37c7febdce790c65dbe66328face05a35ca29d47d54b9dcd5286db9a1d65502988e3dc976116b21cb28fd6c3769551bec88c47ad2cd6f56a61585ed diff --git a/vmod-querystring.spec b/vmod-querystring.spec new file mode 100644 index 0000000..3b3adb2 --- /dev/null +++ b/vmod-querystring.spec @@ -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 - 1.0.1-1 +- Initial spec.