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
|
Fri Aug 11 12:24:41 UTC 2017 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-HTML-Clean
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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
|
Name: perl-HTML-Clean
|
||||||
BuildRequires: perl
|
Version: 0.9
|
||||||
BuildRequires: perl-macros
|
|
||||||
Version: 0.8
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Provides: HTML-Clean
|
%define cpan_name HTML-Clean
|
||||||
Conflicts: perlmod
|
|
||||||
Url: http://cpan.org/modules/by-module/HTML/
|
|
||||||
Source: HTML-Clean-%{version}.tar.gz
|
|
||||||
Patch: %{name}-%{version}-IO.diff
|
|
||||||
Summary: Cleans up HTML code for web browsers, not humans
|
Summary: Cleans up HTML code for web browsers, not humans
|
||||||
License: Artistic-1.0
|
License: Artistic-1.0
|
||||||
Group: Development/Libraries/Perl
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: perl-macros
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The majority of the web pages of the internet today are much larger
|
The HTML::Clean module encapsulates a number of common techniques for
|
||||||
than they need to be. The reason for this is that HTML tends to be
|
minimizing the size of HTML files. You can typically save between 10% and
|
||||||
stored in a human readable format, with indenting, newlines and
|
50% of the size of a HTML file using these methods. It provides the
|
||||||
comments.
|
following features:
|
||||||
|
|
||||||
However, all of these comments, whitespace etc. are ignored by the
|
* Remove unneeded whitespace (begining of line, etc)
|
||||||
browser, and needlessly lengthen download times.
|
|
||||||
|
|
||||||
Second, many people are using WYSIWYG HTML editors these days. This
|
* Remove unneeded META elements.
|
||||||
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 HTML comments (except for styles, javascript and SSI)
|
||||||
|
|
||||||
|
* Replace tags with equivilant shorter tags (<strong> --> <b>)
|
||||||
|
|
||||||
Authors:
|
* etc.
|
||||||
--------
|
|
||||||
Paul Lindner <paul.lindner@itu.int>
|
|
||||||
|
|
||||||
%prep
|
The entire proces is configurable, so you can pick and choose what you want
|
||||||
%setup -n HTML-Clean-%{version} -q
|
to clean.
|
||||||
%patch
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags} all
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%perl_make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%defattr(-,root,root,755)
|
||||||
|
%doc Changes README TODO
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc TODO Changes README
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorarch}/auto/HTML
|
|
||||||
%{perl_vendorlib}/auto/HTML
|
|
||||||
%{perl_vendorlib}/HTML
|
|
||||||
%{_bindir}/htmlclean
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user