8
0
Files
perl-JavaScript-Minifier-XS/perl-JavaScript-Minifier-XS.spec
Stephan Kulow 731dc16fb9 Accepting request 914007 from devel:languages:perl:autoupdate
- updated to 0.14
   see /usr/share/doc/packages/perl-JavaScript-Minifier-XS/Changes
  0.14      2021-02-06 23:36:36-08:00 America/Vancouver
      - rewrote test suite into a single ".t" test
      - optimized memory allocations, by allocating Nodes in bulk, and being
        smarter about when we need to free/reallocate content buffers in Nodes
      - optimize whitespace collapsing
      - GH#3 / RT#108682; fix whitespace reduction at end of preserved line
        comment.  Thanks to Dan Goodliffe
      - GH#6; fix unescaped slash in character set, inside of a regex, with thanks
        to @faf
  0.13      2020-12-30 21:46:29-08:00 America/Vancouver
      - POD cleanups; spelling, SYNOPSIS
      - Switch to DZil Author Bundle
  0.12      2020-12-28 08:31:31-08:00 America/Vancouver
      - Switch to GitHub Actions, from Travis-CI.
      - Add META links to GitHub repository and issue tracker
      - Switch to Dist::Zilla
      - Bump minimum required Perl to 5.8.1
      - RT #130347; handle ES6 template literals.
        Thanks to Robert Rothenberg.

OBS-URL: https://build.opensuse.org/request/show/914007
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JavaScript-Minifier-XS?expand=0&rev=6
2021-08-30 10:43:24 +00:00

64 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-JavaScript-Minifier-XS
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name JavaScript-Minifier-XS
Name: perl-JavaScript-Minifier-XS
Version: 0.14
Release: 0
Summary: XS based JavaScript minifier
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::DiagINC) >= 0.002
BuildRequires: perl(Test::More) >= 0.96
%{perl_requires}
%description
'JavaScript::Minifier::XS' is a JavaScript "minifier"; its designed to
remove unnecessary whitespace and comments from JavaScript files, which
also *not* breaking the JavaScript.
'JavaScript::Minifier::XS' is similar in function to
'JavaScript::Minifier', but is substantially faster as its written in XS
and not just pure Perl.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog