|
@@ -1,8 +1,9 @@
|
|
|
-%global testspec_version 3.5.4
|
|
|
+%bcond_with check
|
|
|
+%global testspec_version 3.6.0
|
|
|
|
|
|
Name: sassc
|
|
|
-Version: 3.5.0
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 3.6.1
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: Wrapper around libsass to compile CSS stylesheet
|
|
|
Summary(ja): libsassのコマンドラインラッパー
|
|
|
|
|
@@ -17,13 +18,18 @@ Source0: https://github.com/sass/sassc/archive/%{version}.tar.gz
|
|
|
# https://github.com/sass/libsass/issues/2258#issuecomment-268196004
|
|
|
# https://github.com/sass/sass-spec/archive/master.zip
|
|
|
# https://github.com/sass/sass-spec/archive/v%%{testspec_version}.tar.gz
|
|
|
-Source1: sass-spec-%{testspec_version}.tar.gz
|
|
|
+Source1: https://github.com/sass/sass-spec/archive/libsass-%{testspec_version}.tar.gz
|
|
|
|
|
|
# libsass is built as a shared library.
|
|
|
Patch0: %{name}-3.5.0-build.patch
|
|
|
|
|
|
BuildRequires: libsass-devel >= %{version}
|
|
|
BuildRequires: gcc-c++
|
|
|
+%if %{with check}
|
|
|
+BuildRequires: ruby
|
|
|
+BuildRequires: rubygem-minitest
|
|
|
+BuildRequires: rubygem-hrx
|
|
|
+%endif
|
|
|
|
|
|
%description
|
|
|
SassC is a wrapper around libsass used to generate a useful command-line
|
|
@@ -32,7 +38,7 @@ application that can be installed and packaged for several operating systems.
|
|
|
|
|
|
%prep
|
|
|
%setup -q -a 1
|
|
|
-mv sass-spec-%{testspec_version} sass-spec
|
|
|
+mv sass-spec-libsass-%{testspec_version} sass-spec
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
@@ -48,6 +54,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
install -p -m755 -D bin/sassc $RPM_BUILD_ROOT%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
+%if %{with check}
|
|
|
+%check
|
|
|
+ruby sass-spec/sass-spec.rb -V 3.6 -c bin/%{name} --impl libsass sass-spec/spec
|
|
|
+%endif
|
|
|
+
|
|
|
%files
|
|
|
%license LICENSE
|
|
|
%doc Readme.md
|
|
@@ -55,6 +66,9 @@ install -p -m755 -D bin/sassc $RPM_BUILD_ROOT%{_bindir}/%{name}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Fri Aug 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.6.1-1
|
|
|
+- new upstream relaase.
|
|
|
+
|
|
|
* Sun Dec 30 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.5.0-2
|
|
|
- initial build for Vine Linux.
|
|
|
- disabled tests.
|