From 786fc77fc97c13ac048d817f104429a71828eabd859b4f85d86e9929d372d93c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 22 Jul 2024 21:02:08 +0000 Subject: [PATCH] Fix ambiguous dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Graph-ReadWrite?expand=0&rev=3 --- cpanspec.yml | 37 +++++++++++++++++++++++++++++++++++++ perl-Graph-ReadWrite.spec | 13 +++++++++---- 2 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..e561687 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,37 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# baz.patch: PATCH-FIX-OPENSUSE +# perl(Parse::Yapp::Driver) is also provided by perl-Math-Calc-Units +preamble: |- + BuildRequires: perl(Parse::Yapp) + Requires: perl(Parse::Yapp) +ignore_requires: Parse::Yapp::Driver +#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 +#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-Graph-ReadWrite.spec b/perl-Graph-ReadWrite.spec index 7bb7ec5..aaadc21 100644 --- a/perl-Graph-ReadWrite.spec +++ b/perl-Graph-ReadWrite.spec @@ -26,20 +26,21 @@ License: Artistic-1.0 OR GPL-1.0-or-later Summary: Modules for reading and writing directed graphs URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Graph) BuildRequires: perl(Graph::Undirected) -BuildRequires: perl(Parse::Yapp::Driver) +BuildRequires: perl(parent) +#BuildRequires: perl(Parse::Yapp::Driver) BuildRequires: perl(XML::Parser) BuildRequires: perl(XML::Writer) -BuildRequires: perl(parent) Requires: perl(Graph) -Requires: perl(Parse::Yapp::Driver) +Requires: perl(parent) +#Requires: perl(Parse::Yapp::Driver) Requires: perl(XML::Parser) Requires: perl(XML::Writer) -Requires: perl(parent) Provides: perl(Graph::ReadWrite) = %{version} Provides: perl(Graph::Reader) = %{version} Provides: perl(Graph::Reader::Dot) = %{version} @@ -53,6 +54,10 @@ Provides: perl(Graph::Writer::XML) = %{version} Provides: perl(Graph::Writer::daVinci) = %{version} %undefine __perllib_provides %{perl_requires} +# MANUAL BEGIN +BuildRequires: perl(Parse::Yapp) +Requires: perl(Parse::Yapp) +# MANUAL END %description This module is a placeholder in the Graph-ReadWrite distribution, which is