%define upstream_name Dist-Zilla-Plugin-AssertOS %define upstream_version 0.04 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Require that our distribution is running on a particular OS 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(Data::Compare) >= 1.220.0 BuildRequires: perl(Devel::CheckOS) >= 1.630.0 BuildRequires: perl(Dist::Zilla) >= 4.101.582 BuildRequires: perl(Dist::Zilla::Role::MetaProvider) >= 4.101.582 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.310.0 BuildArch: noarch %description Dist::Zilla::Plugin::AssertOS is a the Dist::Zilla manpage plugin that integrates the Devel::AssertOS manpage so that CPAN authors may easily stipulate which particular OS environments their distributions may be built and installed on. The author specifies which OS or OS families are supported. The necessary the Devel::AssertOS manpage files are copied to the 'inc/' directory and 'Makefile.PL' is mungled to include the necessary incantation. On the module user side, the bundled 'inc/' the Devel::AssertOS manpage determines whether the current environment is supported or not and will die accordingly. %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 LICENSE META.json META.yml README %{_mandir}/man3/* %perl_vendorlib/* %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.40.0-2.mga3 + Revision: 366037 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Feb 24 2011 jquelin <jquelin> 0.40.0-1.mga1 + Revision: 58885 - update to 0.04 * Wed Jan 26 2011 jquelin <jquelin> 0.20.0-1.mga1 + Revision: 40356 - mageia rebuild - imported package perl-Dist-Zilla-Plugin-AssertOS