From 1734d82265ac09bc1eb8aa2563aa8f8af726247d86ef72a43047c71b84e83dc2 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 19:55:07 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Test-YAML?expand=0&rev=2 --- cpanspec.yml | 21 +++++++++++++++++++++ perl-Test-YAML.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..cb8cc14 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,21 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +post_prep: |- + sed -e 's,/usr/bin/bash,/bin/bash,' bin/test-yaml +# 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_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Test-YAML.spec b/perl-Test-YAML.spec index 47c9936..dc97e7d 100644 --- a/perl-Test-YAML.spec +++ b/perl-Test-YAML.spec @@ -24,7 +24,8 @@ Summary: Testing Module for YAML Implementations License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-YAML/ -Source: http://www.cpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -39,6 +40,9 @@ specific support. %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -e 's,/usr/bin/bash,/bin/bash,' bin/test-yaml +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor