%global gem_name scoped_search Summary: Easily search your ActiveRecord models Name: rubygem-%{gem_name} Version: 4.1.8 Release: 1%{?dist} License: MIT URL: https://github.com/wvanbergen/scoped_search/wiki Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem BuildRequires: rubygems-devel BuildArch: noarch # for check section BuildRequires: rubygem(rspec) >= 3.0 BuildRequires: rubygem(rspec) < 4.0 BuildRequires: rubygem(activerecord) >= 4.2.0 BuildRequires: rubygem(actionview) >= 4.2.0 BuildRequires: rubygem(sqlite3) %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 data sets or by a large user base. %package doc BuildArch: noarch Requires: %{name} = %{version}-%{release} Summary: Documentation for rubygem-%{gem_name} %description doc This package contains documentation for rubygem-%{gem_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 %install mkdir -p %{buildroot}%{gem_dir} cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ mv %{buildroot}%{gem_instdir}/{LICENSE,*.rdoc} ./ %check pushd .%{gem_instdir} # Get rid of Bundler, not needed on Fedora. sed -i "/require 'bundler\/setup'/ d" spec/spec_helper.rb EXCLUDE_DATABASE=mysql,postgresql rspec spec popd %files %doc LICENSE %dir %{gem_instdir} %{gem_instdir}/lib %{gem_instdir}/app %{gem_spec} %exclude %{gem_cache} %exclude %{gem_instdir}/.* %files doc %doc %{gem_docdir} %doc CHANGELOG.rdoc CONTRIBUTING.rdoc README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/Gemfile* %{gem_instdir}/spec %{gem_instdir}/%{gem_name}.gemspec %changelog * Sat Aug 22 01:37:59 GMT 2020 Pavel Valena - 4.1.8-1 - Update to scoped_search 4.1.8. Resolves: rhbz#1488457 * Wed Jul 29 2020 Fedora Release Engineering - 4.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 4.1.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 4.1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 4.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 4.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Feb 09 2018 Fedora Release Engineering - 4.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 29 2017 Dominic Cleal - 4.1.0-1 - rebase to scoped_search 4.1.0 * Sat Feb 11 2017 Fedora Release Engineering - 4.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 05 2016 Dominic Cleal - 4.0.0-1 - rebase to scoped_search 4.0.0 * Tue Aug 09 2016 Dominic Cleal - 3.3.0-1 - rebase to scoped_search 3.3.0 * Thu Feb 04 2016 Fedora Release Engineering - 3.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jul 28 2015 Dominic Cleal - 3.2.2-1 - rebase to scoped_search 3.2.2 * Wed Jun 24 2015 Dominic Cleal - 3.2.1-1 - rebase to scoped_search 3.2.1 - remove patches for earlier Rails 4.1 compatibility * Thu Jun 18 2015 Fedora Release Engineering - 2.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Nov 10 2014 Dominic Cleal - 2.7.1-3 - fix Rails 4.1 compatibility (BZ#1107234) - use RSpec2 on Fedora 22 or above * Sun Jun 08 2014 Fedora Release Engineering - 2.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Mar 31 2014 Miroslav Suchý 2.7.1-1 - rebase to scoped_search 2.7.1 * Thu Feb 13 2014 Miroslav Suchý 2.6.3-1 - rebase to scoped_search-2.6.3 * Tue Feb 11 2014 Miroslav Suchý 2.6.2-1 - rebase to scoped_search-2.6.2 * Wed Dec 18 2013 Miroslav Suchý 2.6.1-1 - rebase to scoped_search-2.6.1 * Sun Aug 04 2013 Fedora Release Engineering - 2.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jun 20 2013 Miroslav Suchý 2.6.0-1 - rebase to 2.6.0 release (msuchy@redhat.com) * Wed Apr 03 2013 Miroslav Suchý 2.5.1-1 - rebase to 2.5.1 * Tue Apr 02 2013 Miroslav Suchý 2.5.0-1 - rebase to 2.5.0 * Wed Mar 13 2013 Miroslav Suchý - 2.4.1-2 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 * Mon Mar 11 2013 Miroslav Suchý 2.4.1-1 - rebase to 2.4.1 * Thu Feb 14 2013 Fedora Release Engineering - 2.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Dec 03 2012 Miroslav Suchý 2.4.0-5 - run test only on F18+ (msuchy@redhat.com) - enable tests (msuchy@redhat.com) * Tue Oct 30 2012 Miroslav Suchý 2.4.0-4 - do not run test on rhel6 at all due missing rspec (msuchy@redhat.com) * Tue Oct 30 2012 Miroslav Suchý 2.4.0-3 - remove .travis.yml, add Gemfile.activerecord* (msuchy@redhat.com) * Mon Oct 29 2012 Miroslav Suchý 2.4.0-2 - do not run test, because it is not working (msuchy@redhat.com) - disable testing on other backend but sqllite (msuchy@redhat.com) - update to recent scoped_search-2.4.0.gem (msuchy@redhat.com) * Tue Oct 16 2012 Miroslav Suchý 2.4.0-1 - update to recent scoped_search-2.4.0.gem (msuchy@redhat.com) * Wed Aug 15 2012 Miroslav Suchý 2.3.7-10 - 847504 - move gemspec to -doc subpackage (msuchy@redhat.com) * Wed Aug 15 2012 Miroslav Suchý 2.3.7-9 - test suite is failing on F17 a lot - disable for now (msuchy@redhat.com) - 847504 - use test suite (msuchy@redhat.com) - 847504 - remove dot files in %%install section (msuchy@redhat.com) - 847504 - use macro in SOURCE0 (msuchy@redhat.com) * Tue Aug 14 2012 Miroslav Suchý 2.3.7-8 - 847504 - put in front of chmod link to github issue (msuchy@redhat.com) - 847504 - fix typo in summary (msuchy@redhat.com) * Tue Aug 14 2012 Miroslav Suchý 2.3.7-7 - 847504 - remove cached gem (msuchy@redhat.com) - 847504 - correctly use dist tag (msuchy@redhat.com) - 847504 - rewrap description (msuchy@redhat.com) * Sun Aug 12 2012 Miroslav Suchý 2.3.7-6 - fix spelling error (msuchy@redhat.com) - module scoped_search.rb should not be executable (msuchy@redhat.com) * Sun Aug 12 2012 Miroslav Suchý 2.3.7-5 - buildroot is not needed (msuchy@redhat.com) - change Group to valid item (msuchy@redhat.com) * Fri Aug 10 2012 Miroslav Suchý 2.3.7-4 - there is no need to require rubygems in some version (msuchy@redhat.com) * Fri Aug 10 2012 Miroslav Suchý 2.3.7-3 - there is no need to require rubygems in some version (msuchy@redhat.com) * Thu Aug 09 2012 Miroslav Suchý 2.3.7-2 - fix filelist (msuchy@redhat.com) - create doc subpackage (msuchy@redhat.com) - fix requirements (msuchy@redhat.com) * Thu Aug 09 2012 Miroslav Suchý 2.3.7-1 - edit rubygem-scoped_search.spec according guidelines (msuchy@redhat.com) - import rubygem-scoped_search.spec from foreman-rpms (msuchy@redhat.com)