perl-constant/perl-constant.spec

76 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:11:48 -04:00
Name: perl-constant
2019-12-25 16:01:17 +08:00
Version: 1.33
2024-08-01 01:53:07 +00:00
Release: 423
2019-12-25 16:01:17 +08:00
Summary: Perl pragma to declare constants
2019-09-30 11:11:48 -04:00
License: GPL+ or Artistic
URL: https://metacpan.org/release/constant
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/constant-%{version}.tar.gz
BuildArch:noarch
2019-12-25 16:01:17 +08:00
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(strict)
2019-09-30 11:11:48 -04:00
BuildRequires: perl(Carp) perl(vars) perl(warnings::register)
BuildRequires: perl(Test::More) perl(utf8) perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Carp)
%description
This pragma allows you to declare constants at compile-time.
When a constant is used in an expression, Perl replaces it with its
value at compile time, and may then optimize the expression further.
In particular, any code in an "if (CONSTANT)" block will be optimized
away if the constant is false.
%package_help
%prep
2019-12-25 16:01:17 +08:00
%autosetup -n constant-%{version} -p1
2019-09-30 11:11:48 -04:00
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build
%install
2019-12-25 16:01:17 +08:00
%make_install
%{_fixperms} %{buildroot}/*
2019-09-30 11:11:48 -04:00
%check
2019-12-25 16:01:17 +08:00
make test
2019-09-30 11:11:48 -04:00
%pre
%preun
%post
%postun
%files
%defattr(-,root,root)
%doc Changes README
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%{_mandir}/*/*.gz
%changelog
2024-08-01 01:53:07 +00:00
* Thu Aug 1 2024 yanglongkang <yanglongkang@h-partners.com> - 1.33-423
- rebuild for next release
* Tue Oct 25 2022 renhongxun <renhongxun@h-partners.com> - 1.33-422
- Rebuild for next release
2019-12-25 16:01:17 +08:00
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.33-421
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:change mod of file
* Fri Sep 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.33-420
2019-09-30 11:11:48 -04:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: change the directory of README
* Fri Aug 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.33-419
- Package init