8
0
Files
perl-CSS-Minifier-XS/perl-CSS-Minifier-XS.spec

66 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-CSS-Minifier-XS
#
# Copyright (c) 2025 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.
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
%define cpan_name CSS-Minifier-XS
Name: perl-CSS-Minifier-XS
Version: 0.130.0
Release: 0
# 0.13 -> normalize -> 0.130.0
%define cpan_version 0.13
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: XS based CSS minifier
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/%{cpan_name}-%{cpan_version}.tar.gz
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
Source1: cpanspec.yml
2025-08-12 18:12:55 +02:00
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::DiagINC) >= 0.2
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
BuildRequires: perl(Test::More) >= 0.96
Provides: perl(CSS::Minifier::XS) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
'CSS::Minifier::XS' is a CSS "minifier"; its designed to remove unnecessary
whitespace and comments from CSS files, while also *not* breaking the CSS.
'CSS::Minifier::XS' is similar in function to 'CSS::Minifier', but is
substantially faster as its written in XS and not just pure Perl.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
make test
%install
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
Accepting request 914005 from devel:languages:perl:autoupdate - updated to 0.13 see /usr/share/doc/packages/perl-CSS-Minifier-XS/Changes 0.13 2021-02-06 17:26:39-08:00 America/Vancouver - Internals; avoid allocating memory for each node as we tokenize the document, and simply use pointers back into original string. - Dramatically improves performance; local testing shows boost from ~25/s to ~85MB/s - Improve zero value minification further - Simplified whitespace compaction 0.12 2021-01-30 21:46:07-08:00 America/Vancouver - rewrote test suite into a single ".t" test - GH #1 / RT #97574; whitespace before a ":" in a pseudo-selector is meaningful and needs to be preserved (e.g. "#link :visited") - Further reductions of "zero values", when possible - "00000px" and "0.0px" become "0px" - "000%" and "0.0%" become "0%" - units are preserved inside of functions, but eliminated otherwise, and percentages are always left as a percentages - Optimized whitespace collapsing - Optimized memory usage and string copying 0.11 2020-12-30 21:27:39-08:00 America/Vancouver - POD spelling fixes - Switch to DZil Author Bundle 0.10 2020-12-28 11:00:17-08:00 America/Vancouver - RT #90879; correct minification of %s in "hsl()" and "hsla()" functions Thanks to Philipp Soehnlein - RT #103231; don't remove units on zero values inside of functions. Thanks to Isaac Montoya, for an additional test case. - No long drop units on zero percentages, as those may be required for CSS animations. Thanks to Isaac Montoya for continuing to poke me on this. - Now prunes leading whitespace before "!important" e.g. "color: red !important" becomes "color:red!important" - Switch to Dist::Zilla OBS-URL: https://build.opensuse.org/request/show/914005 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CSS-Minifier-XS?expand=0&rev=4
2021-08-25 16:13:52 +00:00
%license LICENSE
%changelog