248c214
Name:           perl-Module-Install-ReadmeMarkdownFromPod
248c214
Version:        0.03
248c214
Release:        1%{?dist}
248c214
Summary:        Create README.mkdn from POD
248c214
License:        GPL+ or Artistic
248c214
Group:          Development/Libraries
248c214
URL:            http://search.cpan.org/dist/Module-Install-ReadmeMarkdownFromPod/
248c214
Source0:        http://www.cpan.org/authors/id/M/MA/MARCEL/Module-Install-ReadmeMarkdownFromPod-%{version}.tar.gz
248c214
BuildArch:      noarch
248c214
BuildRequires:  perl >= 1:5.6.0
248c214
# XXX: We cannot remove ./inc because it build-requires this module
248c214
BuildRequires:  perl(base)
248c214
BuildRequires:  perl(Carp)
248c214
BuildRequires:  perl(CPAN) >= 1.89
248c214
BuildRequires:  perl(Cwd)
248c214
BuildRequires:  perl(ExtUtils::Command)
248c214
BuildRequires:  perl(ExtUtils::MakeMaker)
248c214
BuildRequires:  perl(ExtUtils::Manifest)
248c214
BuildRequires:  perl(File::Path)
248c214
BuildRequires:  perl(File::Spec)
248c214
BuildRequires:  perl(Pod::Parser)
248c214
BuildRequires:  perl(Pod::Text)
248c214
BuildRequires:  perl(Test::Builder::Module)
248c214
BuildRequires:  perl(Test::Harness)
248c214
BuildRequires:  perl(URI::Escape)
248c214
Requires:       perl(Module::Install)
248c214
Requires:       perl(Module::Install::ReadmeFromPod)
248c214
Requires:       perl(Pod::Markdown)
248c214
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
248c214
248c214
%description
248c214
Module::Install::ReadmeMarkdownFromPod is a Module::Install extension that
248c214
generates a README.mkdn file automatically from an indicated file
248c214
containing POD whenever the author runs Makefile.PL. This file is used by
248c214
GitHub to display nicely formatted information about a repository.
248c214
248c214
%prep
248c214
%setup -q -n Module-Install-ReadmeMarkdownFromPod-%{version}
248c214
248c214
# README is ISO-8859-1 encoded
248c214
iconv -f iso-8859-1 -t utf8 < README > README.utf8
248c214
mv README.utf8 README
248c214
248c214
%build
248c214
%{__perl} Makefile.PL INSTALLDIRS=vendor
248c214
make %{?_smp_mflags}
248c214
248c214
%install
248c214
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
248c214
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
248c214
%{_fixperms} $RPM_BUILD_ROOT/*
248c214
248c214
%check
248c214
make test
248c214
248c214
%files
248c214
%doc Changes README
248c214
%{perl_vendorlib}/*
248c214
%{_mandir}/man3/*
248c214
248c214
%changelog
248c214
* Tue Jun 26 2012 Jitka Plesnikova <jplesnik@redhat.com> 0.03-1
248c214
- Specfile autogenerated by cpanspec 1.78.