forked from pool/perl-HTML-Clean
Accepting request 726431 from home:pmonrealgonzalez:branches:devel:languages:perl
- Drop perl-HTML-Clean-0.8-IO.diff as upstream moved to IO::File - updated to 0.9 see /usr/share/doc/packages/perl-HTML-Clean/Changes 0.9 Tue Aug 20 09:24 PDT 2019 - Fix warnings - use IO::File instead deprecated module IO. OBS-URL: https://build.opensuse.org/request/show/726431 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-Clean?expand=0&rev=19
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ac20aba23afd4d64de2c98dc27593a37b45000ecb0eb4b3bd41792017aff0dc0
|
||||
size 48157
|
3
HTML-Clean-0.9.tar.gz
Normal file
3
HTML-Clean-0.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:31ecec3e9a664e624c22cdd37b4e02ade68364069873aa9048fda13cf4ef9b94
|
||||
size 48592
|
28
cpanspec.yml
Normal file
28
cpanspec.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
#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:
|
||||
#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
|
@@ -1,10 +0,0 @@
|
||||
--- lib/HTML/Clean.pm
|
||||
+++ lib/HTML/Clean.pm
|
||||
@@ -1,7 +1,6 @@
|
||||
package HTML::Clean;
|
||||
|
||||
use Carp;
|
||||
-use IO;
|
||||
use Fcntl;
|
||||
use strict;
|
||||
require 5.004;
|
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 27 08:59:08 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
|
||||
|
||||
- Drop perl-HTML-Clean-0.8-IO.diff as upstream moved to IO::File
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 22 05:08:31 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 0.9
|
||||
see /usr/share/doc/packages/perl-HTML-Clean/Changes
|
||||
|
||||
0.9 Tue Aug 20 09:24 PDT 2019
|
||||
|
||||
- Fix warnings - use IO::File instead deprecated module IO.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 11 12:24:41 UTC 2017 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-Clean
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,70 +12,62 @@
|
||||
# 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-HTML-Clean
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Version: 0.8
|
||||
Version: 0.9
|
||||
Release: 0
|
||||
Provides: HTML-Clean
|
||||
Conflicts: perlmod
|
||||
Url: http://cpan.org/modules/by-module/HTML/
|
||||
Source: HTML-Clean-%{version}.tar.gz
|
||||
Patch: %{name}-%{version}-IO.diff
|
||||
%define cpan_name HTML-Clean
|
||||
Summary: Cleans up HTML code for web browsers, not humans
|
||||
License: Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
The majority of the web pages of the internet today are much larger
|
||||
than they need to be. The reason for this is that HTML tends to be
|
||||
stored in a human readable format, with indenting, newlines and
|
||||
comments.
|
||||
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:
|
||||
|
||||
However, all of these comments, whitespace etc. are ignored by the
|
||||
browser, and needlessly lengthen download times.
|
||||
* Remove unneeded whitespace (begining of line, etc)
|
||||
|
||||
Second, many people are using WYSIWYG HTML editors these days. This
|
||||
makes creating content easy. However these editors can cause a number
|
||||
of compatibility problems by tying themselves to a particular browser
|
||||
or operating system.
|
||||
* Remove unneeded META elements.
|
||||
|
||||
* Remove HTML comments (except for styles, javascript and SSI)
|
||||
|
||||
* Replace tags with equivilant shorter tags (<strong> --> <b>)
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Paul Lindner <paul.lindner@itu.int>
|
||||
* etc.
|
||||
|
||||
The entire proces is configurable, so you can pick and choose what you want
|
||||
to clean.
|
||||
|
||||
%prep
|
||||
%setup -n HTML-Clean-%{version} -q
|
||||
%patch
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make %{?_smp_mflags} all
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc TODO Changes README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorarch}/auto/HTML
|
||||
%{perl_vendorlib}/auto/HTML
|
||||
%{perl_vendorlib}/HTML
|
||||
%{_bindir}/htmlclean
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README TODO
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user