%global pkg_name Getopt-Long %global pkg_version 2.50 %global rpm_pkg_version 2.50 %global rpm_pkg_release 1.n0i.3 Summary: Advanced handling of command line options Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPLv2+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/J/JV/JV/%{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(Pod::Usage) >= 1.14 %description Module Getopt::Long implements an extended getopt function called GetOptions(). This function implements the POSIX standard for command line options, with GNU extensions, while still capable of handling the traditional one-letter options. In general, this means that command line options can have long names instead of single letters, and are introduced with a double dash '--'. Optionally, Getopt::Long can support the traditional bundling of single-letter command line options. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_perl_path examples/} %build %{perl_build} %install %{__rm} -rf %{buildroot} %{perl_install} %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %{perl_files} %exclude %{perl_vendorlib}/newgetopt.pl %doc CHANGES examples/ README %changelog * Fri Dec 08 2017 Marius Feraru - 2.50-1.n0i.3 - version 2.50 * Sat Sep 29 2007 Marius Feraru - 0:2.37-1.n0i.2 - version 2.37 * Thu May 31 2007 Marius Feraru - 0:2.36-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 2.36