%global pkg_name Carp %global pkg_version 1.50 %global rpm_pkg_version 1.50 %global rpm_pkg_release 1.n0i.1 Summary: Alternative warn and die for modules Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: https://metacpan.org/release/%{pkg_name} Source0: https://cpan.metacpan.org/authors/id/Carp/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Config) BuildRequires: perl(Exporter) BuildRequires: perl(IPC::Open3) >= 1.02 BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(overload) BuildRequires: perl(strict) BuildRequires: perl(warnings) %description The Carp routines are useful in your own modules because they act like "die()" or "warn()", but with a message which is more likely to be useful to a user of your module. In the case of "cluck()" and "confess()", that context is a summary of every call in the call-stack; "longmess()" returns the contents of the error message. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Mon Oct 08 2018 Marius Feraru - 1.50-1.n0i.1 - version 1.50