diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..4f598d8 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,27 @@ +--- +#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: +#preamble: |- +# BuildRequires: gcc-c++ +post_prep: |- + sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' 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 +#ignore_requires: Bizarre::Module diff --git a/perl-Test-PostgreSQL.spec b/perl-Test-PostgreSQL.spec index 79b9408..c33c714 100644 --- a/perl-Test-PostgreSQL.spec +++ b/perl-Test-PostgreSQL.spec @@ -25,6 +25,7 @@ License: Artistic-2.0 Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Test-PostgreSQL/ Source0: https://cpan.metacpan.org/authors/id/T/TJ/TJC/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl @@ -57,6 +58,9 @@ author several years ago. %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL BEGIN +sed -i -e 's/use inc::Module::Install;/use lib q[.];\nuse inc::Module::Install;/' Makefile.PL +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor