|
|
5671d7 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
5671d7 |
%{!?scl:%global pkg_name %{name}}
|
|
|
5671d7 |
|
|
|
5671d7 |
# Generated from sprockets-rails-2.0.0.gem by gem2rpm -*- rpm-spec -*-
|
|
|
5671d7 |
%global gem_name sprockets-rails
|
|
|
5671d7 |
|
|
|
5671d7 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
5671d7 |
Version: 2.3.2
|
|
|
5671d7 |
Release: 3%{?dist}
|
|
|
5671d7 |
Summary: Sprockets Rails integration
|
|
|
5671d7 |
Group: Development/Languages
|
|
|
5671d7 |
License: MIT
|
|
|
5671d7 |
URL: https://github.com/rails/sprockets-rails
|
|
|
5671d7 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
5671d7 |
# Get the tests
|
|
|
5671d7 |
# git clone https://github.com/rails/sprockets-rails.git && cd sprockets-rails/
|
|
|
5671d7 |
# git checkout v2.3.2
|
|
|
5671d7 |
# tar czvf sprockets-rails-2.3.2-tests.tgz test/
|
|
|
5671d7 |
Source2: sprockets-rails-%{version}-tests.tgz
|
|
|
5671d7 |
|
|
|
5671d7 |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
5671d7 |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
5671d7 |
Requires: %{?scl_prefix}rubygem(sprockets) >= 2.8
|
|
|
5671d7 |
Requires: %{?scl_prefix}rubygem(sprockets) < 4.0
|
|
|
5671d7 |
Requires: %{?scl_prefix}rubygem(actionpack) >= 3.0
|
|
|
5671d7 |
Requires: %{?scl_prefix}rubygem(activesupport) >= 3.0
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix_ruby}rubygem(minitest)
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix}rubygem(railties) >= 3.0
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix_ruby}rubygem(rake)
|
|
|
5671d7 |
BuildRequires: %{?scl_prefix}rubygem(sprockets)
|
|
|
5671d7 |
BuildArch: noarch
|
|
|
5671d7 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
5671d7 |
|
|
|
5671d7 |
%description
|
|
|
5671d7 |
Provides Sprockets implementation for Rails 4.x (and beyond) Asset Pipeline.
|
|
|
5671d7 |
|
|
|
5671d7 |
%package doc
|
|
|
5671d7 |
Summary: Documentation for %{pkg_name}
|
|
|
5671d7 |
Group: Documentation
|
|
|
5671d7 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
5671d7 |
BuildArch: noarch
|
|
|
5671d7 |
|
|
|
5671d7 |
%description doc
|
|
|
5671d7 |
Documentation for %{pkg_name}
|
|
|
5671d7 |
|
|
|
5671d7 |
%prep
|
|
|
5671d7 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
5671d7 |
gem unpack %{SOURCE0}
|
|
|
5671d7 |
%{?scl:EOF}
|
|
|
5671d7 |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
5671d7 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
5671d7 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
5671d7 |
%{?scl:EOF}
|
|
|
5671d7 |
|
|
|
5671d7 |
%build
|
|
|
5671d7 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
5671d7 |
gem build %{gem_name}.gemspec
|
|
|
5671d7 |
%gem_install
|
|
|
5671d7 |
%{?scl:EOF}
|
|
|
5671d7 |
|
|
|
5671d7 |
%install
|
|
|
5671d7 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
5671d7 |
cp -pa .%{gem_dir}/* \
|
|
|
5671d7 |
%{buildroot}%{gem_dir}/
|
|
|
5671d7 |
|
|
|
5671d7 |
%check
|
|
|
5671d7 |
pushd .%{gem_instdir}
|
|
|
5671d7 |
# Move the tests into place
|
|
|
5671d7 |
tar xzvf %{SOURCE2}
|
|
|
5671d7 |
|
|
|
5671d7 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
5671d7 |
ruby -Ilib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
|
|
5671d7 |
%{?scl:EOF}
|
|
|
5671d7 |
popd
|
|
|
5671d7 |
|
|
|
5671d7 |
%files
|
|
|
5671d7 |
%license %{gem_instdir}/LICENSE
|
|
|
5671d7 |
%dir %{gem_instdir}
|
|
|
5671d7 |
%{gem_libdir}
|
|
|
5671d7 |
%exclude %{gem_cache}
|
|
|
5671d7 |
%{gem_spec}
|
|
|
5671d7 |
|
|
|
5671d7 |
%files doc
|
|
|
5671d7 |
%doc %{gem_docdir}
|
|
|
5671d7 |
%doc %{gem_instdir}/README.md
|
|
|
5671d7 |
|
|
|
5671d7 |
%changelog
|
|
|
5671d7 |
* Wed Feb 17 2016 Pavel Valena <pvalena@redhat.com> - 2.3.2-3
|
|
|
5671d7 |
- Add scl macros
|
|
|
5671d7 |
|
|
|
5671d7 |
* Thu Jan 29 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.4-2
|
|
|
5671d7 |
- Drop the boostrap and depend on railties instead of rails.
|
|
|
5671d7 |
|
|
|
5671d7 |
* Wed Jan 28 2015 Vít Ondruch <vondruch@redhat.com> - 2.2.4-1
|
|
|
5671d7 |
- Update to sprockets-rails 2.2.4.
|
|
|
5671d7 |
|
|
|
5671d7 |
* Mon Jan 26 2015 Josef Stribny <jstribny@redhat.com> - 2.1.3-1
|
|
|
5671d7 |
- Update to 2.1.3
|
|
|
5671d7 |
|
|
|
5671d7 |
* Thu Aug 08 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-3
|
|
|
5671d7 |
- Enable tests
|
|
|
5671d7 |
|
|
|
5671d7 |
* Wed Jul 31 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-2
|
|
|
5671d7 |
- Disable tests for now due to broken deps in Rails
|
|
|
5671d7 |
|
|
|
5671d7 |
* Mon Jul 22 2013 Josef Stribny <jstribny@redhat.com> - 2.0.0-1
|
|
|
5671d7 |
- Initial package
|