5 Star 0 Fork 1

src-openEuler/perl-MooseX-SemiAffordanceAccessor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-MooseX-SemiAffordanceAccessor.spec 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
konglidong 提交于 2024-04-01 15:40 . package init
Name: perl-MooseX-SemiAffordanceAccessor
Summary: Name your accessors foo() and set_foo()
Version: 0.10
Release: 1
License: Artistic-2.0
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/MooseX-SemiAffordanceAccessor-%{version}.tar.gz
URL: https://metacpan.org/release/MooseX-SemiAffordanceAccessor
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(blib)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Moose) >= 1.16
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(warnings)
Requires: perl(Moose) >= 1.16
%{?perl_default_filter}
%{?perl_default_subpackage_tests}
%description
This module does not provide any methods. Simply loading it changes the
default naming policy for the loading class so that accessors are
separated into get and set methods. The get methods have the same name
as the accessor, while set methods are prefixed with "set_".If you
define an attribute with a leading underscore, then the set method will
start with "_set_".If you explicitly set a "reader" or "writer" name
when creating an attribute, then that attribute's naming scheme is left
unchanged.
%prep
%setup -q -n MooseX-SemiAffordanceAccessor-%{version}
# sigh
find lib/ -type f -exec perl -pi -e 's/0\.5504/0.55/' {} ';'
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/MooseX*
%{_mandir}/man3/MooseX*.3*
%changelog
* Mon Apr 01 2024 konglidong <konglidong@uniontech.com> - 0.10-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-MooseX-SemiAffordanceAccessor.git
git@gitee.com:src-openeuler/perl-MooseX-SemiAffordanceAccessor.git
src-openeuler
perl-MooseX-SemiAffordanceAccessor
perl-MooseX-SemiAffordanceAccessor
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385