!3 rubygem-redis升级至4.6.0版本
From: @wu-leilei Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
23cf7bdf5b
BIN
redis-4.0.1.gem
BIN
redis-4.0.1.gem
Binary file not shown.
BIN
redis-4.6.0.gem
Normal file
BIN
redis-4.6.0.gem
Normal file
Binary file not shown.
@ -1,9 +0,0 @@
|
|||||||
dir ./test/db
|
|
||||||
pidfile ./redis.pid
|
|
||||||
port 6381
|
|
||||||
unixsocket ./redis.sock
|
|
||||||
timeout 300
|
|
||||||
loglevel debug
|
|
||||||
logfile stdout
|
|
||||||
databases 16
|
|
||||||
daemonize yes
|
|
||||||
@ -1,14 +1,14 @@
|
|||||||
%global gem_name redis
|
%global gem_name redis
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 4.0.1
|
Version: 4.6.0
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: A Ruby client library for Redis
|
Summary: A Ruby client library for Redis
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/redis/redis-rb
|
URL: https://github.com/redis/redis-rb
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
# We will use this static file to start a testing redis server instance
|
Source1: https://github.com/redis/redis-rb/archive/refs/tags/v%{version}.tar.gz
|
||||||
Source1: redis-test.conf
|
BuildRequires: ruby ruby(release) rubygems-devel rubygem(test-unit) redis make rubygem(hiredis) rubygem(minitest) rubygem(mocha)
|
||||||
BuildRequires: ruby ruby(release) rubygems-devel rubygem(test-unit) redis
|
BuildRequires: %{_bindir}/redis-server
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%description
|
%description
|
||||||
A Ruby client that tries to match Redis' API one-to-one, while still
|
A Ruby client that tries to match Redis' API one-to-one, while still
|
||||||
@ -22,26 +22,34 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -n %{gem_name}-%{version} -b 1
|
||||||
%gem_install -n %{SOURCE0}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
%check
|
%gem_install
|
||||||
pushd .%{gem_instdir}
|
|
||||||
cp -p %{SOURCE1} test/test.conf
|
|
||||||
redis-server test/test.conf
|
|
||||||
LANG=C.UTF-8
|
|
||||||
export SOCKET_PATH="test/db/redis.sock"
|
|
||||||
ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
||||||
kill -INT `cat test/db/redis.pid`
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
rm -r %{buildroot}%{gem_instdir}/test
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
cp -a %{_builddir}/redis-rb-%{version}/{makefile,test} .
|
||||||
|
sed -i "s/bundle exec rake test/ruby -Ilib:test -e \"Dir.glob('.\/test\/**\/*_test.rb').sort.each {|t| require t}\"/" \
|
||||||
|
makefile
|
||||||
|
mkdir bin
|
||||||
|
echo '#!/usr/bin/sh' > bin/build
|
||||||
|
chmod a+x bin/build
|
||||||
|
mv %{_builddir}/redis-rb-%{version}/bin/cluster_creator bin/
|
||||||
|
LANG=C.UTF-8
|
||||||
|
for driver in ruby hiredis ; do
|
||||||
|
export DRIVER=$driver
|
||||||
|
make BINARY=$(which redis-server) REDIS_CLIENT=$(which redis-cli) BUILD_DIR='${TMP}'
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
@ -55,13 +63,10 @@ rm -r %{buildroot}%{gem_instdir}/test
|
|||||||
%doc %{gem_docdir}
|
%doc %{gem_docdir}
|
||||||
%doc %{gem_instdir}/CHANGELOG.md
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
%{gem_instdir}/%{gem_name}.gemspec
|
|
||||||
%{gem_instdir}/Gemfile
|
|
||||||
%{gem_instdir}/makefile
|
|
||||||
%{gem_instdir}/bors.toml
|
|
||||||
%{gem_instdir}/benchmarking/
|
|
||||||
%{gem_instdir}/examples/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 30 2022 wulei <wulei80@h-partners.com> - 4.6.0-1
|
||||||
|
- Upgrade to 4.6.0
|
||||||
|
|
||||||
* Tue Aug 18 2020 huangyangke <huangyangke@huawei.com> - 4.0.1-1
|
* Tue Aug 18 2020 huangyangke <huangyangke@huawei.com> - 4.0.1-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
BIN
v4.6.0.tar.gz
Normal file
BIN
v4.6.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user