Stephan Kulow 2015-04-16 19:55:07 +00:00 committed by Git OBS Bridge
parent 05763a93d0
commit 1734d82265
2 changed files with 26 additions and 1 deletions

21
cpanspec.yml Normal file
View File

@ -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

View File

@ -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