Skip to content

Instantly share code, notes, and snippets.

@shivaken
Created February 2, 2015 16:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shivaken/a911d50a9f0069ed7bfa to your computer and use it in GitHub Desktop.
Save shivaken/a911d50a9f0069ed7bfa to your computer and use it in GitHub Desktop.
Name: mcrouter
Version: 1.0.0
Release: 1%{?dist}
License: BSD
URL: https://github.com/facebook/mcrouter
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: glibc-devel m4 autoconf gcc gcc-c++ openssl-devel
BuildRequires: gflags-devel glog-devel
Source0: https://github.com/facebook/mcrouter/archive/master.tar.gz
Summary: Memcached protocol router for scaling memcached deployments
Group: System Environment/Daemons
Requires: gflags glog
%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 -q -n %{name}-master/%{name}
autoreconf -if
%build
%configure
make prefix=%{prefix}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root, -)
%{_bindir}/mcrouter
%changelog
* Sun Feb 1 2015 Kenichi Otsuka <shivaken@gmail.com> - 1.0.0
- initial package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment