[packages/varnish-libvmod-var] new version 0.1

glen glen at pld-linux.org
Sun Mar 23 21:59:05 CET 2014


commit 843a9e944a3f900b3bb0d923a20a6d6099d05d6c
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 23 22:58:32 2014 +0200

    new version 0.1
    
    based on varnish-libvmod-cookie.spec

 varnish-libvmod-var.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
---
diff --git a/varnish-libvmod-var.spec b/varnish-libvmod-var.spec
new file mode 100644
index 0000000..f97520a
--- /dev/null
+++ b/varnish-libvmod-var.spec
@@ -0,0 +1,71 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define	vmod	var
+Summary:	Variable support VMOD
+Name:		varnish-libvmod-%{vmod}
+Version:	0.1
+Release:	0.1
+License:	BSD
+Group:		Daemons
+Source0:	https://github.com/varnish/libvmod-var/archive/3.0/%{vmod}-%{version}.tar.gz
+# Source0-md5:	5215b83ff6debb9c5bae01cd21f4e6e0
+URL:		https://github.com/varnish/libvmod-var
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
+BuildRequires:	python-docutils
+BuildRequires:	varnish-source
+%{?with_tests:BuildRequires:	varnish}
+%requires_eq_to varnish varnish-source
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		vmoddir	%(pkg-config --variable=vmoddir varnishapi || echo ERROR)
+
+%description
+This VMOD implements basic variable in VCL. Well. It's more of an
+association list with support for strings, ints and reals.
+
+There are methods to get and set each type.
+
+Global variables have a lifespan that extends across requests and
+VCLs, for as long as the vmod is loaded. Non-globals are local to a
+single request.
+
+%prep
+%setup -qc
+mv libvmod-%{vmod}-*/* .
+
+%build
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+
+VARNISHSRC=$(pkg-config --variable=srcdir varnishapi)
+%configure \
+	VARNISHSRC=$VARNISHSRC \
+	VMODDIR=%{vmoddir} \
+	--disable-static
+
+%{__make}
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/varnish/vmods/libvmod_%{vmod}.la
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libvmod-%{vmod}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/vmod_example.3*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE
+%attr(755,root,root) %{vmoddir}/libvmod_%{vmod}.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/varnish-libvmod-var.git/commitdiff/843a9e944a3f900b3bb0d923a20a6d6099d05d6c



More information about the pld-cvs-commit mailing list