%global pkg_name Syntax-Keyword-Try %global pkg_version 0.09 %global rpm_pkg_version 0.09 %global rpm_pkg_release 2.n0i.2 Summary: A "try/catch/finally" syntax for perl 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/P/PE/PEVANS/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(Module::Build) >= 0.4004 BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Test::More) >= 0.88 %if ! %{defined rhel} BuildRequires: perl(:VERSION) >= 5.16.0 %else BuildRequires: perl >= 0:5.016 %endif #Requires: perl(:VERSION) >= 5.16.0 %description This module provides a syntax plugin that implements exception-handling semantics in a form familiar to users of other languages, being built on a block labeled with the "try" keyword, followed by at least one of a "catch" or "finally" block. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes LICENSE README %changelog * Mon Mar 04 2019 Marius Feraru - 0.09-2.n0i.2 - rebuild for Fedora 29 * Mon Mar 26 2018 Marius Feraru - 0.09-1.n0i.1 - version 0.09