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 index 3113041..b191719 100644 --- a/perl-HTML-RewriteAttributes.changes +++ b/perl-HTML-RewriteAttributes.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/perl-HTML-RewriteAttributes.spec b/perl-HTML-RewriteAttributes.spec index ea63aff..9438f8c 100644 --- a/perl-HTML-RewriteAttributes.spec +++ b/perl-HTML-RewriteAttributes.spec @@ -1,7 +1,7 @@ # # spec file for package perl-HTML-RewriteAttributes # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -20,14 +20,14 @@ Name: perl-HTML-RewriteAttributes Version: 0.05 Release: 0 %define cpan_name HTML-RewriteAttributes -Summary: Concise attribute rewriting -License: GPL-1.0+ or Artistic-1.0 +Summary: Concise Attribute Rewriting +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/HTML-RewriteAttributes/ -Source: http://search.cpan.org/CPAN/authors/id/T/TS/TSIBLEY/HTML-RewriteAttributes-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/T/TS/TSIBLEY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(HTML::Entities) @@ -38,23 +38,23 @@ Requires: perl(HTML::Entities) Requires: perl(HTML::Parser) Requires: perl(HTML::Tagset) Requires: perl(URI) +%{perl_requires} %description -HTML::RewriteAttributes is designed for simple yet powerful HTML attribute -rewriting. +'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. +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 eaiser. See the source for methods you can override. -Author: -------- - Shawn M Moore, - %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -65,19 +65,11 @@ Author: %install %perl_make_install -# i really have no idea what these changes do, but i'll keep them. -# -# don't do perl_process_packlist (because this is a noarch package?) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files %defattr(-,root,root,755) +%doc Changes README %changelog