8
0

Accepting request 530726 from devel:languages:perl:tobefixed

fix

OBS-URL: https://build.opensuse.org/request/show/530726
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-RewriteAttributes?expand=0&rev=6
This commit is contained in:
Stephan Kulow
2017-10-03 08:27:19 +00:00
committed by Git OBS Bridge
parent f76bcd3788
commit 2de4aeb315
3 changed files with 23 additions and 23 deletions

3
cpanspec.yml Normal file
View File

@@ -0,0 +1,3 @@
---
post_prep:
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL

View File

@@ -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 Thu Jan 17 13:03:09 UTC 2013 - darin@darins.net

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-HTML-RewriteAttributes # 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 # 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
@@ -20,14 +20,14 @@ Name: perl-HTML-RewriteAttributes
Version: 0.05 Version: 0.05
Release: 0 Release: 0
%define cpan_name HTML-RewriteAttributes %define cpan_name HTML-RewriteAttributes
Summary: Concise attribute rewriting Summary: Concise Attribute Rewriting
License: GPL-1.0+ or Artistic-1.0 License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTML-RewriteAttributes/ 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 BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(HTML::Entities) BuildRequires: perl(HTML::Entities)
@@ -38,23 +38,23 @@ Requires: perl(HTML::Entities)
Requires: perl(HTML::Parser) Requires: perl(HTML::Parser)
Requires: perl(HTML::Tagset) Requires: perl(HTML::Tagset)
Requires: perl(URI) Requires: perl(URI)
%{perl_requires}
%description %description
HTML::RewriteAttributes is designed for simple yet powerful HTML attribute 'HTML::RewriteAttributes' is designed for simple yet powerful HTML
rewriting. attribute rewriting.
You simply specify a callback to run for each attribute and we do the rest for You simply specify a callback to run for each attribute and we do the rest
you. for you.
This module is designed to be subclassable to make handling special cases This module is designed to be subclassable to make handling special cases
eaiser. See the source for methods you can override. eaiser. See the source for methods you can override.
Author:
-------
Shawn M Moore, <sartak@bestpractical.com>
%prep %prep
%setup -q -n %{cpan_name}-%{version} %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 %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -65,19 +65,11 @@ Author:
%install %install
%perl_make_install %perl_make_install
# i really have no idea what these changes do, but i'll keep them. %perl_process_packlist
#
# 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_gen_filelist %perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,755) %defattr(-,root,root,755)
%doc Changes README
%changelog %changelog