forked from pool/perl-HTML-RewriteAttributes
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:
committed by
Git OBS Bridge
parent
f76bcd3788
commit
2de4aeb315
3
cpanspec.yml
Normal file
3
cpanspec.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
post_prep:
|
||||
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
@@ -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
|
||||
|
||||
|
@@ -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, <sartak@bestpractical.com>
|
||||
|
||||
%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
|
||||
|
Reference in New Issue
Block a user