From bfb68bed529ea0458653eec65ab04d4a73d4c09d Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Jul 24 2012 13:48:02 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore index e69de29..3ae6594 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/jquery-rails-2.0.2.gem diff --git a/rubygem-jquery-rails.spec b/rubygem-jquery-rails.spec new file mode 100644 index 0000000..1903475 --- /dev/null +++ b/rubygem-jquery-rails.spec @@ -0,0 +1,82 @@ +# 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 diff --git a/sources b/sources index e69de29..092ef9a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1209916b8e600d3a6aa051015a90bbd4 jquery-rails-2.0.2.gem