perl-Pod-Spell/perl-Pod-Spell.spec

56 lines
1.6 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Pod-Spell
Version: 1.01
Release: 1mamba
Summary: Pod::Spell -- a formatter for spellchecking Pod
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/S/SB/SBURKE/Pod-Spell-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Pod::Escapes)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Pod::Spell is a Pod formatter whose output is good for spellchecking.
Pod::Spell rather like Pod::Text, except that it doesn't put much
effort into actual formatting, and it suppresses things that look like
Perl symbols or Perl jargon (so that your spellchecking program won't
complain about mystery words like "$thing" or "Foo::Bar" or "hashref").
%prep
%setup -q -n Pod-Spell-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/podspell
%{perl_vendorlib}/Pod/
%{_mandir}/man3/*.3pm.gz
%doc ChangeLog README
%changelog
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.01-1mamba
- package created by autospec