Blame SPECS/rubygem-jquery-rails.spec

f89626
%{?scl:%scl_package rubygem-%{gem_name}}
f89626
%{!?scl:%global pkg_name %{name}}
f89626
f89626
# Generated from jquery-rails-2.0.2.gem by gem2rpm -*- rpm-spec -*-
f89626
%global gem_name jquery-rails
f89626
f89626
Name: %{?scl_prefix}rubygem-%{gem_name}
f89626
Version: 4.0.4
f89626
Release: 4%{?dist}
f89626
Summary: Use jQuery with Rails 4+
f89626
Group: Development/Languages
f89626
License: MIT
f89626
URL: http://rubygems.org/gems/jquery-rails
f89626
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
f89626
f89626
Requires:      %{?scl_prefix_ruby}ruby(release)
f89626
Requires:      %{?scl_prefix_ruby}ruby(rubygems) >= 1.3.6
f89626
Requires:      %{?scl_prefix}rubygem(railties) >= 4.2.0
f89626
Requires:      %{?scl_prefix}rubygem(thor) >= 0.14
f89626
Requires:      %{?scl_prefix}rubygem(thor) < 2.0
f89626
Requires:      %{?scl_prefix}rubygem(rails-dom-testing) => 1.0
f89626
Requires:      %{?scl_prefix}rubygem(rails-dom-testing) < 2
f89626
BuildRequires: %{?scl_prefix_ruby}ruby(release)
f89626
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
f89626
BuildRequires: %{?scl_prefix_ruby}ruby
f89626
BuildArch:     noarch
f89626
Provides:      %{?scl_prefix}rubygem(%{gem_name}) = %{version}
f89626
f89626
%description
f89626
This gem provides jQuery and the jQuery-ujs driver for your Rails 4+
f89626
application.
f89626
f89626
%package doc
f89626
Summary: Documentation for %{pkg_name}
f89626
Group: Documentation
f89626
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
f89626
BuildArch: noarch
f89626
f89626
%description doc
f89626
Documentation for %{pkg_name}.
f89626
f89626
%prep
f89626
%setup -n %{pkg_name}-%{version} -q -c -T
f89626
%{?scl:scl enable %{scl} - << \EOF}
f89626
%gem_install -n %{SOURCE0}
f89626
%{?scl:EOF}
f89626
f89626
# Keep bundled jQuery
f89626
#rm .%%{gem_instdir}/vendor/assets/javascripts/jquery{,2}.*
f89626
f89626
%build
f89626
f89626
%install
f89626
mkdir -p %{buildroot}%{gem_dir}
f89626
cp -a .%{gem_dir}/* \
f89626
        %{buildroot}%{gem_dir}/
f89626
f89626
%check
f89626
pushd .%{gem_instdir}
f89626
# no tests :( but they are comming back again shortly!
f89626
# see https://github.com/rails/jquery-rails/pull/56
f89626
popd
f89626
f89626
%files
f89626
%dir %{gem_instdir}
f89626
%license %{gem_instdir}/LICENSE
f89626
%{gem_libdir}
f89626
# bunch of bundled JS files here
f89626
%{gem_instdir}/vendor
f89626
%exclude %{gem_cache}
f89626
%exclude %{gem_instdir}/.*
f89626
%exclude %{gem_instdir}/Gemfile.lock
f89626
%{gem_spec}
f89626
f89626
%files doc
f89626
%doc %{gem_docdir}
f89626
%doc %{gem_instdir}/CHANGELOG.md
f89626
%doc %{gem_instdir}/CONTRIBUTING.md
f89626
%doc %{gem_instdir}/VERSIONS.md
f89626
%{gem_instdir}/Gemfile
f89626
%doc %{gem_instdir}/README.md
f89626
%{gem_instdir}/Rakefile
f89626
%{gem_instdir}/jquery-rails.gemspec
f89626
f89626
%changelog
f89626
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 4.0.4-4
f89626
- Fix Require of rubygem-railties
f89626
f89626
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 4.0.4-3
f89626
- Update to 4.0.4
f89626
f89626
* Mon Feb 02 2015 Vít Ondruch <vondruch@redhat.com> - 3.1.0-2
f89626
- Fix thor dependency.
f89626
f89626
* Mon May 26 2014 Josef Stribny <jstribny@redhat.com> - 3.1.0-1
f89626
- Update to jquery-rails 3.1.0
f89626
  - This resolves: rhbz#1086262
f89626
f89626
* Thu Feb 06 2014 Josef Stribny <jstribny@redhat.com> - 3.0.4-3
f89626
- Fix license to MIT
f89626
f89626
* Wed Oct 23 2013 Josef Stribny <jstribny@redhat.com> - 3.0.4-2
f89626
- Convert to scl
f89626
f89626
* Wed Oct 23 2013 Josef Stribny <jstribny@redhat.com> - 3.0.4-1
f89626
- Update to jquery-rails 3.0.4
f89626
f89626
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-4
f89626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f89626
f89626
* Thu Mar 14 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.2-3
f89626
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
f89626
f89626
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
f89626
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f89626
f89626
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 2.0.2-1
f89626
- Initial package