#3 WIP: Initial package
Opened 3 years ago by jaruga. Modified 3 years ago
rpms/ jaruga/rubygem-sass wip/epel8  into  epel8

file modified
+2
@@ -0,0 +1,2 @@ 

+ /sass-*.gem

+ /sass-*-tests.tgz

@@ -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)

file added
+104
@@ -0,0 +1,104 @@ 

+ # Generated from sass-3.1.4.gem by gem2rpm -*- rpm-spec -*-

+ %global gem_name sass

+ 

+ Name: rubygem-%{gem_name}

+ Version: 3.7.3

+ Release: 1%{?dist}

+ 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

+ # git clone https://github.com/sass/ruby-sass.git

+ # cd ruby-sass && git checkout 3.7.3

+ # tar czvf sass-3.7.3-tests.tgz test/ Rakefile

+ Source1: %{gem_name}-%{version}-tests.tgz

+ 

+ # Use listen as a depencency instead of sass-listen.

+ # sass-listen is a fork from original listen v3.0 branch to support Ruby <= 2.1.

+ # https://github.com/sass/ruby-sass/pull/65

+ Patch0: rubygem-sass-3.5.6-use-listen.patch

+ BuildRequires: ruby(release)

+ BuildRequires: rubygems-devel

+ BuildRequires: rubygem(listen)

+ BuildRequires: 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}

+ 

+ %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

+ 

+ # Fix for rpmlint

+ 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

+ # Required on runtime from version.rb

+ %{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

+ * Mon Jun 08 2020 Jun Aruga <jaruga@redhat.com> - 3.7.3-1

+ - Initial package

file modified
+2
@@ -0,0 +1,2 @@ 

+ SHA512 (sass-3.7.3.gem) = 14f6209e92a4cad15f67b6c11a919f53edfb8abf9b9e89795252e43fccc2628feca2cb40387b0c268009e93a08d908eba0cdf94b21bece5e8232bbe2f41fea09

+ SHA512 (sass-3.7.3-tests.tgz) = bfba5002e6452b97952881fab3fd55cd2c8c4f6cd3a9ddb0628dddfb56b48aa5f07b685914a350510bfa8104d44f9193da110cf229e588c4be8734f664491d72

rubygem-listen epel8 is necessary to build rubygem-sass on epel8.

No matching package to install: 'rubygem(listen)'

I understand the alternative.
This ticket is the reason.
If someone needs sass, it's not harmful to build it on epel8.
https://bugzilla.redhat.com/show_bug.cgi?id=1763768#c10