[packages/varnish-libvmod-cookie] new, version 0.1

glen glen at pld-linux.org
Sun Mar 23 21:47:14 CET 2014


commit 24c7684c90afa2ca30eb9cfb734f89ea8f345d84
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 23 22:46:56 2014 +0200

    new, version 0.1
    
    based on upstream .spec

 varnish-libvmod-cookie.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
---
diff --git a/varnish-libvmod-cookie.spec b/varnish-libvmod-cookie.spec
new file mode 100644
index 0000000..8612dc1
--- /dev/null
+++ b/varnish-libvmod-cookie.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define	vmod	cookie
+Summary:	Cookie VMOD for Varnish
+Name:		varnish-libvmod-%{vmod}
+Version:	0.1
+Release:	1
+License:	BSD
+Group:		Daemons
+Source0:	https://github.com/lkarsten/libvmod-cookie/archive/3.0/%{vmod}-%{version}.tar.gz
+# Source0-md5:	2c5ad49c59e9f9494d4518c1ea42a562
+URL:		https://github.com/lkarsten/libvmod-cookie
+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
+Cookie VMOD for Varnish.
+
+%prep
+%setup -qc
+mv libvmod-cookie-*/* .
+
+%build
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
+
+VARNISHSRC=$(pkg-config --variable=srcdir varnishapi)
+%configure \
+	VARNISHSRC=$VARNISHSRC \
+	VMODDIR=%{vmoddir}
+
+%{__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_cookie.la
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libvmod-cookie
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%attr(755,root,root) %{vmoddir}/libvmod_cookie.so
+%{_mandir}/man3/vmod_cookie.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/varnish-libvmod-cookie.git/commitdiff/24c7684c90afa2ca30eb9cfb734f89ea8f345d84



More information about the pld-cvs-commit mailing list