Revision 311d6a85
Added by Dominic Cleal over 7 years ago
rubygem-scoped_search/rubygem-scoped_search.spec | ||
---|---|---|
Summary: Easily search your ActiveRecord models
|
||
Name: %{?scl_prefix}rubygem-%{gem_name}
|
||
|
||
Version: 3.3.0
|
||
Version: 4.0.0
|
||
Release: 1%{?dist}
|
||
Group: Development/Languages
|
||
License: MIT
|
||
... | ... | |
Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||
Requires: %{?scl_prefix_ruby}ruby(release)
|
||
Requires: %{?scl_prefix_ruby}rubygems
|
||
Requires: %{?scl_prefix_ror}rubygem-activerecord >= 3.2.0
|
||
Requires: %{?scl_prefix_ror}rubygem(activerecord) >= 4.2.0
|
||
BuildRequires: %{?scl_prefix_ruby}ruby
|
||
BuildRequires: %{?scl_prefix_ruby}rubygems
|
||
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
||
... | ... | |
%if 0%{?fedora} > 21
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(rspec) >= 3.0
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(rspec) < 4.0
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(activerecord)
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(activerecord) >= 4.2.0
|
||
BuildRequires: %{?scl_prefix_ror}rubygem(sqlite3)
|
||
%endif
|
||
|
||
... | ... | |
%build
|
||
mkdir -p .%{gem_dir}
|
||
|
||
%{?scl:scl enable %{scl} "}
|
||
# Create the gem as gem install only works on a gem file
|
||
%{?scl:"}
|
||
%{?scl:scl enable %{scl} "}
|
||
gem build %{gem_name}.gemspec
|
||
%{?scl:"}
|
||
... | ... | |
%install
|
||
mkdir -p %{buildroot}%{gem_dir}
|
||
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{.yardoc,.gitignore,.infinity_test,.travis.yml}
|
||
mv %{buildroot}%{gem_instdir}/{LICENSE,*.rdoc} ./
|
||
rm %{buildroot}%{gem_cache}
|
||
|
||
%check
|
||
pushd .%{gem_instdir}
|
||
# Get rid of Bundler, not needed on Fedora.
|
||
sed -i "/require 'bundler\/setup'/ d" spec/spec_helper.rb
|
||
# sqlite3-ruby and sqlite3 are identical rubygems, where the former is
|
||
# older name for the gem. Would be nice if upstream support both
|
||
# reincarnations.
|
||
# do not test on postgresql and ruby
|
||
sed '5,15d' -i spec/database.ruby.yml
|
||
# tests require rspec 3, only on F22+
|
||
%if 0%{?fedora} > 21
|
||
%{?scl:scl enable %{scl} "}
|
||
rspec spec
|
||
EXCLUDE_DATABASE=mysql,postgresql rspec spec
|
||
%{?scl:"}
|
||
%endif
|
||
popd
|
||
... | ... | |
%{gem_instdir}/lib
|
||
%{gem_instdir}/app
|
||
%{gem_spec}
|
||
%exclude %{gem_cache}
|
||
%exclude %{gem_instdir}/.*
|
||
|
||
%files doc
|
||
%doc %{gem_docdir}
|
rubygem-scoped_search/scoped_search-3.3.0.gem | ||
---|---|---|
../.git/annex/objects/v9/Xj/SHA256E-s49664--ea3606405bfc74c07afd9d4256632f06e0c40bf52564b4063c4dbec0e3f39145.0.gem/SHA256E-s49664--ea3606405bfc74c07afd9d4256632f06e0c40bf52564b4063c4dbec0e3f39145.0.gem
|
rubygem-scoped_search/scoped_search-4.0.0.gem | ||
---|---|---|
../.git/annex/objects/6j/0V/SHA256E-s49152--c9a63107449ba507aa075408c1b9d787e5fb608012f7c7685f1112a47aca0c5a.0.gem/SHA256E-s49152--c9a63107449ba507aa075408c1b9d787e5fb608012f7c7685f1112a47aca0c5a.0.gem
|
Also available in: Unified diff
Update scoped_search to 4.0.0