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:
42
cpanspec.yml
Normal file
42
cpanspec.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
#description_paragraphs: 3
|
||||||
|
#description: |-
|
||||||
|
# override description from CPAN
|
||||||
|
#summary: override summary from CPAN
|
||||||
|
#no_testing: broken upstream
|
||||||
|
#sources:
|
||||||
|
# - source1
|
||||||
|
# - source2
|
||||||
|
patches:
|
||||||
|
cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/yappo/p5-String-Diff/commit/cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
|
||||||
|
# bar.patch:
|
||||||
|
# baz.patch: PATCH-FIX-OPENSUSE
|
||||||
|
preamble: |-
|
||||||
|
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)
|
||||||
|
#post_prep: |-
|
||||||
|
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||||
|
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||||
|
#post_build: |-
|
||||||
|
# rm unused.files
|
||||||
|
#post_install: |-
|
||||||
|
# sed on %{name}.files
|
||||||
|
#license: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
||||||
|
#skip_doc: regexp_to_skip_for_doc.*
|
||||||
|
#add_doc: files to add to docs
|
||||||
|
#misc: |-
|
||||||
|
#anything else to be added to spec file
|
||||||
|
#follows directly after %files section, so it can contain new blocks or also
|
||||||
|
#changes to %files section
|
@@ -26,6 +26,9 @@ License: Artistic-1.0 OR GPL-1.0-or-later
|
|||||||
Summary: Simple diff to String
|
Summary: Simple diff to String
|
||||||
URL: https://metacpan.org/release/%{cpan_name}
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YAPPO/%{cpan_name}-%{cpan_version}.tar.gz
|
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
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
@@ -38,6 +41,16 @@ Requires: perl(Algorithm::Diff)
|
|||||||
Provides: perl(String::Diff) = %{version}
|
Provides: perl(String::Diff) = %{version}
|
||||||
%undefine __perllib_provides
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{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
|
%description
|
||||||
String::Diff is the difference of a consecutive string is made. after
|
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>');
|
is($diff_new, 'this is <b><ins><BIG>R</BIG>uby</ins></b>');
|
||||||
|
|
||||||
%prep
|
%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
|
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