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