8
0

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
This commit is contained in:
Stephan Kulow
2021-08-30 10:43:24 +00:00
committed by Git OBS Bridge
parent b31fc4e548
commit 731dc16fb9
5 changed files with 87 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-JavaScript-Minifier-XS
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,29 +12,28 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-JavaScript-Minifier-XS
Version: 0.11
Release: 0
%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+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/JavaScript-Minifier-XS/
Source: http://www.cpan.org/authors/id/G/GT/GTERMARS/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
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(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build) >= 0.4200
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 un-necessary whitespace and comments from JavaScript files, which
remove unnecessary whitespace and comments from JavaScript files, which
also *not* breaking the JavaScript.
'JavaScript::Minifier::XS' is similar in function to
@@ -42,21 +41,23 @@ also *not* breaking the JavaScript.
and not just pure Perl.
%prep
%setup -q -n %{cpan_name}-%{version}
%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} Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
./Build test
make test
%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README xt
%doc Changes README
%license LICENSE
%changelog