## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: perl-Call-Context Version: 0.05 Release: %autorelease Summary: Sanity-check calling context License: MIT URL: https://metacpan.org/dist/Call-Context Source0: https://cpan.metacpan.org/authors/id/F/FE/FELIPE/Call-Context-%{version}.tar.gz BuildArch: noarch BuildRequires: /usr/bin/chmod BuildRequires: make BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(Test::More) >= 0.44 BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl-generators BuildRequires: perl-interpreter %{?perl_default_filter} %description If your function only expects to return a list, then a call in some other context is, by definition, an error. The problem is that, depending on how the function is written, it may actually do something expected in testing, but then in production act differently. %prep %autosetup -n Call-Context-%{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 %doc README.md %dir %{perl_vendorlib}/Call %{perl_vendorlib}/Call/Context.pm %{_mandir}/man3/Call::Context.3pm* %changelog ## START: Generated by rpmautospec * Tue Oct 01 2024 Peter Oliver - 0.05-6 - Add sources. * Tue Oct 01 2024 Peter Oliver - 0.05-5 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec