Josef Stribny 3571b7a
# Generated from sprockets-rails-2.0.0.gem by gem2rpm -*- rpm-spec -*-
Josef Stribny 3571b7a
%global gem_name sprockets-rails
Josef Stribny 3571b7a
Josef Stribny 3571b7a
Name: rubygem-%{gem_name}
5cd502c
Version: 3.2.0
6c3bb25
Release: 2%{?dist}
Josef Stribny 3571b7a
Summary: Sprockets Rails integration
Josef Stribny 3571b7a
Group: Development/Languages
Josef Stribny 3571b7a
License: MIT
Josef Stribny 3571b7a
URL: https://github.com/rails/sprockets-rails
Josef Stribny 3571b7a
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Josef Stribny 3571b7a
# Get the tests
Josef Stribny 3571b7a
# git clone https://github.com/rails/sprockets-rails.git && cd sprockets-rails/
5cd502c
# git checkout v3.2.0 && tar czvf sprockets-rails-3.2.0-tests.tgz test/
Josef Stribny 3571b7a
Source2: sprockets-rails-%{version}-tests.tgz
Josef Stribny 3571b7a
BuildRequires: ruby(release)
Josef Stribny 3571b7a
BuildRequires: rubygems-devel
Josef Stribny 3571b7a
BuildRequires: ruby
1cfb465
BuildRequires: rubygem(railties) >= 3.0
Josef Stribny 3571b7a
BuildRequires: rubygem(rake)
1cfb465
BuildRequires: rubygem(sprockets)
Josef Stribny 3571b7a
BuildArch: noarch
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%description
Josef Stribny 3571b7a
Provides Sprockets implementation for Rails 4.x (and beyond) Asset Pipeline.
Josef Stribny 3571b7a
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%package doc
Josef Stribny 3571b7a
Summary: Documentation for %{name}
Josef Stribny 3571b7a
Group: Documentation
Josef Stribny 3571b7a
Requires: %{name} = %{version}-%{release}
Josef Stribny 3571b7a
BuildArch: noarch
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%description doc
9a11450
Documentation for %{name}.
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%prep
Josef Stribny 3571b7a
gem unpack %{SOURCE0}
9a11450
Josef Stribny 3571b7a
%setup -q -D -T -n  %{gem_name}-%{version}
9a11450
Josef Stribny 3571b7a
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%build
Josef Stribny 3571b7a
gem build %{gem_name}.gemspec
Josef Stribny 3571b7a
%gem_install
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%install
Josef Stribny 3571b7a
mkdir -p %{buildroot}%{gem_dir}
Josef Stribny 3571b7a
cp -pa .%{gem_dir}/* \
Josef Stribny 3571b7a
        %{buildroot}%{gem_dir}/
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%check
3c57bf7
pushd .%{gem_instdir}
3c57bf7
# Move the tests into place
3c57bf7
tar xzvf %{SOURCE2}
3c57bf7
3c57bf7
ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
Josef Stribny 3571b7a
popd
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%files
Josef Stribny 3571b7a
%dir %{gem_instdir}
9a11450
%license %{gem_instdir}/MIT-LICENSE
Josef Stribny 3571b7a
%{gem_libdir}
Josef Stribny 3571b7a
%exclude %{gem_cache}
Josef Stribny 3571b7a
%{gem_spec}
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%files doc
Josef Stribny 3571b7a
%doc %{gem_docdir}
Josef Stribny 3571b7a
%doc %{gem_instdir}/README.md
Josef Stribny 3571b7a
Josef Stribny 3571b7a
%changelog
6c3bb25
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
6c3bb25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6c3bb25
5cd502c
* Thu Dec 15 2016 Jun Aruga <jaruga@redhat.com> - 3.2.0-1
5cd502c
- Update to sprockets-rails 3.2.0.
5cd502c
9a11450
* Mon Aug 15 2016 Vít Ondruch <vondruch@redhat.com> - 3.1.1-1
9a11450
- Update to sprockets-rails 3.1.1.
9a11450
3269ea2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-2
3269ea2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3269ea2
Josef Stribny ec9b4cd
* Mon Jun 29 2015 Josef Stribny <jstribny@redhat.com> - 2.3.2-1
Josef Stribny ec9b4cd
- Update to 2.3.2
Josef Stribny ec9b4cd
f135285
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
f135285
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f135285
Josef Stribny 7bf0712
* Mon May 18 2015 Josef Stribny <jstribny@redhat.com> - 2.3.1-1
Josef Stribny 7bf0712
- Update to 2.3.1
Josef Stribny 7bf0712
1cfb465
* Thu Jan 29 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.4-2
1cfb465
- Drop the boostrap and depend on railties instead of rails.
1cfb465
3c57bf7
* Wed Jan 28 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.4-1
3c57bf7
- Update to sprockets-rails 2.2.4.
3c57bf7
de26a83
* Fri Jul 04 2014 Vít Ondruch <vondruch@redhat.com> - 2.1.3-1
de26a83
- Update to sprockets-rails 2.1.3.
de26a83
29f1a01
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
29f1a01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
29f1a01
Josef Stribny 86fb37d
* Fri Mar 07 2014 Josef Stribny <jstribny@redhat.com> - 2.0.1-1
Josef Stribny 86fb37d
- Update to 2.0.1
Josef Stribny 86fb37d
Josef Stribny 98bdb58
* Thu Aug 08 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-3
Josef Stribny 98bdb58
- Enable tests
Josef Stribny 98bdb58
Josef Stribny 3571b7a
* Wed Jul 31 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-2
Josef Stribny 3571b7a
- Disable tests for now due to broken deps in Rails
Josef Stribny 3571b7a
Josef Stribny 3571b7a
* Mon Jul 22 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-1
Josef Stribny 3571b7a
- Initial package