Dominique Leuenberger 2015-04-21 08:52:42 +00:00 committed by Git OBS Bridge
commit 6dc6932d5c
5 changed files with 94 additions and 29 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d1e12143c9a6e9d4f101e43142622ab4894087d42937621e2c7430defbc07b3a
size 10961

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ccd5b244b0db5ac78cbb2ecddbfeca1cb5556b281a5eaed3cd9a95001b298bb2
size 22164

20
cpanspec.yml Normal file
View File

@ -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

View File

@ -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

View File

@ -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