Accepting request 295903 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295903 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JavaScript-Minifier?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
9de2e6ef05
commit
19fbea4ca6
@@ -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 <petermichaux@gmail.com>,
|
||||
Eric Herrera <herrera@10east.com>
|
||||
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
|
||||
|
Reference in New Issue
Block a user