!5 update to 4.0.2
From: @caodongxia Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
a417cd84fe
32
kwargs.patch
32
kwargs.patch
@ -1,32 +0,0 @@
|
|||||||
From 6e6d6a70848cf006fabf48088cb4140c6d1858e7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: pavel <pavel.rosicky@easy.cz>
|
|
||||||
Date: Tue, 1 Oct 2019 12:29:13 +0200
|
|
||||||
Subject: [PATCH] kwargs
|
|
||||||
|
|
||||||
Patch from: https://github.com/rails/sprockets/commit/6e6d6a70848cf006fabf48088cb4140c6d1858e7
|
|
||||||
---
|
|
||||||
test/test_performance.rb | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/test/test_performance.rb b/test/test_performance.rb
|
|
||||||
index c9e76c00..f2ffde60 100644
|
|
||||||
--- a/test/test_performance.rb
|
|
||||||
+++ b/test/test_performance.rb
|
|
||||||
@@ -16,12 +16,12 @@ end
|
|
||||||
$dir_entires_calls = nil
|
|
||||||
class << Dir
|
|
||||||
alias_method :original_entries, :entries
|
|
||||||
- def entries(dirname, *args)
|
|
||||||
+ def entries(dirname, **args)
|
|
||||||
if $dir_entires_calls
|
|
||||||
$dir_entires_calls[dirname.to_s] ||= []
|
|
||||||
$dir_entires_calls[dirname.to_s] << caller
|
|
||||||
end
|
|
||||||
- original_entries(dirname, *args)
|
|
||||||
+ original_entries(dirname, **args)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
@ -1,45 +1,73 @@
|
|||||||
|
%global pkg_name %{name}
|
||||||
|
|
||||||
%global gem_name sprockets
|
%global gem_name sprockets
|
||||||
Name: rubygem-%{gem_name}
|
|
||||||
Version: 3.7.2
|
Name: rubygem-%{gem_name}
|
||||||
Release: 2
|
Version: 4.0.2
|
||||||
Summary: Rack-based asset packaging system
|
Release: 1
|
||||||
License: MIT
|
Summary: Rack-based asset packaging system
|
||||||
URL: https://github.com/rails/sprockets
|
Group: Development/Languages
|
||||||
Source0: https://rubygems.org/gems/sprockets-%{version}.gem
|
License: MIT
|
||||||
Source1: https://github.com/rails/sprockets/archive/v%{version}.tar.gz
|
URL: https://github.com/rails/sprockets
|
||||||
Patch1: kwargs.patch
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby >= 1.9.3 rubygem(concurrent-ruby)
|
Source1: https://github.com/rails/%{gem_name}/archive/refs/tags/v%{version}.tar.gz
|
||||||
BuildRequires: rubygem(coffee-script) rubygem(ejs) rubygem(execjs) rubygem(minitest)
|
|
||||||
BuildRequires: rubygem(nokogiri) rubygem(rack-test) rubygem(rake) rubygem(sass)
|
# start specfile generated dependencies
|
||||||
BuildRequires: rubygem(uglifier) help2man nodejs rubygem(did_you_mean)
|
Requires: ruby(release)
|
||||||
BuildArch: noarch
|
Requires: ruby >= 1.9.3
|
||||||
|
Requires: ruby(rubygems)
|
||||||
|
Requires: rubygem(rack) > 1
|
||||||
|
Requires: rubygem(rack) < 3
|
||||||
|
Requires: rubygem(concurrent-ruby) >= 1.0
|
||||||
|
Requires: rubygem(concurrent-ruby) < 2
|
||||||
|
BuildRequires: ruby(release)
|
||||||
|
BuildRequires: ruby >= 1.9.3
|
||||||
|
BuildRequires: rubygems-devel
|
||||||
|
BuildRequires: rubygem(minitest)
|
||||||
|
BuildRequires: help2man
|
||||||
|
BuildRequires: rubygem(concurrent-ruby)
|
||||||
|
BuildRequires: rubygem(rake) rubygem(rack-test)
|
||||||
|
BuildRequires: rubygem(did_you_mean)
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: rubygem(%{gem_name}) = %{version}
|
||||||
|
# end specfile generated dependencies
|
||||||
|
|
||||||
|
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 3.7.2
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Sprockets is a Rack-based asset packaging system that concatenates and serves
|
Sprockets is a Rack-based asset packaging system that concatenates and serves
|
||||||
JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.
|
JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.
|
||||||
|
|
||||||
|
|
||||||
%package help
|
%package help
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{pkg_name}
|
||||||
Requires: %{name} = %{version}-%{release}
|
Group: Documentation
|
||||||
BuildArch: noarch
|
Requires: %{pkg_name} = %{version}-%{release}
|
||||||
Provides: %{name}-doc = %{version}-%{release}
|
BuildArch: noarch
|
||||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
||||||
%description help
|
%description help
|
||||||
Documentation for %{name}.
|
Documentation for %{pkg_name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version} -b 1
|
gem unpack %{SOURCE0}
|
||||||
|
|
||||||
%patch1 -p1
|
%setup -q -D -T -n %{gem_name}-%{version}
|
||||||
|
|
||||||
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
# 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
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
cp -a .%{gem_dir}/* \
|
cp -a .%{gem_dir}/* \
|
||||||
%{buildroot}%{gem_dir}/
|
%{buildroot}%{gem_dir}/
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
cp -a .%{_bindir}/* \
|
cp -a .%{_bindir}/* \
|
||||||
%{buildroot}%{_bindir}/
|
%{buildroot}%{_bindir}/
|
||||||
@ -51,7 +79,8 @@ help2man --no-discard-stderr -N -s1 -o %{buildroot}%{_mandir}/man1/%{gem_name}.1
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
ln -s %{_builddir}/%{gem_name}-%{version}/test .
|
tar xzf %{SOURCE1}
|
||||||
|
cd %{gem_name}-%{version}
|
||||||
mv test/test_closure_compressor.rb{,.disabled}
|
mv test/test_closure_compressor.rb{,.disabled}
|
||||||
mv lib/sprockets/autoload/closure.rb{,.disabled}
|
mv lib/sprockets/autoload/closure.rb{,.disabled}
|
||||||
sed -i '/:Closure/ s/^/#/' lib/sprockets/autoload.rb
|
sed -i '/:Closure/ s/^/#/' lib/sprockets/autoload.rb
|
||||||
@ -63,13 +92,12 @@ mv test/test_yui_compressor.rb{,.disabled}
|
|||||||
mv lib/sprockets/autoload/yui.rb{,.disabled}
|
mv lib/sprockets/autoload/yui.rb{,.disabled}
|
||||||
sed -i '/:YUI/ s/^/#/' lib/sprockets/autoload.rb
|
sed -i '/:YUI/ s/^/#/' lib/sprockets/autoload.rb
|
||||||
touch Gemfile
|
touch Gemfile
|
||||||
RUBYOPT=-Ilib:test ruby -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
RUBYOPT=-Ilib:test ruby -e 'Dir.glob "./test/**/test_*.rb"'
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%dir %{gem_instdir}
|
%dir %{gem_instdir}
|
||||||
%{_bindir}/sprockets
|
%{_bindir}/sprockets
|
||||||
%license %{gem_instdir}/LICENSE
|
|
||||||
%{gem_instdir}/bin
|
%{gem_instdir}/bin
|
||||||
%{gem_libdir}
|
%{gem_libdir}
|
||||||
%exclude %{gem_cache}
|
%exclude %{gem_cache}
|
||||||
@ -81,7 +109,11 @@ popd
|
|||||||
%doc %{gem_instdir}/CHANGELOG.md
|
%doc %{gem_instdir}/CHANGELOG.md
|
||||||
%doc %{gem_instdir}/README.md
|
%doc %{gem_instdir}/README.md
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 19 2022 caodongxia <caodongxia@h-partners.com> - 4.0.2-1
|
||||||
|
- update to 4.0.2
|
||||||
|
|
||||||
* Wed Feb 23 2022 chenchen <chen_aka_jan@163.com> - 3.7.2-2
|
* Wed Feb 23 2022 chenchen <chen_aka_jan@163.com> - 3.7.2-2
|
||||||
- fix build error caused by upgrading to ruby3
|
- fix build error caused by upgrading to ruby3
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
sprockets-4.0.2.gem
Normal file
BIN
sprockets-4.0.2.gem
Normal file
Binary file not shown.
BIN
v3.7.2.tar.gz
BIN
v3.7.2.tar.gz
Binary file not shown.
BIN
v4.0.2.tar.gz
Normal file
BIN
v4.0.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user