Blame SPECS/rubygem-jquery-rails.spec

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