# Generated from scoped_search-4.1.7.gem by gem2rpm -*- rpm-spec -*- %global gem_name scoped_search Name: rubygem-%{gem_name} Version: 4.1.7 Release: 1%{?dist} Summary: Easily search you ActiveRecord models with a simple query language using a named scope License: MIT URL: https://github.com/wvanbergen/scoped_search/wiki Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(rspec) >= 3.0 # BuildRequires: rubygem(rspec) < 4 BuildArch: noarch %description Scoped search makes it easy to search your ActiveRecord-based models. It will create a named scope :search_for that can be called with a query string. It will build an SQL query using the provided query string and a definition that specifies on what fields to search. Because the functionality is built on named_scope, the result of the search_for call can be used like any other named_scope, so it can be chained with another scope or combined with will_paginate. Because it uses standard SQL, it does not require any setup, indexers or daemons. This makes scoped_search suitable to quickly add basic search functionality to your application with little hassle. On the other hand, it may not be the best choice if it is going to be used on very large datasets or by a large user base. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # rspec spec popd %files %dir %{gem_instdir} %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/LICENSE %{gem_instdir}/app %{gem_libdir} %exclude %{gem_instdir}/scoped_search.gemspec %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.rdoc %doc %{gem_instdir}/CONTRIBUTING.rdoc %{gem_instdir}/Gemfile %{gem_instdir}/Gemfile.activerecord42 %{gem_instdir}/Gemfile.activerecord50 %{gem_instdir}/Gemfile.activerecord51 %{gem_instdir}/Gemfile.activerecord52 %{gem_instdir}/Gemfile.activerecord52_with_activesupport52 %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/spec %changelog * Tue May 07 2019 mockbuilder - 4.1.7-1 - Initial package