%define upstream_name Dist-Zilla-Plugin-ModuleBuild-XSOrPP %define upstream_version 0.02 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Add a --pp option to your Build.PL to force an XS-less build License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name} Source0: http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Dist::Zilla) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Most) BuildArch: noarch %description Use this plugin instead of the regular 'ModuleBuild' plugin. It generates a _Build.PL_ which accepts a '--pp' flag to forcible disable XS compilation. Obviously, this is only useful if your module can work without its XS component. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %make test %install rm -rf %buildroot %makeinstall_std %clean rm -rf %buildroot %files %defattr(-,root,root) %doc Changes META.yml LICENSE README META.json %{_mandir}/man3/* %perl_vendorlib/* %changelog * Wed Jan 26 2011 jquelin <jquelin> 0.20.0-1.mga1 + Revision: 40501 - mageia rebuild - imported package perl-Dist-Zilla-Plugin-ModuleBuild-XSOrPP