commit 5861c7749f047e5bde8e6c41214661ca168251ac Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:11:48 2019 -0400 Package init diff --git a/constant-1.33.tar.gz b/constant-1.33.tar.gz new file mode 100644 index 0000000..6283fac Binary files /dev/null and b/constant-1.33.tar.gz differ diff --git a/perl-constant.spec b/perl-constant.spec new file mode 100644 index 0000000..e8e93fb --- /dev/null +++ b/perl-constant.spec @@ -0,0 +1,62 @@ +Name: perl-constant +Version: 1.33 +Release: 420 +Summary: Perl pragma to declare constants +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 + +BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) perl(strict) +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 +%autosetup -n constant-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 +%make_build + +%install +%make_install + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%defattr(-,root,root) +%doc Changes README +%{perl_vendorlib}/* + +%files help +%defattr(-,root,root) +%{_mandir}/*/*.gz + +%changelog +* Fri Sep 27 2019 openEuler Buildteam - 1.33-420 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC: change the directory of README + +* Fri Aug 30 2019 openEuler Buildteam - 1.33-419 +- Package init