From c41849c90c02fe7b05af22412e77b42dc4202954c7708448eb5aac44b507df31 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 30 Apr 2015 06:14:16 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Runtime-Conflicts?expand=0&rev=2 --- cpanspec.yml | 23 +++++++++++++++++++++++ perl-Module-Runtime-Conflicts.spec | 14 ++++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 cpanspec.yml diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# 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 +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Module-Runtime-Conflicts.spec b/perl-Module-Runtime-Conflicts.spec index cab425f..7caaf0a 100644 --- a/perl-Module-Runtime-Conflicts.spec +++ b/perl-Module-Runtime-Conflicts.spec @@ -21,17 +21,19 @@ Version: 0.002 Release: 0 %define cpan_name Module-Runtime-Conflicts Summary: Provide information on conflicts for Module::Runtime -License: This is free software and you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Module-Runtime-Conflicts/ -Source: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Dist::CheckConflicts) -BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Build::Tiny) >= 0.039 BuildRequires: perl(Module::Runtime) +BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Dist::CheckConflicts) Requires: perl(Module::Runtime) %{perl_requires} @@ -45,14 +47,14 @@ It is called from the Moose::Conflicts manpage and 'moose-outdated'. %setup -q -n %{cpan_name}-%{version} %build -%{__perl} Build.PL installdirs=vendor -./Build build flags=%{?_smp_mflags} +%{__perl} Build.PL --installdirs=vendor +./Build build --flags=%{?_smp_mflags} %check ./Build test %install -./Build install destdir=%{buildroot} create_packlist=0 +./Build install --destdir=%{buildroot} --create_packlist=0 %perl_gen_filelist %files -f %{name}.files