diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..359b258 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/sass-rails-5.0.6-tests.tgz +SOURCES/sass-rails-5.0.6.gem diff --git a/.rh-ror50-rubygem-sass-rails.metadata b/.rh-ror50-rubygem-sass-rails.metadata new file mode 100644 index 0000000..486cfad --- /dev/null +++ b/.rh-ror50-rubygem-sass-rails.metadata @@ -0,0 +1,2 @@ +27e9f91726bc0ddd45fb38c874f1d84890eb196c SOURCES/sass-rails-5.0.6-tests.tgz +63cf7722ffed78aa5569ce6c10810533166626af SOURCES/sass-rails-5.0.6.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/rubygem-sass-rails-5.0.5-Bump-the-rails-test-dependencies.patch b/SOURCES/rubygem-sass-rails-5.0.5-Bump-the-rails-test-dependencies.patch new file mode 100644 index 0000000..7d4c1b5 --- /dev/null +++ b/SOURCES/rubygem-sass-rails-5.0.5-Bump-the-rails-test-dependencies.patch @@ -0,0 +1,50 @@ +From f7e72a1a28853373423053c58de2bed240406a6d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?V=C3=ADt=20Ondruch?= +Date: Wed, 20 Jul 2016 19:04:43 +0200 +Subject: [PATCH] Bump the rails test dependencies. + +--- + test/fixtures/alternate_config_project/Gemfile | 2 +- + test/fixtures/sass_project/Gemfile | 2 +- + test/fixtures/scss_project/Gemfile | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/fixtures/alternate_config_project/Gemfile b/test/fixtures/alternate_config_project/Gemfile +index c965db0..f91ad2a 100644 +--- a/test/fixtures/alternate_config_project/Gemfile ++++ b/test/fixtures/alternate_config_project/Gemfile +@@ -1,6 +1,6 @@ + source 'https://rubygems.org' + +-gem 'rails', '>= 4.0.0.beta', '< 5.0' ++gem 'rails', '>= 4.0.0.beta', '< 6.0' + gem 'sqlite3' + + # Asset template engines +diff --git a/test/fixtures/sass_project/Gemfile b/test/fixtures/sass_project/Gemfile +index c965db0..f91ad2a 100644 +--- a/test/fixtures/sass_project/Gemfile ++++ b/test/fixtures/sass_project/Gemfile +@@ -1,6 +1,6 @@ + source 'https://rubygems.org' + +-gem 'rails', '>= 4.0.0.beta', '< 5.0' ++gem 'rails', '>= 4.0.0.beta', '< 6.0' + gem 'sqlite3' + + # Asset template engines +diff --git a/test/fixtures/scss_project/Gemfile b/test/fixtures/scss_project/Gemfile +index c965db0..f91ad2a 100644 +--- a/test/fixtures/scss_project/Gemfile ++++ b/test/fixtures/scss_project/Gemfile +@@ -1,6 +1,6 @@ + source 'https://rubygems.org' + +-gem 'rails', '>= 4.0.0.beta', '< 5.0' ++gem 'rails', '>= 4.0.0.beta', '< 6.0' + gem 'sqlite3' + + # Asset template engines +-- +2.9.0 + diff --git a/SPECS/rubygem-sass-rails.spec b/SPECS/rubygem-sass-rails.spec new file mode 100644 index 0000000..15d68f6 --- /dev/null +++ b/SPECS/rubygem-sass-rails.spec @@ -0,0 +1,130 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from sass-rails-3.2.5.gem by gem2rpm -*- rpm-spec -*- +%global gem_name sass-rails + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 5.0.6 +Release: 1%{?dist} +Summary: Sass adapter for the Rails asset pipeline +Group: Development/Languages +License: MIT +URL: https://github.com/rails/sass-rails +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/rails/sass-rails.git && cd sass-rails +# git checkout v5.0.6 && tar czvf sass-rails-5.0.6-tests.tgz ./test +Source1: sass-rails-%{version}-tests.tgz +# https://github.com/rails/sass-rails/pull/380 +Patch0: rubygem-sass-rails-5.0.5-Bump-the-rails-test-dependencies.patch + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(railties) +Requires: %{?scl_prefix}rubygem(sass) +Requires: %{?scl_prefix}rubygem(sprockets) +Requires: %{?scl_prefix}rubygem(sprockets-rails) +Requires: %{?scl_prefix}rubygem(tilt) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygem(bundler) +BuildRequires: %{?scl_prefix}rubygem(rails) +BuildRequires: %{?scl_prefix}rubygem(sass) +BuildRequires: %{?scl_prefix}rubygem(sqlite3) +BuildRequires: %{?scl_prefix}rubygem(tilt) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +# Explicitly require runtime subpackage, as long as older scl-utils do not generate it +%{?scl:Requires: %{?scl_prefix}runtime} + +%description +Sass adapter for the Rails asset pipeline. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name}. + +%prep +%{?scl:scl enable %{scl} - << \EOF} +gem unpack %{SOURCE0} +%{?scl:EOF} + +%setup -q -D -T -n %{gem_name}-%{version} + +%{?scl:scl enable %{scl} - << \EOF} +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - << \EOF} +set -e +gem build %{gem_name}.gemspec +%gem_install +%{?scl:EOF} + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} +tar xf %{SOURCE1} + +cat %{PATCH0} | patch -p1 + +# Copy in .gemspec and use the sass-rails sources +cp %{buildroot}%{gem_spec} sass-rails.gemspec +echo 'gem "sass-rails", :path => "."' >> Gemfile + +%{?scl:scl enable %{scl} - << \EOF} +ruby -I.:test -e 'Dir.glob "test/**/*_test.rb", &method(:require)' +%{?scl:EOF} +popd + +%files +%dir %{gem_instdir} +%{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md + +%changelog +* Thu Nov 24 2016 Jun Aruga - 5.0.6-1 +- Update to sass-rails 5.0.6. + +* Wed Mar 02 2016 Pavel Valena - 5.0.4-3 +- Update to 5.0.4 + +* Tue Jul 01 2014 Vít Ondruch - 4.0.3-1 +- Update to sass-rails 4.0.3. + +* Thu Oct 17 2013 Josef Stribny - 4.0.0-2 +- Convert to scl + +* Mon Aug 05 2013 Josef Stribny - 4.0.0-1 +- Update to sass-rails 4.0.0 + +* Sun Aug 04 2013 Fedora Release Engineering - 3.2.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Mar 11 2013 Vít Ondruch - 3.2.6-1 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 +- Update to sass-rails 3.2.6. + +* Thu Feb 14 2013 Fedora Release Engineering - 3.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Jul 23 2012 Vít Ondruch - 3.2.5-1 +- Initial package