b83cbd
Name: perl-Pod-Plainer
b83cbd
Version: 1.03
320522
Release: 4%{?dist}
b83cbd
Summary: Perl extension for converting Pod to old-style Pod
b83cbd
b83cbd
License: GPL+ or Artistic
b83cbd
URL: http://search.cpan.org/dist/Pod-Plainer/
b83cbd
b83cbd
Source0: http://search.cpan.org/CPAN/authors/id/R/RM/RMBARKER/Pod-Plainer-%{version}.tar.gz
b83cbd
b83cbd
BuildArch: noarch
b83cbd
# Correct for lots of packages, other common choices include eg. Module::Build
b83cbd
BuildRequires: perl(ExtUtils::MakeMaker), perl(Pod::Parser), perl(Test::More), perl(Test::Pod::Coverage) >= 1.00
b83cbd
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
b83cbd
b83cbd
%description
b83cbd
Pod::Plainer uses Pod::Parser which takes Pod with the (new) 'C<< .. >>'
b83cbd
constructs and returns the old(er) style with just 'C<>'; '<' and '>' are
b83cbd
replaced by 'E<lt>' and 'E<gt>'.
b83cbd
This can be used to pre-process Pod before using tools which do not
b83cbd
recognize the new style Pods.
b83cbd
b83cbd
%prep
b83cbd
%setup -q -n Pod-Plainer-%{version}
b83cbd
b83cbd
%build
b83cbd
# Remove OPTIMIZE=... from noarch packages (unneeded)
b83cbd
%{__perl} Makefile.PL INSTALLDIRS=vendor
b83cbd
make %{?_smp_mflags}
b83cbd
b83cbd
%install
b83cbd
#rm -rf $RPM_BUILD_ROOT
b83cbd
make pure_install DESTDIR=$RPM_BUILD_ROOT
b83cbd
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
b83cbd
# Remove the next line from noarch packages (unneeded)
b83cbd
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
b83cbd
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
b83cbd
ls -lZ $RPM_BUILD_ROOT/*
b83cbd
%{_fixperms} $RPM_BUILD_ROOT/*
b83cbd
b83cbd
%check
b83cbd
make test
b83cbd
b83cbd
%files
b83cbd
%doc README Changes
b83cbd
# For noarch packages: vendorlib
b83cbd
%{perl_vendorlib}/Pod/Plainer.pm
b83cbd
%{_mandir}/man3/Pod::Plainer.3pm*
b83cbd
b83cbd
%changelog
320522
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.03-4
320522
- Mass rebuild 2013-12-27
320522
b83cbd
* Wed Aug 15 2012 Daniel Mach <dmach@redhat.com> - 1.03-3.1
b83cbd
- Rebuild for perl 5.16
b83cbd
b83cbd
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.03-3
b83cbd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b83cbd
b83cbd
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 1.03-2
b83cbd
- Perl 5.16 rebuild
b83cbd
b83cbd
* Mon Mar 26 2012 xning <xning AT redhat DOT com> - 1.03-1
b83cbd
- modified as Petr Ĺ abata's advice
b83cbd
* Fri Mar 02 2012 xning <xning AT redhat DOT com> - 1.03-1
b83cbd
- create for support LSB 4.1