|
|
@ -4,13 +4,15 @@
|
|
|
|
%global enable_test 1
|
|
|
|
%global enable_test 1
|
|
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 2.7.4
|
|
|
|
Version: 2.7.6
|
|
|
|
Release: 4%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: High performance memcached client for Ruby
|
|
|
|
Summary: High performance memcached client for Ruby
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/mperham/dalli
|
|
|
|
URL: https://github.com/petergoldstein/dalli
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
|
|
|
# git clone https://github.com/petergoldstein/dalli.git && cd dalli
|
|
|
|
|
|
|
|
# git checkout v2.7.6 && tar czvf dalli-2.7.6-tests.tgz test/
|
|
|
|
|
|
|
|
Source1: %{gem_name}-%{version}-tests.tgz
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: ruby(release)
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
%if 0%{enable_test} > 0
|
|
|
|
%if 0%{enable_test} > 0
|
|
|
@ -18,10 +20,10 @@ BuildRequires: memcached
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(mocha)
|
|
|
|
BuildRequires: rubygem(mocha)
|
|
|
|
BuildRequires: rubygem(rails)
|
|
|
|
BuildRequires: rubygem(rails)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(connection_pool)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
High performance memcached client for Ruby
|
|
|
|
High performance memcached client for Ruby
|
|
|
@ -29,7 +31,6 @@ High performance memcached client for Ruby
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
@ -55,10 +56,8 @@ cp -pa .%{gem_dir}/* \
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if 0%{enable_test} > 0
|
|
|
|
%if 0%{enable_test} > 0
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
# connection_pool is not yet in Fedora
|
|
|
|
tar xzvf %{SOURCE1}
|
|
|
|
sed -i -e '3d' test/test_active_support.rb
|
|
|
|
sed -i '/bundler/ s/^/#/' test/helper.rb
|
|
|
|
sed -i -e '491,506d' test/test_active_support.rb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ruby -Ilib:test -e "Dir.glob('./test/test_*.rb').sort.each{ |x| require x }"
|
|
|
|
ruby -Ilib:test -e "Dir.glob('./test/test_*.rb').sort.each{ |x| require x }"
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -68,20 +67,18 @@ popd
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%license %{gem_instdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/Performance.md
|
|
|
|
|
|
|
|
%doc %{gem_instdir}/History.md
|
|
|
|
%doc %{gem_instdir}/History.md
|
|
|
|
%{gem_instdir}/%{gem_name}.gemspec
|
|
|
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Jun 27 2017 Pavel Valena <pvalena@redhat.com> - 2.7.6-1
|
|
|
|
|
|
|
|
- Update to 2.7.6.
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-4
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|