From 73f5c9664a7bb60f66dc514230fd2649e2608e9aa1a439e3620683c7d51dc5e8 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 28 Jan 2019 18:08:31 +0000 Subject: [PATCH 1/3] Accepting request 669098 from home:pmonrealgonzalez:branches:devel:languages:perl - Added required dependencies for building and testing - Cleaned with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/669098 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Task-Weaken?expand=0&rev=31 --- cpanspec.yml | 13 +++++++++++++ perl-Task-Weaken.changes | 6 ++++++ perl-Task-Weaken.spec | 27 ++++++++++++++++++--------- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index a09effb..4b5241c 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,3 +1,16 @@ --- +preamble: +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Scalar::Util) >= 1.14 +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Warn) +Requires: perl(Scalar::Util) >= 1.14 +Requires: perl(strict) + post_prep: sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-Task-Weaken.changes b/perl-Task-Weaken.changes index e85a4cb..61f1db1 100644 --- a/perl-Task-Weaken.changes +++ b/perl-Task-Weaken.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 18 19:54:51 UTC 2019 - Pedro Monreal Gonzalez + +- Added required dependencies for building and testing +- Cleaned with spec-cleaner + ------------------------------------------------------------------- Fri Apr 20 06:01:01 UTC 2018 - coolo@suse.com diff --git a/perl-Task-Weaken.spec b/perl-Task-Weaken.spec index c9dbb05..55483b9 100644 --- a/perl-Task-Weaken.spec +++ b/perl-Task-Weaken.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Task-Weaken # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,24 +12,33 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define cpan_name Task-Weaken Name: perl-Task-Weaken Version: 1.06 Release: 0 -%define cpan_name Task-Weaken Summary: Ensure that a platform has weaken support License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Task-Weaken/ +URL: https://metacpan.org/release/Task-Weaken Source0: https://cpan.metacpan.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(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(Scalar::Util) >= 1.14 +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Warn) +Requires: perl(Scalar::Util) >= 1.14 +Requires: perl(strict) +Recommends: perl(CPAN::Meta) >= 2.120900 +BuildArch: noarch %{perl_requires} %description @@ -63,11 +72,11 @@ sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' # MANUAL END %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} %check -%{__make} test +make %{?_smp_mflags} test %install %perl_make_install From 7079e309c676e418245739721496746a51b87c351256a6fae492ff2ef22dd72b Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 28 Jan 2019 18:13:57 +0000 Subject: [PATCH 2/3] Reduce requires and fix yaml OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Task-Weaken?expand=0&rev=32 --- cpanspec.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index 4b5241c..6e01cfe 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,16 +1,13 @@ --- preamble: -BuildRequires: perl -BuildRequires: perl-macros -BuildRequires: perl(Config) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(File::Spec) -BuildRequires: perl(File::Spec::Functions) -BuildRequires: perl(Scalar::Util) >= 1.14 -BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Warn) -Requires: perl(Scalar::Util) >= 1.14 -Requires: perl(strict) + BuildRequires: perl(Config) + BuildRequires: perl(ExtUtils::MakeMaker) + BuildRequires: perl(File::Spec) + BuildRequires: perl(File::Spec::Functions) + BuildRequires: perl(Scalar::Util) >= 1.14 + BuildRequires: perl(Test::More) + BuildRequires: perl(Test::Warn) + Requires: perl(Scalar::Util) >= 1.14 post_prep: sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL From a6e3ccd02b89befee6952ec0b1a3b756e05d7f74c86a76686d71367049f4b9cd Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 28 Jan 2019 18:18:07 +0000 Subject: [PATCH 3/3] - Reduce manual sections and regenerate OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Task-Weaken?expand=0&rev=33 --- cpanspec.yml | 4 ++-- perl-Task-Weaken.changes | 5 +++++ perl-Task-Weaken.spec | 15 ++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cpanspec.yml b/cpanspec.yml index 6e01cfe..75f9730 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,5 +1,5 @@ --- -preamble: +preamble: |- BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) @@ -9,5 +9,5 @@ preamble: BuildRequires: perl(Test::Warn) Requires: perl(Scalar::Util) >= 1.14 -post_prep: +post_prep: |- sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL diff --git a/perl-Task-Weaken.changes b/perl-Task-Weaken.changes index 61f1db1..aaf0c19 100644 --- a/perl-Task-Weaken.changes +++ b/perl-Task-Weaken.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 28 18:16:59 UTC 2019 - Stephan Kulow + +- Reduce manual sections and regenerate + ------------------------------------------------------------------- Fri Jan 18 19:54:51 UTC 2019 - Pedro Monreal Gonzalez diff --git a/perl-Task-Weaken.spec b/perl-Task-Weaken.spec index 55483b9..1bfbc41 100644 --- a/perl-Task-Weaken.spec +++ b/perl-Task-Weaken.spec @@ -16,18 +16,22 @@ # -%define cpan_name Task-Weaken Name: perl-Task-Weaken Version: 1.06 Release: 0 +%define cpan_name Task-Weaken Summary: Ensure that a platform has weaken support License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -URL: https://metacpan.org/release/Task-Weaken +Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.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 +%{perl_requires} +# MANUAL BEGIN BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) @@ -36,10 +40,7 @@ BuildRequires: perl(Scalar::Util) >= 1.14 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Warn) Requires: perl(Scalar::Util) >= 1.14 -Requires: perl(strict) -Recommends: perl(CPAN::Meta) >= 2.120900 -BuildArch: noarch -%{perl_requires} +# MANUAL END %description One recurring problem in modules that use Scalar::Util's 'weaken' function @@ -76,7 +77,7 @@ perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check -make %{?_smp_mflags} test +make test %install %perl_make_install