3 Star 0 Fork 7

src-openEuler/perl-Object-HashBase

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Object-HashBase.spec 2.32 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxianjun 提交于 2024-11-04 11:21 . Upgrade version to 0.015
Name: perl-Object-HashBase
Version: 0.015
Release: 1
Summary: Build hash-based classes
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/Object-HashBase
Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Object-HashBase-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.8.1
# Remove private modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Object::HashBase::Test::HBase.*
%description
This package is used to generate classes based on hash references. Using this
class will give you a new() method, as well as generating accessors you
request. Generated accessors will be getters, set_ACCESSOR setters will also
be generated for you. You also get constants for each accessor (all caps)
which return the key into the hash for that accessor. Single inheritance is
also supported.
%package tools
Summary: Generate inlined Object::HashBase Perl module
Requires: %{name} = %{version}-%{release}
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Test::More) >= 0.98
%description tools
hashbase_inc.pl script generates a Perl module that contains
a Object::HashBase module mangled into a name space of your choice. It can
also generate the tests for it.
%prep
%setup -q -n Object-HashBase-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%exclude %{perl_vendorlib}/Object/HashBase
%{_mandir}/man3/*
%exclude %{_mandir}/man3/Object::HashBase*
%files tools
%{_bindir}/hashbase_inc.pl
%{perl_vendorlib}/Object/HashBase
%{_mandir}/man3/Object::HashBase*
%changelog
* Mon Nov 4 2024 zhangxianjun <zhangxianjun@kylinos.cn> - 0.015-1
- Upgrade version to 0.015
- Add extra init() functionality
- Fix double-import bug
* Fri Mar 22 2024 wangshuo <wangshuo@kylinos.cn> - 0.013-1
- Upgrade version to 0.013
* Mon Nov 16 2020 shixuantong <shixuantong@huawei.com> - 0.009-2
- Remove private modules
* Mon Aug 3 2020 dingyue <dingyue5@huawei.com> -0.009 -1
- Package init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Object-HashBase.git
git@gitee.com:src-openeuler/perl-Object-HashBase.git
src-openeuler
perl-Object-HashBase
perl-Object-HashBase
master

搜索帮助