| |
@@ -2,8 +2,8 @@
|
| |
%global gem_name compass-core
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 1.0.1
|
| |
- Release: 9%{?dist}
|
| |
+ Version: 1.0.3
|
| |
+ Release: 1%{?dist}
|
| |
Summary: The Compass core stylesheet library
|
| |
Group: Development/Languages
|
| |
License: MIT
|
| |
@@ -13,11 +13,11 @@
|
| |
# upstream gem doesn't ship tests, pull in from upstream
|
| |
# git clone https://github.com/compass/compass.git
|
| |
# cd compass
|
| |
- # git checkout 1.0.1
|
| |
- # tar czvf rubygem-compass-core-tests.tgz core/test
|
| |
- Source1: rubygem-compass-core-tests.tgz
|
| |
+ # git checkout 1.0.3
|
| |
+ # tar czvf rubygem-compass-core-1.0.3-tests.tgz core/test
|
| |
+ Source1: rubygem-compass-core-%{version}-tests.tgz
|
| |
|
| |
- # http://github.com/compass/compass/issue/1828
|
| |
+ # http://github.com/compass/compass/issues/1828
|
| |
# backported to compass 1.0.1
|
| |
Patch0: minitest5-core-1.0.1.patch
|
| |
|
| |
@@ -46,24 +46,19 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- gem unpack %{SOURCE0}
|
| |
+ %setup -q -n %{gem_name}-%{version}
|
| |
|
| |
- %setup -q -D -T -n %{gem_name}-%{version}
|
| |
-
|
| |
- gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
| |
-
|
| |
- tar xzvf %{SOURCE1}
|
| |
-
|
| |
- patch -p1 < %{PATCH0}
|
| |
+ # Relax dependency to use sass 3.5.
|
| |
+ # https://github.com/Compass/compass/pull/2140
|
| |
+ %gemspec_remove_dep -g sass ["< 3.5"]
|
| |
+ %gemspec_add_dep -g sass ["< 3.6"]
|
| |
|
| |
%build
|
| |
# Create the gem as gem install only works on a gem file
|
| |
- gem build %{gem_name}.gemspec
|
| |
+ gem build ../%{gem_name}-%{version}.gemspec
|
| |
|
| |
%gem_install
|
| |
|
| |
- mv core/test .%{gem_instdir}
|
| |
-
|
| |
%install
|
| |
mkdir -p %{buildroot}%{gem_dir}
|
| |
cp -a .%{gem_dir}/* \
|
| |
@@ -72,6 +67,10 @@
|
| |
# Run the test suite
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
+ tar xzvf %{SOURCE1}
|
| |
+ cat %{PATCH0} | patch -p1
|
| |
+ mv core/test .
|
| |
+ rm -rf core
|
| |
ruby -Ilib:test/units \
|
| |
-e 'Dir.glob "./test/units/*_test.rb", &method(:require)'
|
| |
|
| |
@@ -86,16 +85,18 @@
|
| |
%exclude %{gem_cache}
|
| |
%{gem_spec}
|
| |
%doc %{gem_instdir}/LICENSE.txt
|
| |
+ %{gem_instdir}/VERSION
|
| |
%{gem_instdir}/data/
|
| |
%{gem_instdir}/stylesheets
|
| |
%{gem_instdir}/templates
|
| |
- %exclude %{gem_instdir}/test
|
| |
|
| |
%files doc
|
| |
%doc %{gem_docdir}
|
| |
- %doc %{gem_instdir}/test
|
| |
|
| |
%changelog
|
| |
+ * Tue Jun 05 2018 Jun Aruga <jaruga@redhat.com> - 1.0.3-1
|
| |
+ - Update Compass Core to 1.0.3
|
| |
+
|
| |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
| |
|
| |