diff --git a/JavaScript-Minifier-1.05.tar.gz b/JavaScript-Minifier-1.05.tar.gz deleted file mode 100644 index 9bf1801..0000000 --- a/JavaScript-Minifier-1.05.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83b0ce3d9aa21b9e9328ab4ffcf6ba57d0a13b2ef80d4bdb7888a804dfc236ae -size 7314 diff --git a/JavaScript-Minifier-1.13.tar.gz b/JavaScript-Minifier-1.13.tar.gz new file mode 100644 index 0000000..52e499b --- /dev/null +++ b/JavaScript-Minifier-1.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:791a63cab57807263961a54bec28f589a2e3ce7aeff6fddf1df27edede4fdc6e +size 22282 diff --git a/perl-JavaScript-Minifier.changes b/perl-JavaScript-Minifier.changes index 2ba2f1a..10283b4 100644 --- a/perl-JavaScript-Minifier.changes +++ b/perl-JavaScript-Minifier.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 13 18:42:39 UTC 2015 - coolo@suse.com + +- updated to 1.13 + see /usr/share/doc/packages/perl-JavaScript-Minifier/Changes + ------------------------------------------------------------------- Tue Aug 2 20:52:40 UTC 2011 - them4z@googlemail.com diff --git a/perl-JavaScript-Minifier.spec b/perl-JavaScript-Minifier.spec index a392183..f9df8ec 100644 --- a/perl-JavaScript-Minifier.spec +++ b/perl-JavaScript-Minifier.spec @@ -1,7 +1,7 @@ # -# spec file for package perl-JavaScript-Minifier (Version 1.05) +# spec file for package perl-JavaScript-Minifier # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,15 +15,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: perl-JavaScript-Minifier -Version: 1.05 -Release: 1 -License: GPL+ or Artistic +Version: 1.13 +Release: 0 %define cpan_name JavaScript-Minifier Summary: Perl extension for minifying JavaScript code -Url: http://search.cpan.org/dist/JavaScript-Minifier/ +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Source: http://www.cpan.org/authors/id/P/PM/PMICHAUX/%{cpan_name}-%{version}.tar.gz +Url: http://search.cpan.org/dist/JavaScript-Minifier/ +Source: http://www.cpan.org/authors/id/Z/ZO/ZOFFIX/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -31,12 +32,24 @@ BuildRequires: perl-macros %{perl_requires} %description -This module removes unnecessary whitespace from JavaScript code. The primary requirement developing this module is to not break working code: if working JavaScript is in input then working JavaScript is output. +This module removes unnecessary whitespace from JavaScript code. The +primary requirement developing this module is to not break working code: if +working JavaScript is in input then working JavaScript is output. It is ok +if the input has missing semi-colons, snips like '++ +' or '12 +.toString()', for example. Internet Explorer conditional comments are +copied to the output but the code inside these comments will not be +minified. -Author: -------- - Peter Michaux , - Eric Herrera +The ECMAScript specifications allow for many different whitespace +characters: space, horizontal tab, vertical tab, new line, carriage return, +form feed, and paragraph separator. This module understands all of these as +whitespace except for vertical tab and paragraph separator. These two types +of whitespace are not minimized. + +For static JavaScript files, it is recommended that you minify during the +build stage of web deployment. If you minify on-the-fly then it might be a +good idea to cache the minified file. Minifying static files on-the-fly +repeatedly is wasteful. %prep %setup -q -n %{cpan_name}-%{version} @@ -53,10 +66,8 @@ Author: %perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files %defattr(-,root,root,755) +%doc Changes examples LICENSE README README.md xt %changelog