[packages/mcrouter] new, version 1.0 (from configure.ac)

glen glen at pld-linux.org
Mon Apr 6 09:55:20 CEST 2015


commit 1516b3b76d72b7cadb8726ba94b6191044eaceb0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Apr 6 10:54:26 2015 +0300

    new, version 1.0 (from configure.ac)
    
    based on gist
    https://gist.github.com/shivaken/a911d50a9f0069ed7bfa

 mcrouter.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/mcrouter.spec b/mcrouter.spec
new file mode 100644
index 0000000..e6cd22b
--- /dev/null
+++ b/mcrouter.spec
@@ -0,0 +1,58 @@
+# TODO:
+# - compile fails: undefined reference to `jump_fcontext'
+%define	gitrev	39a7572
+Summary:	Memcached protocol router for scaling memcached deployments
+Name:		mcrouter
+# version from configure.ac
+Version:	1.0
+Release:	0.1
+License:	BSD
+Group:		Daemons
+Source0:	https://github.com/facebook/mcrouter/archive/%{gitrev}/%{name}-%{gitrev}.tar.gz
+# Source0-md5:	f99eb19ccd41169e9570ca2b1d152b8a
+URL:		https://github.com/facebook/mcrouter
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	boost-devel >= 1.51.0
+BuildRequires:	double-conversion-devel
+BuildRequires:	gflags-devel
+BuildRequires:	glog-devel
+BuildRequires:	libstdc++-devel
+BuildRequires:	libtool
+BuildRequires:	openssl-devel
+BuildRequires:	ragel
+# needs folly, which builds on x86-64 only
+ExclusiveArch:	%{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mcrouter is a memcached protocol router for scaling memcached
+<http://memcached.org/> deployments. It's a core component of cache
+infrastructure at Facebook and Instagram where mcrouter handles almost
+5 billion requests per second at peak.
+
+%prep
+%setup -qc
+mv mcrouter-*/* .
+
+%build
+cd mcrouter
+%{__aclocal} -I m4
+%{__libtoolize}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install -C mcrouter \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/mcrouter
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mcrouter.git/commitdiff/1516b3b76d72b7cadb8726ba94b6191044eaceb0



More information about the pld-cvs-commit mailing list