[packages/varnish-libvmod-crashhandler] new, version 1.0

glen glen at pld-linux.org
Mon Mar 24 07:18:14 CET 2014


commit 4422a3e9569105535cfddcff2c053f3b08b72d81
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Mar 24 08:17:45 2014 +0200

    new, version 1.0

 varnish-libvmod-crashhandler.spec | 67 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
---
diff --git a/varnish-libvmod-crashhandler.spec b/varnish-libvmod-crashhandler.spec
new file mode 100644
index 0000000..9371b35
--- /dev/null
+++ b/varnish-libvmod-crashhandler.spec
@@ -0,0 +1,67 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define	vmod	crashhandler
+Summary:	Crash handler for Varnish
+Name:		varnish-libvmod-%{vmod}
+Version:	1.0
+Release:	1
+License:	BSD
+Group:		Daemons
+Source0:	https://github.com/varnish/libvmod-crashhandler/archive/master/%{vmod}-%{version}.tar.gz
+# Source0-md5:	84f8e7cc77b972e2b16705aae87e1484
+URL:		https://github.com/varnish/libvmod-crashhandler
+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
+Varnish 3.0 Module that catches segfaults (SIGSEGV) and issues the
+regular panic code to get a back trace.
+
+Also includes a function to trigger a segfault forcibly. Use at your
+own peril.
+
+%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} -j1
+%{?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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%attr(755,root,root) %{vmoddir}/libvmod_%{vmod}.so
+%{_mandir}/man3/vmod_%{vmod}.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/varnish-libvmod-crashhandler.git/commitdiff/4422a3e9569105535cfddcff2c053f3b08b72d81



More information about the pld-cvs-commit mailing list