5 Star 0 Fork 2

src-openEuler/perl-Package-DeprecationManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Package-DeprecationManager.spec 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
woody2918 提交于 2024-03-05 11:10 +08:00 . package init
%global _empty_manifest_terminate_build 0
Name: perl-Package-DeprecationManager
Version: 0.18
Release: 1
Summary: Manage deprecation warnings for your distribution
License: GPL-1.0-only or Artistic-1.0-Perl
Group: Development/Libraries
URL: https://metacpan.org/dist/Package-DeprecationManager
Source0: https://www.cpan.org/modules/by-module/Package/Package-DeprecationManager-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl => 2.008001
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Carp)
BuildRequires: perl(List::Util)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Sub::Install)
BuildRequires: perl(Sub::Util)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%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.
%package help
Summary : Manage deprecation warnings for your distribution
Provides: perl-Package-DeprecationManager
%description help
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.
%prep
%setup -q -n Package-DeprecationManager-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%check
make test
%files
%doc Changes META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Wed Mar 6 2024 woody2918 <wudi1@uniontech.com> - 0.18-1
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Package-DeprecationManager.git
git@gitee.com:src-openeuler/perl-Package-DeprecationManager.git
src-openeuler
perl-Package-DeprecationManager
perl-Package-DeprecationManager
master

搜索帮助