Add manual dependencies and patch again
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Diff?expand=0&rev=25
This commit is contained in:
@@ -26,6 +26,9 @@ License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Simple diff to String
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YAPPO/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
# PATCH-FIX-UPSTREAM https://github.com/yappo/p5-String-Diff/commit/cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
|
||||
Patch0: cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
@@ -38,6 +41,16 @@ Requires: perl(Algorithm::Diff)
|
||||
Provides: perl(String::Diff) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(Module::Install::GithubMeta)
|
||||
BuildRequires: perl(Module::Install::ReadmeFromPod)
|
||||
BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod)
|
||||
BuildRequires: perl(Module::Install::Repository)
|
||||
BuildRequires: perl(Test::Base)
|
||||
Requires: perl(Capture::Tiny)
|
||||
Requires: perl(HTML::Entities)
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
String::Diff is the difference of a consecutive string is made. after
|
||||
@@ -79,7 +92,7 @@ You can escape callback set to diff function and diff_merge function.
|
||||
is($diff_new, 'this is <b><ins><BIG>R</BIG>uby</ins></b>');
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
|
Reference in New Issue
Block a user