# Generated from sass-3.7.4.gem by gem2rpm -*- rpm-spec -*- %global gem_name sass Name: rubygem-%{gem_name} Version: 3.7.4 Release: 1%{?dist} Summary: A powerful but elegant CSS compiler that makes CSS fun again License: MIT URL: https://sass-lang.com/ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby >= 2.0.0 # BuildRequires: rubygem(yard) >= 0.8.7.6 # BuildRequires: rubygem(yard) < 0.8.8 # BuildRequires: rubygem(redcarpet) >= 3.3 # BuildRequires: rubygem(redcarpet) < 4 # BuildRequires: rubygem(nokogiri) >= 1.6.0 # BuildRequires: rubygem(nokogiri) < 1.7 # BuildRequires: rubygem(minitest) >= 5 BuildArch: noarch %description Ruby Sass is deprecated! See https://sass-lang.com/ruby-sass for details. 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 gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec %build # Create the gem as gem install only works on a gem file gem build %{gem_name}.gemspec # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir # by default, so that we can move it into the buildroot in %%install %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ mkdir -p %{buildroot}%{_bindir} cp -pa .%{_bindir}/* \ %{buildroot}%{_bindir}/ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{_bindir}/sass %{_bindir}/sass-convert %{_bindir}/scss %exclude %{gem_instdir}/.yardopts %{gem_instdir}/CODE_OF_CONDUCT.md %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}/CONTRIBUTING.md %doc %{gem_instdir}/README.md %changelog * Fri Apr 05 2019 mockbuilder - 3.7.4-1 - Initial package