| |
@@ -2,13 +2,17 @@
|
| |
%global gem_name sass
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 3.5.6
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 3.7.3
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A powerful but elegant CSS compiler that makes CSS fun again
|
| |
- Group: Development/Languages
|
| |
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
|
| |
@@ -18,9 +22,6 @@
|
| |
BuildRequires: rubygem(listen)
|
| |
BuildRequires: rubygem(minitest)
|
| |
BuildArch: noarch
|
| |
- %if 0%{?rhel} == 7
|
| |
- Provides: rubygem(%{gem_name}) = %{version}
|
| |
- %endif
|
| |
|
| |
%description
|
| |
Sass makes CSS fun again. Sass is an extension of CSS, adding
|
| |
@@ -31,7 +32,6 @@
|
| |
|
| |
%package doc
|
| |
Summary: Documentation for %{name}
|
| |
- Group: Documentation
|
| |
Requires: %{name} = %{version}-%{release}
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -39,19 +39,14 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- gem unpack %{SOURCE0}
|
| |
-
|
| |
- %setup -q -D -T -n %{gem_name}-%{version}
|
| |
+ %setup -q -n %{gem_name}-%{version}
|
| |
|
| |
- gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
| |
- %gemspec_remove_dep -g sass-listen -s %{gem_name}.gemspec
|
| |
- %gemspec_add_dep -g listen -s %{gem_name}.gemspec
|
| |
+ %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}.gemspec
|
| |
-
|
| |
+ gem build ../%{gem_name}-%{version}.gemspec
|
| |
%gem_install
|
| |
|
| |
%install
|
| |
@@ -72,6 +67,9 @@
|
| |
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
+
|
| |
+ tar xaf %{SOURCE1}
|
| |
+
|
| |
ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
| |
popd
|
| |
|
| |
@@ -81,9 +79,9 @@
|
| |
%{_bindir}/sass-convert
|
| |
%{_bindir}/scss
|
| |
%exclude %{gem_instdir}/.*
|
| |
- %{gem_instdir}/CODE_OF_CONDUCT.md
|
| |
%license %{gem_instdir}/MIT-LICENSE
|
| |
- %doc %{gem_instdir}/REVISION
|
| |
+ # Required on runtime from version.rb
|
| |
+ %{gem_instdir}/REVISION
|
| |
%{gem_instdir}/VERSION
|
| |
%{gem_instdir}/VERSION_DATE
|
| |
%{gem_instdir}/VERSION_NAME
|
| |
@@ -97,12 +95,14 @@
|
| |
|
| |
%files doc
|
| |
%doc %{gem_docdir}
|
| |
+ %doc %{gem_instdir}/CODE_OF_CONDUCT.md
|
| |
%doc %{gem_instdir}/CONTRIBUTING.md
|
| |
%doc %{gem_instdir}/README.md
|
| |
- %{gem_instdir}/Rakefile
|
| |
- %{gem_instdir}/test
|
| |
|
| |
%changelog
|
| |
+ * Mon Jan 14 2019 Pavel Valena <pvalena@redhat.com> - 3.7.3-1
|
| |
+ - Update to Sass 3.7.3
|
| |
+
|
| |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.6-2
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
|
| |
also enhance .spec and .gitignore files.
Up-to-date Copr build:
https://copr.fedorainfracloud.org/coprs/build/846858/
Checks: