%define upstream_name Dist-Zilla-Plugin-ReadmeMarkdownFromPod %define upstream_version 0.103510 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 1 Summary: Automatically convert POD to a README.mkdn for Dist::Zilla 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(Carp) BuildRequires: perl(Dist::Zilla::File::InMemory) BuildRequires: perl(Dist::Zilla::Role::InstallTool) BuildRequires: perl(English) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.310.0 BuildRequires: perl(File::Find) BuildRequires: perl(File::Temp) BuildRequires: perl(IO::Scalar) BuildRequires: perl(Moose) BuildRequires: perl(Moose::Autobox) BuildRequires: perl(Pod::Markdown) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::More) >= 0.940.0 BuildArch: noarch %description Generate a README.mkdn from 'main_module' by the Pod::Markdown manpage The code is mostly a copy-paste of the Dist::Zilla::Plugin::ReadmeFromPod manpage %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.yml README %{_mandir}/man3/* %perl_vendorlib/*