Blame SPECS/rubygem-sprockets-rails.spec

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