Sync from SUSE:SLFO:Main perl-Package-DeprecationManager revision 1f2439a2cc0b28e20e329de08aabd4ac

This commit is contained in:
Adrian Schröter 2024-05-03 18:35:12 +02:00
commit f977849014
5 changed files with 261 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
Package-DeprecationManager-0.18.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

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

@ -0,0 +1,98 @@
-------------------------------------------------------------------
Mon Feb 20 03:07:10 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 0.18
see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
0.18 2023-02-19
- Use Sub::Util instead of Sub::Name, which is part of Scalar-List-Utils,
which itself is a dependency already. Implemented by Aristotle Pagaltzis. GH
#3.
-------------------------------------------------------------------
Thu Jun 23 06:50:18 UTC 2016 - coolo@suse.com
- updated to 0.17
see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
0.17 2016-06-17
- Remove use of namespace::autoclean.
-------------------------------------------------------------------
Wed Mar 23 10:56:22 UTC 2016 - coolo@suse.com
- updated to 0.16
see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
0.16 2016-03-21
- The subs installed into the caller are now named with Sub::Name. This makes
these subs appear to be part of the caller, as opposed to an import, which
is what we want, since each installed sub is constructed uniquely for a
given package.
-------------------------------------------------------------------
Sat Nov 14 10:07:17 UTC 2015 - coolo@suse.com
- updated to 0.15
see /usr/share/doc/packages/perl-Package-DeprecationManager/Changes
0.15 2015-11-13
- Made this module co-operate with existing import() subs in packages that use
this module, as long as you use this module last.
-------------------------------------------------------------------
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
- remove Package-DeprecationManager-0.10-Build_n_Test.patch as it
did not apply to newest version any more - use inline sed instead
-------------------------------------------------------------------
Tue May 29 13:46:21 UTC 2012 - coolo@suse.com
- updated to 0.13
- Fix dist.ini to not add Test::Spelling as a requirement. (Tomas Doran)
- Fix tests to pass with Carp 1.25. Reported by Andreas Koenig. RT#75520
-------------------------------------------------------------------
Mon Oct 31 15:07:21 UTC 2011 - pascal.bleser@opensuse.org
- update to 0.11:
* allow an empty hash for the -deprecations parameter
-------------------------------------------------------------------
Wed Dec 1 13:34:16 UTC 2010 - coolo@novell.com
- switch to perl_requires macro
-------------------------------------------------------------------
Thu Nov 11 19:43:05 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
o fixed deps
- reworked Build_n_Test patch
- noarch pkg
-------------------------------------------------------------------
Tue Nov 2 19:27:21 UTC 2010 - jw@novell.com
- updated to 0.10, as 0.04 was too old for perl-Moose 0.19
-------------------------------------------------------------------
Mon Jul 26 07:32:11 UTC 2010 - pascal.bleser@opensuse.org
- initial package (0.04)

View File

@ -0,0 +1,117 @@
#
# spec file for package perl-Package-DeprecationManager
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Package-DeprecationManager
Name: perl-Package-DeprecationManager
Version: 0.18
Release: 0
License: Artistic-2.0
Summary: Manage deprecation warnings for your distribution
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::Util) >= 1.33
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Sub::Install)
BuildRequires: perl(Sub::Util)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Warnings)
Requires: perl(List::Util) >= 1.33
Requires: perl(Package::Stash)
Requires: perl(Params::Util)
Requires: perl(Sub::Install)
Requires: perl(Sub::Util)
%{perl_requires}
%description
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
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
%license LICENSE
%changelog