## START: Set by rpmautospec ## (rpmautospec version 0.7.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 14; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global gem_name sassc %define debug_package %{nil} Name: rubygem-%{gem_name} Summary: Use libsass with Ruby! Version: 2.4.0 Release: %autorelease License: MIT URL: https://github.com/sass/sassc-ruby Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem # Use Minitest module instead of MiniTest compatibility layer Patch: %{url}/pull/242.patch # disable tests that are broken because of the unbundled libsass Patch: 00-disable-broken-tests.patch BuildRequires: ruby-devel >= 2.0.0 BuildRequires: rubygems-devel BuildRequires: ruby(release) # test requirements BuildRequires: libsass BuildRequires: rubygem(ffi) BuildRequires: rubygem(minitest) BuildRequires: rubygem(minitest-around) BuildRequires: rubygem(test_construct) Requires: libsass %description Use libsass with Ruby! %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %autosetup -n %{gem_name}-%{version} -p1 # disable building bundled libsass sed -i "/s\.extensions/d" ../%{gem_name}-%{version}.gemspec %build # use libsass.so.1 from host sed -i "s/libsass\.\#{dl_ext}/libsass\.\#{dl_ext}\.1/" lib/sassc/native.rb sed -i "s!__dir__!\"%{_libdir}\"!" lib/sassc/native.rb gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # Pry dependency is not really necessary. sed -i '/require "pry"/ s/^/#/' test/test_helper.rb ruby -Ilib -e 'Dir.glob "./test/**_test.rb", &method(:require)' popd %files %license %{gem_instdir}/LICENSE.txt %{gem_libdir} %{gem_spec} %dir %{gem_instdir} %exclude %{gem_instdir}/ext/ %exclude %{gem_instdir}/sassc.gemspec %exclude %{gem_instdir}/.gitignore %exclude %{gem_instdir}/.gitmodules %exclude %{gem_instdir}/.travis.yml %exclude %{gem_cache} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/CHANGELOG.md %doc %{gem_instdir}/CODE_OF_CONDUCT.md %doc %{gem_instdir}/README.md %{gem_instdir}/Gemfile %{gem_instdir}/Rakefile %{gem_instdir}/test/ %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 2.4.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 2.4.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Sep 02 2023 Otto Liljalaakso - 2.4.0-12 - Fix tests to work with rubygem-minitest-5.19.0 * Fri Jul 21 2023 Fedora Release Engineering - 2.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 2.4.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 2.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 2.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 2.4.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 2.4.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 6 2021 Vít Ondruch - 2.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_3.0 * Wed Nov 25 17:09:33 CET 2020 Vít Ondruch - 2.4.0-3 - Drop `BR: rubygem(pry)`. * Wed Jul 29 2020 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 06 2020 Fabio Valentini - 2.4.0-1 - Update to version 2.4.0. * Sat Apr 18 2020 Fabio Valentini - 2.3.0-1 - Update to version 2.3.0. * Thu Jan 30 2020 Fedora Release Engineering - 2.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Aug 28 2019 Fabio Valentini - 2.2.0-1 - Update to version 2.2.0. * Tue Aug 20 2019 Fabio Valentini - 2.1.0-1 - Initial package ## END: Generated by rpmautospec