# Generated from jquery-rails-2.0.2.gem by gem2rpm -*- rpm-spec -*- %global gem_name jquery-rails %global rubyabi 1.9.1 Summary: Use jQuery with Rails 3 Name: rubygem-%{gem_name} Version: 2.0.2 Release: 1%{?dist} Group: Development/Languages # jquery-rails itself is MIT, bundled JavaScripts are the rest License: MIT and (MIT or GPLv2) and (MIT or BSD or GPLv2) and BSD URL: http://rubygems.org/gems/jquery-rails Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: rubygem(railties) >= 3.2.0 Requires: rubygem(railties) < 5.0 Requires: rubygem(thor) => 0.14 Requires: rubygem(thor) < 1 BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description This gem provides jQuery and the jQuery-ujs driver for your Rails 3 application. %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gem_dir} gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # no tests :( # see https://github.com/rails/jquery-rails/pull/56 # rspec spec popd %files %dir %{gem_instdir} %doc %{gem_instdir}/LICENSE # bunch of bundled JS files here %{gem_instdir}/vendor %{gem_libdir} %exclude %{gem_cache} %exclude %{gem_instdir}/.* %exclude %{gem_instdir}/Gemfile.lock %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %{gem_instdir}/Gemfile %{gem_instdir}/%{gem_name}.gemspec %{gem_instdir}/Rakefile %doc %{gem_instdir}/README.md %{gem_instdir}/spec %changelog * Mon Jul 23 2012 Bohuslav Kabrda - 2.0.2-1 - Initial package