| |
@@ -6,7 +6,7 @@
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
Version: 3.2.0
|
| |
- Release: 7%{?dist}
|
| |
+ Release: 8%{?dist}
|
| |
Summary: Ruby wrapper for UglifyJS JavaScript compressor
|
| |
# lib/source-map.js is BSD.
|
| |
# lib/uglify.js is BSD.
|
| |
@@ -29,9 +29,9 @@
|
| |
BuildRequires: rubygem(execjs) >= 0.3.0
|
| |
BuildRequires: rubygem(rspec)
|
| |
BuildRequires: %{_bindir}/node
|
| |
- BuildRequires: uglify-js = %{uglify_js_version}
|
| |
- # uglify-js does not provide single file uglify-js.js yet => let's
|
| |
- # generate and bundle it here.
|
| |
+
|
| |
+ # Bundle uglify-js by the request from the Fedora Minimization team.
|
| |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1828876
|
| |
Provides: bundled(uglify-js) = %{uglify_js_version}
|
| |
# There is not included dist/source-map.js yet.
|
| |
# https://bugzilla.redhat.com/show_bug.cgi?id=1358915
|
| |
@@ -62,14 +62,7 @@
|
| |
sed -i '/files/ s|"lib/es5.js".freeze, ||' %{gem_name}.gemspec
|
| |
sed -i '/files/ s|"lib/split.js".freeze, ||' %{gem_name}.gemspec
|
| |
|
| |
- # Explicitly removing the file.
|
| |
- rm lib/uglify.js
|
| |
-
|
| |
%build
|
| |
- # It's nice to regenerate from system uglify.js
|
| |
- # See "Use of pregenerated code" Guidelines.
|
| |
- uglifyjs --self --comments /Copyright/ > lib/uglify.js
|
| |
-
|
| |
# Create the gem as gem install only works on a gem file
|
| |
gem build %{gem_name}.gemspec
|
| |
|
| |
@@ -111,6 +104,9 @@
|
| |
%{gem_instdir}/Rakefile
|
| |
|
| |
%changelog
|
| |
+ * Mon Apr 27 2020 Jun Aruga <jaruga@redhat.com> - 3.2.0-8
|
| |
+ - Bundle uglify-js by the request from the Fedora Minimization team.
|
| |
+
|
| |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-7
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
| |
|
| |
Remove uglify-js build dependency, bundling it.
There are 2 reasons to do it.
https://src.fedoraproject.org/rpms/nodejs-source-map-support