From d099abb86cb778e0d9ff679de1b9a73f18c8cf9e68e7c1fd2f5289d995975f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Thu, 9 Jan 2025 16:26:22 +0000 Subject: [PATCH] - updated to 0.60.0 (0.06) see /usr/share/doc/packages/perl-HTML-RewriteAttributes/Changes 0.06 Fri Nov 12 2024 Pass more args to callback to support adding attributes. Improve documentation for other features. Add dot ('.') to Makefile.PL to find Module::Install in newer perls. Reported by Kent Fredric, RT 121446. Remove unneeded shebang line in lib files. Reported by Laurent Baillet, RT 126906. Fix spelling error in docs. Reported by x.guimard, RT 126964. OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-RewriteAttributes?expand=0&rev=8 --- .gitattributes | 23 ++++++++ .gitignore | 1 + HTML-RewriteAttributes-0.05.tar.gz | 3 ++ HTML-RewriteAttributes-0.06.tar.gz | 3 ++ cpanspec.yml | 3 ++ perl-HTML-RewriteAttributes.changes | 49 +++++++++++++++++ perl-HTML-RewriteAttributes.spec | 83 +++++++++++++++++++++++++++++ 7 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 HTML-RewriteAttributes-0.05.tar.gz create mode 100644 HTML-RewriteAttributes-0.06.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-HTML-RewriteAttributes.changes create mode 100644 perl-HTML-RewriteAttributes.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HTML-RewriteAttributes-0.05.tar.gz b/HTML-RewriteAttributes-0.05.tar.gz new file mode 100644 index 0000000..40c6177 --- /dev/null +++ b/HTML-RewriteAttributes-0.05.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1808ec7cdf40d2708575fe6155a88f103b17fec77973a5831c2f24c250e7a58c +size 27696 diff --git a/HTML-RewriteAttributes-0.06.tar.gz b/HTML-RewriteAttributes-0.06.tar.gz new file mode 100644 index 0000000..28633f8 --- /dev/null +++ b/HTML-RewriteAttributes-0.06.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc64200261142f9a5f7e0786dc5ab24a6330bc19bd1e3e9bb4b6d7c31621b722 +size 26989 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..a09effb --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,3 @@ +--- +post_prep: + sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-HTML-RewriteAttributes.changes b/perl-HTML-RewriteAttributes.changes new file mode 100644 index 0000000..d4a7d1e --- /dev/null +++ b/perl-HTML-RewriteAttributes.changes @@ -0,0 +1,49 @@ +------------------------------------------------------------------- +Thu Dec 12 16:22:25 UTC 2024 - Tina Müller + +- updated to 0.60.0 (0.06) + see /usr/share/doc/packages/perl-HTML-RewriteAttributes/Changes + + 0.06 Fri Nov 12 2024 + Pass more args to callback to support adding attributes. + Improve documentation for other features. + Add dot ('.') to Makefile.PL to find Module::Install in newer perls. Reported by Kent Fredric, RT 121446. + Remove unneeded shebang line in lib files. Reported by Laurent Baillet, RT 126906. + Fix spelling error in docs. Reported by x.guimard, RT 126964. + +------------------------------------------------------------------- +Tue Oct 3 08:14:57 UTC 2017 - coolo@suse.com + +- patch the Makefile to build with perl 5.26 + +------------------------------------------------------------------- +Thu Jan 17 13:03:09 UTC 2013 - darin@darins.net + +- Update to version 0.05 + * Resources: Preserve the media attribute when inlining CSS + * Resources: Avoid uninitialized warnings by checking the + attributes we expect +- Update source URL + +------------------------------------------------------------------- +Tue Aug 2 18:57:38 UTC 2011 - them4z@googlemail.com + +- updated to 0.04 + * created by cpanspec 1.78.05 + +------------------------------------------------------------------- +Wed Dec 1 13:32:51 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Sat Sep 4 19:46:44 UTC 2010 - chris@computersalat.de + +- recreated by cpanspec 1.78 +- noarch pkg + +------------------------------------------------------------------- +Sat Dec 26 19:12:20 UTC 2009 - lars@linux-schulserver.de + +- initial version 0.03 + diff --git a/perl-HTML-RewriteAttributes.spec b/perl-HTML-RewriteAttributes.spec new file mode 100644 index 0000000..2eb22a8 --- /dev/null +++ b/perl-HTML-RewriteAttributes.spec @@ -0,0 +1,83 @@ +# +# spec file for package perl-HTML-RewriteAttributes +# +# Copyright (c) 2024 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define cpan_name HTML-RewriteAttributes +Name: perl-HTML-RewriteAttributes +Version: 0.60.0 +Release: 0 +# 0.06 -> normalize -> 0.60.0 +%define cpan_version 0.06 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Concise attribute rewriting +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36 +BuildRequires: perl(HTML::Entities) +BuildRequires: perl(HTML::Parser) +BuildRequires: perl(HTML::Tagset) +BuildRequires: perl(URI) +Requires: perl(HTML::Entities) +Requires: perl(HTML::Parser) +Requires: perl(HTML::Tagset) +Requires: perl(URI) +Provides: perl(HTML::RewriteAttributes) = %{version} +Provides: perl(HTML::RewriteAttributes::Links) = 0.03 +Provides: perl(HTML::RewriteAttributes::Resources) = 0.03 +%undefine __perllib_provides +%{perl_requires} + +%description +'HTML::RewriteAttributes' is designed for simple yet powerful HTML +attribute rewriting. + +You simply specify a callback to run for each attribute and we do the rest +for you. + +This module is designed to be subclassable to make handling special cases +easier. See the source for methods you can override. + +See the SYNOPSIS above and included tests in the 't' directory for more +examples. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} + +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL +# MANUAL END + +%build +PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README + +%changelog