6 Star 0 Fork 0

OpenCloudOS Stream/perl-Data-Constraint

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Data-Constraint.spec 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
fanjunkong 提交于 2024-07-02 22:39 . update
Name: perl-Data-Constraint
Version: 1.203
Release: 2%{?dist}
Summary: Prototypical value checking
License: Artistic-2.0
URL: https://metacpan.org/dist/Data-Constraint
Source0: https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Data-Constraint-%{version}.tar.gz
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: %{__make}
BuildRequires: %{__perl}
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(:VERSION) >= 5.8
BuildRequires: perl(Class::Prototyped)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Test::More) >= 1
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
%description
A constraint is some sort of condition on a datum. This module checks one
condition against one value at a time, and I call the thing that checks
that condition the "constraint". A constraint returns true or false, and
that's it. It should have no side effects, it should not change program
flow, and it should mind its own business. Let the thing that calls the
constraint figure out what to do with it. I want something that says "yes"
or "no" (and I discuss why this needs a fancy module later).
%prep
%setup -q -n Data-Constraint-%{version}
chmod -x lib/Data/Constraint.pm
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
%{make_install}
%{_fixperms} %{buildroot}/*
%check
%{__make} test
%files
%license LICENSE
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Jul 02 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.203-2
- rebuild
* Fri Jun 28 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.203-1
- initial build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/perl-Data-Constraint.git
git@gitee.com:opencloudos-stream/perl-Data-Constraint.git
opencloudos-stream
perl-Data-Constraint
perl-Data-Constraint
master

搜索帮助