forked from pool/perl-JavaScript-Minifier-XS
		
	Accepting request 915002 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/915002 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-JavaScript-Minifier-XS?expand=0&rev=3
This commit is contained in:
		@@ -1,3 +0,0 @@
 | 
			
		||||
version https://git-lfs.github.com/spec/v1
 | 
			
		||||
oid sha256:151212ca4bd50b2f5e1de6d01e3cb08460407bd75f27dfc8162f2f7927839eee
 | 
			
		||||
size 17517
 | 
			
		||||
							
								
								
									
										3
									
								
								JavaScript-Minifier-XS-0.14.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								JavaScript-Minifier-XS-0.14.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
version https://git-lfs.github.com/spec/v1
 | 
			
		||||
oid sha256:e6a4a2ae004981e2e412b417b1a109b15170f2fbcb366797ffe097c7db1dc081
 | 
			
		||||
size 25994
 | 
			
		||||
							
								
								
									
										35
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								cpanspec.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
---
 | 
			
		||||
#description_paragraphs: 3
 | 
			
		||||
#description: |-
 | 
			
		||||
#  override description from CPAN
 | 
			
		||||
#summary: override summary from CPAN
 | 
			
		||||
#no_testing: broken upstream
 | 
			
		||||
#sources:
 | 
			
		||||
#  - source1
 | 
			
		||||
#  - source2
 | 
			
		||||
#patches:
 | 
			
		||||
#  foo.patch: -p1
 | 
			
		||||
#  bar.patch:
 | 
			
		||||
#  baz.patch: PATCH-FIX-OPENSUSE
 | 
			
		||||
#preamble: |-
 | 
			
		||||
# BuildRequires:  gcc-c++
 | 
			
		||||
#post_prep: |-
 | 
			
		||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
 | 
			
		||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
 | 
			
		||||
#post_build: |-
 | 
			
		||||
# rm unused.files
 | 
			
		||||
#post_install: |-
 | 
			
		||||
# sed on %{name}.files
 | 
			
		||||
#license: SUSE-NonFree
 | 
			
		||||
#skip_noarch: 1
 | 
			
		||||
#custom_build: |-
 | 
			
		||||
#./Build build flags=%{?_smp_mflags} --myflag
 | 
			
		||||
#custom_test: |-
 | 
			
		||||
#startserver && make test
 | 
			
		||||
#ignore_requires: Bizarre::Module
 | 
			
		||||
#skip_doc: regexp_to_skip_for_doc.*
 | 
			
		||||
#add_doc: files to add to docs
 | 
			
		||||
#misc: |-
 | 
			
		||||
#anything else to be added to spec file
 | 
			
		||||
#follows directly after %files section, so it can contain new blocks or also
 | 
			
		||||
#changes to %files section
 | 
			
		||||
@@ -1,3 +1,31 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Mon Feb  8 03:08:02 UTC 2021 - Tina Müller <timueller+perl@suse.de>
 | 
			
		||||
 | 
			
		||||
- 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.
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu Apr  9 18:51:44 UTC 2015 - coolo@suse.com
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user