2007-01-15 23:30:44 +00:00
|
|
|
#
|
2011-11-17 15:34:18 +00:00
|
|
|
# spec file for package perl-HTML-Clean
|
2007-01-15 23:30:44 +00:00
|
|
|
#
|
2019-08-28 08:12:28 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:44 +00:00
|
|
|
#
|
2009-06-18 15:05:24 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:30:44 +00:00
|
|
|
#
|
|
|
|
|
2009-06-18 15:05:24 +00:00
|
|
|
|
|
|
|
Name: perl-HTML-Clean
|
2019-09-10 10:28:43 +00:00
|
|
|
Version: 1.2
|
2017-08-14 12:56:11 +00:00
|
|
|
Release: 0
|
2019-08-28 08:12:28 +00:00
|
|
|
%define cpan_name HTML-Clean
|
2009-06-18 15:05:24 +00:00
|
|
|
Summary: Cleans up HTML code for web browsers, not humans
|
2019-09-10 10:28:43 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2017-08-14 12:56:11 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2019-08-28 08:12:28 +00:00
|
|
|
Url: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/A/AZ/AZJADFTRE/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2009-06-18 15:05:24 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2019-08-28 08:12:28 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-12-03 14:37:11 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:44 +00:00
|
|
|
|
|
|
|
%description
|
2019-08-28 08:12:28 +00:00
|
|
|
The HTML::Clean module encapsulates a number of common techniques for
|
|
|
|
minimizing the size of HTML files. You can typically save between 10% and
|
|
|
|
50% of the size of a HTML file using these methods. It provides the
|
|
|
|
following features:
|
|
|
|
|
2019-09-10 10:28:43 +00:00
|
|
|
* Remove unneeded whitespace (beginning of line, etc)
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
* Remove unneeded META elements.
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
* Remove HTML comments (except for styles, javascript and SSI)
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-09-10 10:28:43 +00:00
|
|
|
* Replace tags with equivalent shorter tags (<strong> --> <b>)
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
* etc.
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-09-10 10:28:43 +00:00
|
|
|
The entire process is configurable, so you can pick and choose what you want
|
2019-08-28 08:12:28 +00:00
|
|
|
to clean.
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:30:44 +00:00
|
|
|
|
|
|
|
%build
|
2019-08-28 08:12:28 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2007-01-15 23:30:44 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2019-08-28 08:12:28 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:44 +00:00
|
|
|
%perl_process_packlist
|
2019-08-28 08:12:28 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2019-08-28 08:12:28 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README TODO
|
2007-01-15 23:30:44 +00:00
|
|
|
|
2009-06-18 15:05:24 +00:00
|
|
|
%changelog
|