diff --git a/3.7.3.tar.gz b/3.7.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..1e2ffb3c50fbd026fd137515203e8279925aa7d6 Binary files /dev/null and b/3.7.3.tar.gz differ diff --git a/rubygem-sass-3.5.6-use-listen.patch b/rubygem-sass-3.5.6-use-listen.patch new file mode 100644 index 0000000000000000000000000000000000000000..5c00a9d88abdcd461ddda9672baefc2405d1c857 --- /dev/null +++ b/rubygem-sass-3.5.6-use-listen.patch @@ -0,0 +1,15 @@ +diff --git a/lib/sass/plugin/compiler.rb b/lib/sass/plugin/compiler.rb +index f3ae6e3d..3979bf30 100644 +--- a/lib/sass/plugin/compiler.rb ++++ b/lib/sass/plugin/compiler.rb +@@ -377,8 +377,8 @@ module Sass::Plugin + + # This is mocked out in compiler_test.rb. + def create_listener(*args, &block) +- require 'sass-listen' +- SassListen.to(*args, &block) ++ require 'listen' ++ Listen.to(*args, &block) + end + + def remove_redundant_directories(directories) diff --git a/rubygem-sass.spec b/rubygem-sass.spec new file mode 100644 index 0000000000000000000000000000000000000000..b362658264c2e4cb94e120d0a668b41867f9acfc --- /dev/null +++ b/rubygem-sass.spec @@ -0,0 +1,82 @@ +%global gem_name sass +Name: rubygem-%{gem_name} +Version: 3.7.3 +Release: 1 +Summary: A powerful but elegant CSS compiler that makes CSS fun again +License: MIT +URL: http://sass-lang.com/ +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Source1: https://github.com/sass/ruby-sass/archive/%{version}.tar.gz +Patch0: rubygem-sass-3.5.6-use-listen.patch +BuildRequires: ruby(release) rubygems-devel rubygem(listen) rubygem(minitest) +BuildArch: noarch +%description +Sass makes CSS fun again. Sass is an extension of CSS, adding +nested rules, variables, mixins, selector inheritance, and more. +It's translated to well-formatted, standard CSS using the +command line tool or a web-framework plugin. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +%setup -q -n %{gem_name}-%{version} +ln -s ruby-sass-%{version}/spec spec +ln -s ruby-sass-%{version}/test test +%gemspec_remove_dep -g sass-listen -s ../%{gem_name}-%{version}.gemspec +%gemspec_add_dep -g listen -s ../%{gem_name}-%{version}.gemspec +%patch0 -p1 + +%build +gem build ../%{gem_name}-%{version}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ +mkdir -p %{buildroot}%{_bindir} +cp -a .%{_bindir}/* \ + %{buildroot}%{_bindir}/ +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x +find %{buildroot}%{gem_instdir}/bin -type f | \ + xargs sed -i 's|^#!/usr/bin/env ruby|#!/usr/bin/ruby|' + +%check +pushd .%{gem_instdir} +tar xaf %{SOURCE1} +ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' +popd + +%files +%dir %{gem_instdir} +%{_bindir}/sass +%{_bindir}/sass-convert +%{_bindir}/scss +%exclude %{gem_instdir}/.* +%license %{gem_instdir}/MIT-LICENSE +%{gem_instdir}/REVISION +%{gem_instdir}/VERSION +%{gem_instdir}/VERSION_DATE +%{gem_instdir}/VERSION_NAME +%{gem_instdir}/bin +%{gem_instdir}/extra +%{gem_instdir}/init.rb +%{gem_libdir} +%{gem_instdir}/rails +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CODE_OF_CONDUCT.md +%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_instdir}/README.md + +%changelog +* Wed Aug 19 2020 xiezheng - 3.7.3-1 +- package init diff --git a/rubygem-sass.yaml b/rubygem-sass.yaml new file mode 100644 index 0000000000000000000000000000000000000000..43215b0156c22d8d54caf1d0386cf545ab2c0457 --- /dev/null +++ b/rubygem-sass.yaml @@ -0,0 +1,4 @@ +on_control: github +src_repo: sass/ruby-sass +tag_prefix: "v" +separator: "." diff --git a/sass-3.7.3.gem b/sass-3.7.3.gem new file mode 100644 index 0000000000000000000000000000000000000000..50c33c0330a2fc466b4b8017860b7b1baf6ca7ca Binary files /dev/null and b/sass-3.7.3.gem differ