diff --git a/binaries/_buildenv b/binaries/_buildenv new file mode 100644 index 0000000..4bf3de8 --- /dev/null +++ b/binaries/_buildenv @@ -0,0 +1,346 @@ + + aarch64 + d4a4e0903082233370693c757fdc9574 + 340cef0d7db9612782689dfc0a21e313 + 4.2.2-10 + 16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/binaries/_statistics b/binaries/_statistics new file mode 100644 index 0000000..393a911 --- /dev/null +++ b/binaries/_statistics @@ -0,0 +1,15 @@ + + + + + + + + + + + 930 + 1684 + 0 + + diff --git a/binaries/rubygem-jquery-rails-4.2.2-1.oe1.noarch.rpm b/binaries/rubygem-jquery-rails-4.2.2-1.oe1.noarch.rpm new file mode 100644 index 0000000..5283b84 Binary files /dev/null and b/binaries/rubygem-jquery-rails-4.2.2-1.oe1.noarch.rpm differ diff --git a/binaries/rubygem-jquery-rails-doc-4.2.2-1.oe1.noarch.rpm b/binaries/rubygem-jquery-rails-doc-4.2.2-1.oe1.noarch.rpm new file mode 100644 index 0000000..2bad146 Binary files /dev/null and b/binaries/rubygem-jquery-rails-doc-4.2.2-1.oe1.noarch.rpm differ diff --git a/jquery-rails-4.2.2.gem b/jquery-rails-4.2.2.gem new file mode 100644 index 0000000..a6f49d8 Binary files /dev/null and b/jquery-rails-4.2.2.gem differ diff --git a/rubygem-jquery-rails.spec b/rubygem-jquery-rails.spec new file mode 100644 index 0000000..c833e22 --- /dev/null +++ b/rubygem-jquery-rails.spec @@ -0,0 +1,104 @@ +%global gem_name jquery-rails +%global jquery1_version 1.12.4 +%global jquery1_system_version 1.12.4 +%global jquery2_version 2.2.4 +%global jquery2_system_version 2.2.4 +%global jquery3_version 3.1.1 +%global unbundle_jquery1 1 +%global unbundle_jquery2 1 +Name: rubygem-%{gem_name} +Version: 4.2.2 +Release: 1 +Summary: Use jQuery with Rails 4+ +License: MIT +URL: https://github.com/rails/jquery-rails +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +%{?unbundle_jquery1:Requires: jquery = %{jquery1_version}} +%{?unbundle_jquery2:Requires: jquery = %{jquery2_version}} +%{?unbundle_jquery3:Requires: jquery = %{jquery3_version}} +BuildRequires: ruby(release) rubygems-devel ruby web-assets-devel +%{?unbundle_jquery1:BuildRequires: jquery = %{jquery1_version}} +%{!?unbundle_jquery1:BuildRequires: jquery = %{jquery1_system_version}} +%{?unbundle_jquery2:BuildRequires: jquery = %{jquery2_version}} +%{!?unbundle_jquery2:BuildRequires: jquery = %{jquery2_system_version}} +%{?unbundle_jquery3:BuildRequires: jquery = %{jquery3_version}} +BuildRequires: rubygem(activesupport) rubygem(nokogiri) rubygem(rails-dom-testing) +Provides: bundled(jquery-usj) = 1.2.2 +%{!?unbundle_jquery1:Provides: bundled(js-jquery) = %{jquery1_version}} +%{!?unbundle_jquery2:Provides: bundled(js-jquery) = %{jquery2_version}} +%{!?unbundle_jquery3:Provides: bundled(js-jquery) = %{jquery3_version}} +BuildArch: noarch +%description +This gem provides jQuery and the jQuery-ujs driver for your Rails 4+ +application. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +%setup -q -c -T +%gem_install -n %{SOURCE0} +%{?unbundle_jquery1: rm .%{gem_instdir}/vendor/assets/javascripts/jquery.*} +%{?unbundle_jquery2: rm .%{gem_instdir}/vendor/assets/javascripts/jquery2.*} +%{?unbundle_jquery3: rm .%{gem_instdir}/vendor/assets/javascripts/jquery3.*} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +%if 0%{?unbundle_jquery1} +for file in %{_jsdir}/jquery/1/*; do + ln -s -f $file -t %{buildroot}%{gem_instdir}/vendor/assets/javascripts/ +done +%endif +%if 0%{?unbundle_jquery2} +for file in %{_jsdir}/jquery/2/*; do + ln -s -f $file %{buildroot}%{gem_instdir}/vendor/assets/javascripts/$(basename $file | sed 's/jquery/jquery2/') +done +%endif +%if 0%{?unbundle_jquery3} +for file in %{_jsdir}/jquery/3/*; do + ln -s -f $file %{buildroot}%{gem_instdir}/vendor/assets/javascripts/$(basename $file | sed 's/jquery/jquery3/') +done +%endif + +%check +pushd .%{gem_instdir} +ruby -Ilib -rjquery/rails/version -e ' +exit \ + Jquery::Rails::JQUERY_VERSION == "%{jquery1_version}" && \ + Jquery::Rails::JQUERY_2_VERSION == "%{jquery2_version}" && \ + Jquery::Rails::JQUERY_3_VERSION == "%{jquery3_version}" +' +ruby -Itest -rostruct -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' +popd + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%{gem_instdir}/vendor +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_instdir}/VERSIONS.md +%{gem_instdir}/Gemfile +%doc %{gem_instdir}/README.md +%{gem_instdir}/Rakefile +%{gem_instdir}/jquery-rails.gemspec +%{gem_instdir}/test + +%changelog +* Tue Aug 25 2020 huanghaitao - 4.2.2-1 +- package init diff --git a/rubygem-jquery-rails.yaml b/rubygem-jquery-rails.yaml new file mode 100644 index 0000000..92ea2aa --- /dev/null +++ b/rubygem-jquery-rails.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: rails/jquery-rails +tag_prefix: "jquery-rails-" +separator: "."