Skip to content

Commit

Permalink
Adding CentOS hooks for spec to build on 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmantaiter committed Jul 30, 2013
1 parent 749f8b2 commit 6bc06ca
Showing 1 changed file with 47 additions and 3 deletions.
50 changes: 47 additions & 3 deletions scripts/nutcracker.spec
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
Summary: Twitter's nutcracker redis and memcached proxy
Name: nutcracker
Version: 0.2.2
Version: 0.2.4
Release: 1

URL: http://code.google.com/p/twemproxy/
Source0: %{name}-%{version}.tar.gz
License: Apache License 2.0
Group: System Environment/Libraries
Packager: Tom Parrott <[email protected]>
Packager: Tom Parrott <[email protected]>
BuildRoot: %{_tmppath}/%{name}-root

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool

%description
twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol.
It was primarily built to reduce the connection count on the backend caching servers.

%prep
%setup -q
%if 0%{?rhel} == 6
sed -i 's/2.64/2.63/g' configure.ac
%endif
autoreconf -fvi

%build
Expand Down Expand Up @@ -47,6 +55,42 @@ fi

%files
%defattr(-,root,root,-)
/usr/bin/nutcracker
/usr/sbin/nutcracker
%{_initrddir}/%{name}
%{_mandir}/man8/nutcracker.8.gz
%config(noreplace)%{_sysconfdir}/%{name}/%{name}.yml

%changelog
* Tue July 30 2013 Tait Clarridge <[email protected]>
- Rebuild SPEC to work with CentOS
- Added buildrequires if building with mock/koji

* Tue Apr 23 2013 Manju Rajashekhar <[email protected]>
- twemproxy: version 0.2.4 release
- redis keys must be less than mbuf_data_size() in length (fifsky)
- Adds support for DUMP/RESTORE commands in Redis (remotezygote)
- Use of the weight value in the modula distribution (mezzatto)
- Add support to unix socket connections to servers (mezzatto)
- only check for duplicate server name and not 'host:port:weight' when 'name' is configured
- crc16 hash support added (mezzatto)

* Thu Jan 31 2013 Manju Rajashekhar <[email protected]>
- twemproxy: version 0.2.3 release
- RPOPLPUSH, SDIFF, SDIFFSTORE, SINTER, SINTERSTORE, SMOVE, SUNION, SUNIONSTORE, ZINTERSTORE, and ZUNIONSTORE support (dcartoon)
- EVAL and EVALSHA support (ferenyx)
- exit 1 if configuration file is invalid (cofyc)
- return non-zero exit status when nutcracker cannot start for some reason
- use server names in stats (charsyam)
- Fix failure to resolve long FQDN name resolve (conmame)
- add support for hash tags

* Thu Oct 18 2012 Manju Rajashekhar <[email protected]>
- twemproxy: version 0.2.2 release
- fix the off-by-one error when calculating redis key length

* Fri Oct 12 2012 Manju Rajashekhar <[email protected]>
- twemproxy: version 0.2.1 release
- don't use buf in conf_add_server
- allow an optional instance name for consistent hashing (charsyam)
- add --stats-addr=S option
- add stats-bind-any -a option (charsyam)

0 comments on commit 6bc06ca

Please sign in to comment.