From b9ac9baddf99fad51926d76e2ebe7f9c411c37aaee1567de8562aea132c033b4 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sun, 19 Apr 2015 08:50:46 +0000 Subject: [PATCH] Accepting request 298011 from devel:languages:perl:autoupdate automatic update OBS-URL: https://build.opensuse.org/request/show/298011 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Package-DeprecationManager?expand=0&rev=21 --- Package-DeprecationManager-0.13.tar.gz | 3 - Package-DeprecationManager-0.14.tar.gz | 3 + cpanspec.yml | 20 ++++++ perl-Package-DeprecationManager.changes | 10 +++ perl-Package-DeprecationManager.spec | 87 +++++++++++++++++-------- 5 files changed, 94 insertions(+), 29 deletions(-) delete mode 100644 Package-DeprecationManager-0.13.tar.gz create mode 100644 Package-DeprecationManager-0.14.tar.gz create mode 100644 cpanspec.yml diff --git a/Package-DeprecationManager-0.13.tar.gz b/Package-DeprecationManager-0.13.tar.gz deleted file mode 100644 index cb1639d..0000000 --- a/Package-DeprecationManager-0.13.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1e12143c9a6e9d4f101e43142622ab4894087d42937621e2c7430defbc07b3a -size 10961 diff --git a/Package-DeprecationManager-0.14.tar.gz b/Package-DeprecationManager-0.14.tar.gz new file mode 100644 index 0000000..d00a002 --- /dev/null +++ b/Package-DeprecationManager-0.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccd5b244b0db5ac78cbb2ecddbfeca1cb5556b281a5eaed3cd9a95001b298bb2 +size 22164 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b320f5 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#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 diff --git a/perl-Package-DeprecationManager.changes b/perl-Package-DeprecationManager.changes index 9031d4d..fc6bf76 100644 --- a/perl-Package-DeprecationManager.changes +++ b/perl-Package-DeprecationManager.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Sun Apr 19 07:44:51 UTC 2015 - coolo@suse.com + +- updated to 0.14 + see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes + + 0.14 2015-04-18 + + - Use any() from List::Util 1.33+ instead of List::MoreUtils. + ------------------------------------------------------------------- Wed Mar 20 19:09:01 UTC 2013 - lars@linux-schulserver.de diff --git a/perl-Package-DeprecationManager.spec b/perl-Package-DeprecationManager.spec index 12ac5a5..c316b6c 100644 --- a/perl-Package-DeprecationManager.spec +++ b/perl-Package-DeprecationManager.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Package-DeprecationManager # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,47 +17,82 @@ Name: perl-Package-DeprecationManager +Version: 0.14 +Release: 0 %define cpan_name Package-DeprecationManager Summary: Manage deprecation warnings for your distribution License: Artistic-2.0 Group: Development/Libraries/Perl -Version: 0.13 -Release: 0 Url: http://search.cpan.org/dist/Package-DeprecationManager/ -Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Package-DeprecationManager-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Test::Fatal) -BuildRequires: perl(Test::Requires) -%if 0%{?suse_version} >= 1130 -BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Test::Output) => 0.16 -%else -BuildRequires: perl(Test::More) >= 0.88 -%endif -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 -# -BuildRequires: perl(Carp) -BuildRequires: perl(List::MoreUtils) +BuildRequires: perl(List::Util) >= 1.33 BuildRequires: perl(Params::Util) BuildRequires: perl(Sub::Install) -Requires: perl(Carp) -Requires: perl(List::MoreUtils) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.96 +BuildRequires: perl(Test::Requires) +Requires: perl(List::Util) >= 1.33 Requires: perl(Params::Util) Requires: perl(Sub::Install) +%{perl_requires} %description -This module allows you to manage a set of deprecations for one or -more modules. +This module allows you to manage a set of deprecations for one or more +modules. + +When you import 'Package::DeprecationManager', you must provide a set of +'-deprecations' as a hash ref. The keys are "feature" names, and the values +are the version when that feature was deprecated. + +In many cases, you can simply use the fully qualified name of a subroutine +or method as the feature name. This works for cases where the whole +subroutine is deprecated. However, the feature names can be any string. +This is useful if you don't want to deprecate an entire subroutine, just a +certain usage. + +You can also provide an optional array reference in the '-ignore' +parameter. + +The values to be ignored can be package names or regular expressions (made +with 'qr//'). Use this to ignore packages in your distribution that can +appear on the call stack when a deprecated feature is used. + +As part of the import process, 'Package::DeprecationManager' will export +two subroutines into its caller. It provides an 'import()' sub for the +caller and a 'deprecated()' sub. + +The 'import()' sub allows callers of _your_ class to specify an +'-api_version' parameter. If this is supplied, then deprecation warnings +are only issued for deprecations with API versions earlier than the one +specified. + +You must call the 'deprecated()' sub in each deprecated subroutine. When +called, it will issue a warning using 'Carp::cluck()'. + +The 'deprecated()' sub can be called in several ways. If you do not pass +any arguments, it will generate an appropriate warning message. If you pass +a single argument, this is used as the warning message. + +Finally, you can call it with named arguments. Currently, the only allowed +names are 'message' and 'feature'. The 'feature' argument should correspond +to the feature name passed in the '-deprecations' hash. + +If you don't explicitly specify a feature, the 'deprecated()' sub uses +'caller()' to identify its caller, using its fully qualified subroutine +name. + +A given deprecation warning is only issued once for a given package. This +module tracks this based on both the feature name _and_ the error message +itself. This means that if you provide several different error messages for +the same feature, all of those errors will appear. %prep %setup -q -n %{cpan_name}-%{version} -%if 0%{?suse_version} < 1130 -sed -i "s|use Test::More;|use Test::More qw(no_plan);|g" t/*.t -%endif %build %{__perl} Makefile.PL INSTALLDIRS=vendor @@ -72,7 +107,7 @@ sed -i "s|use Test::More;|use Test::More qw(no_plan);|g" t/*.t %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes LICENSE README +%defattr(-,root,root,755) +%doc Changes LICENSE README.md %changelog