%global pkg_name Getopt-EX %global pkg_version v1.10.0 %global rpm_pkg_version 1.10.0 %global rpm_pkg_release 1.n0i.1 Summary: Getopt Extender 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/Getopt/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(Module::Build::Tiny) >= 0.035 BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Graphics::ColorNames) BuildRequires: perl(Graphics::ColorNames::WWW) BuildRequires: perl(List::Util) >= 1.45 %description Getopt::EX extends the basic function of Getopt family to support user-definable option aliases, and dynamic module which works together with the script through option interface. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %install %{perl_install} %files %defattr(-,root,root,-) %{perl_files} %doc Changes LICENSE README.md %changelog * Sat Oct 13 2018 Marius Feraru - 1.10.0-1.n0i.1.v1.10.0 - version v1.10.0