|
|
a87ca9 |
%{?scl:%scl_package rubygem-%{gem_name}}
|
|
|
a87ca9 |
%{!?scl:%global pkg_name %{name}}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
# Generated from sass-rails-3.2.5.gem by gem2rpm -*- rpm-spec -*-
|
|
|
a87ca9 |
%global gem_name sass-rails
|
|
|
a87ca9 |
|
|
|
a87ca9 |
Name: %{?scl_prefix}rubygem-%{gem_name}
|
|
|
a87ca9 |
Version: 5.0.4
|
|
|
a87ca9 |
Release: 3%{?dist}
|
|
|
a87ca9 |
Summary: Sass adapter for the Rails asset pipeline
|
|
|
a87ca9 |
Group: Development/Languages
|
|
|
a87ca9 |
License: MIT
|
|
|
a87ca9 |
URL: https://github.com/rails/sass-rails
|
|
|
a87ca9 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
a87ca9 |
# git clone https://github.com/rails/sass-rails.git && cd sass-rails
|
|
|
a87ca9 |
# git checkout v5.0.4 && tar czvf sass-rails-5.0.4-tests.tgz ./test
|
|
|
a87ca9 |
Source1: sass-rails-%{version}-tests.tgz
|
|
|
a87ca9 |
|
|
|
a87ca9 |
Requires: %{?scl_prefix_ruby}ruby(release)
|
|
|
a87ca9 |
Requires: %{?scl_prefix_ruby}ruby(rubygems)
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(railties) >= 4.0.0
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(railties) < 5.0
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sass) => 3.1
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sass) < 4
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sprockets-rails) >= 2.0
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sprockets-rails) < 4.0
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sprockets) >= 2.8
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(sprockets) < 4.0
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(tilt) >= 1.1
|
|
|
a87ca9 |
Requires: %{?scl_prefix}rubygem(tilt) < 3
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix_ruby}ruby(release)
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix_ruby}rubygems-devel
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix_ruby}ruby
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix_ruby}rubygem(bundler)
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix}rubygem(sqlite3)
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix}rubygem(tilt)
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix}rubygem(rails)
|
|
|
a87ca9 |
BuildRequires: %{?scl_prefix}rubygem(sass)
|
|
|
a87ca9 |
BuildArch: noarch
|
|
|
a87ca9 |
Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%description
|
|
|
a87ca9 |
Sass adapter for the Rails asset pipeline.
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%package doc
|
|
|
a87ca9 |
Summary: Documentation for %{pkg_name}
|
|
|
a87ca9 |
Group: Documentation
|
|
|
a87ca9 |
Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release}
|
|
|
a87ca9 |
BuildArch: noarch
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%description doc
|
|
|
a87ca9 |
Documentation for %{pkg_name}.
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%prep
|
|
|
a87ca9 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
a87ca9 |
gem unpack %{SOURCE0}
|
|
|
a87ca9 |
%{?scl:EOF}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
a87ca9 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
a87ca9 |
%{?scl:EOF}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%build
|
|
|
a87ca9 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
a87ca9 |
gem build %{gem_name}.gemspec
|
|
|
a87ca9 |
%gem_install
|
|
|
a87ca9 |
%{?scl:EOF}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%install
|
|
|
a87ca9 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
a87ca9 |
cp -a .%{gem_dir}/* \
|
|
|
a87ca9 |
%{buildroot}%{gem_dir}/
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%check
|
|
|
a87ca9 |
pushd .%{gem_instdir}
|
|
|
a87ca9 |
tar xf %{SOURCE1}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
# Copy in .gemspec and use the sass-rails sources
|
|
|
a87ca9 |
cp %{buildroot}%{gem_spec} sass-rails.gemspec
|
|
|
a87ca9 |
echo 'gem "sass-rails", :path => "."' >> Gemfile
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
a87ca9 |
ruby -I.:test -e 'Dir.glob "test/**/*_test.rb", &method(:require)'
|
|
|
a87ca9 |
%{?scl:EOF}
|
|
|
a87ca9 |
popd
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%files
|
|
|
a87ca9 |
%dir %{gem_instdir}
|
|
|
a87ca9 |
%license %{gem_instdir}/MIT-LICENSE
|
|
|
a87ca9 |
%{gem_libdir}
|
|
|
a87ca9 |
%exclude %{gem_cache}
|
|
|
a87ca9 |
%{gem_spec}
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%files doc
|
|
|
a87ca9 |
%doc %{gem_docdir}
|
|
|
a87ca9 |
%doc %{gem_instdir}/README.md
|
|
|
a87ca9 |
|
|
|
a87ca9 |
%changelog
|
|
|
a87ca9 |
* Wed Mar 02 2016 Pavel Valena <pvalena@redhat.com> - 5.0.4-3
|
|
|
a87ca9 |
- Update to 5.0.4
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Tue Jul 01 2014 Vít Ondruch <vondruch@redhat.com> - 4.0.3-1
|
|
|
a87ca9 |
- Update to sass-rails 4.0.3.
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Thu Oct 17 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-2
|
|
|
a87ca9 |
- Convert to scl
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Mon Aug 05 2013 Josef Stribny <jstribny@redhat.com> - 4.0.0-1
|
|
|
a87ca9 |
- Update to sass-rails 4.0.0
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.6-2
|
|
|
a87ca9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Mon Mar 11 2013 Vít Ondruch <vondruch@redhat.com> - 3.2.6-1
|
|
|
a87ca9 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
a87ca9 |
- Update to sass-rails 3.2.6.
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.5-2
|
|
|
a87ca9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a87ca9 |
|
|
|
a87ca9 |
* Mon Jul 23 2012 Vít Ondruch <vondruch@redhat.com> - 3.2.5-1
|
|
|
a87ca9 |
- Initial package
|