File cpanspec.yml of Package perl-DBD-ODBC
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
patches:
perl-DBD-ODBC-1.29-Makefile.diff: -p0
# bar.patch:
preamble: |-
BuildRequires: unixODBC-devel
post_prep: |-
for file in README.af README.unicode; do
perl -p -i -e "s|\r\n|\n|" "$file"
done
pushd examples
#rpmlint: wrong-file-end-of-line-encoding
find -type f -exec perl -p -i -e "s|\r\n|\n|" {} \;
#rpmlint: wrong-script-interpreter
for ex in *; do
sed -i -e 's,^#!*perl\(.*\),#!/usr/bin/perl\1,' "$ex"
sed -i -e 's,perl.exe -w,perl -w,' "$ex"
done
popd
#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