diff --git a/.gitignore b/.gitignore index 0a9a173..3a7c4d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /grunt-lib-contrib-0.6.1.tgz +/grunt-lib-contrib-0.7.1.tgz diff --git a/check_actual_gzip_size.patch b/check_actual_gzip_size.patch new file mode 100644 index 0000000..db34a8c --- /dev/null +++ b/check_actual_gzip_size.patch @@ -0,0 +1,11 @@ +--- a/test/lib_test.js 2016-08-24 18:50:18.637854442 +0200 ++++ b/test/lib_test.js 2016-08-24 18:50:18.637854442 +0200 +@@ -125,7 +125,7 @@ + // Report minification and gzip results + actual = ''; + expected = [ +- '495 B → 396 B → 36 B (gzip)' ++ '495 B → 396 B → 29 B (gzip)' + ].join(grunt.util.linefeed) + grunt.util.linefeed; + + helper.minMaxInfo(min, max, 'gzip'); diff --git a/nodejs-grunt-lib-contrib.spec b/nodejs-grunt-lib-contrib.spec index 5b3096d..3e299b3 100644 --- a/nodejs-grunt-lib-contrib.spec +++ b/nodejs-grunt-lib-contrib.spec @@ -1,33 +1,26 @@ -%{?nodejs_find_provides_and_requires} - -%if 0%{?fedora} >= 21 %global enable_tests 1 -%else -%global enable_tests 0 -%endif Name: nodejs-grunt-lib-contrib -Version: 0.6.1 -Release: 6%{?dist} +Version: 0.7.1 +Release: 1%{?dist} Summary: Common functionality shared across grunt-contrib tasks License: MIT -Group: System Environment/Libraries URL: https://github.com/gruntjs/grunt-lib-contrib -Source0: http://registry.npmjs.org/grunt-lib-contrib/-/grunt-lib-contrib-%{version}.tgz +Source0: https://registry.npmjs.org/grunt-lib-contrib/-/grunt-lib-contrib-%{version}.tgz + +# current gzip seems more efficient than the one originally tested against +Patch0: check_actual_gzip_size.patch BuildArch: noarch -%if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(grunt-cli) BuildRequires: npm(grunt-contrib-nodeunit) -BuildRequires: npm(zlib-browserify) +BuildRequires: npm(maxmin) +BuildRequires: npm(strip-path) %endif %description @@ -35,8 +28,7 @@ BuildRequires: npm(zlib-browserify) %prep -%setup -q -n package -%nodejs_fixdep zlib-browserify '~0.0.1' +%autosetup -p1 -n package %build @@ -54,16 +46,20 @@ cp -pr package.json lib/ \ %if 0%{?enable_tests} %check %nodejs_symlink_deps --check -grunt test +grunt nodeunit %endif %files -%doc AUTHORS CHANGELOG LICENSE-MIT README.md +%doc AUTHORS CHANGELOG README.md +%license LICENSE-MIT %{nodejs_sitelib}/grunt-lib-contrib %changelog +* Wed Aug 24 2016 Piotr Popieluch - - 0.7.1-1 +- Update to 0.7.1 + * Thu Feb 04 2016 Fedora Release Engineering - 0.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index f3c6d34..95661dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -db35323a380ea560c962ac084f6fb786 grunt-lib-contrib-0.6.1.tgz +6e355dc8fe1607271e2c2500b9280544 grunt-lib-contrib-0.7.1.tgz