diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..24d52d2 --- /dev/null +++ b/cpanspec.yml @@ -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 diff --git a/perl-String-Diff.spec b/perl-String-Diff.spec index ac02bca..af5e182 100644 --- a/perl-String-Diff.spec +++ b/perl-String-Diff.spec @@ -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><BIG>R</BIG>uby</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