%define upstream_name Getopt-Base %define upstream_version v0.0.2 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Foundation for oo GetOpt support License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Module::Build) BuildArch: noarch %description no description found %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Build.PL installdirs=vendor ./Build %check ./Build test %install ./Build install destdir=%{buildroot} %files %doc README Changes META.yml %{_mandir}/man3/* %perl_vendorlib/* %changelog * Thu Oct 20 2011 jquelin <jquelin> 0.0.2-1.mga2 + Revision: 156800 - imported package perl-Getopt-Base * Thu Oct 20 2011 cpan2dist v0.0.2-1mga - initial mageia release, generated with cpan2dist