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

66 lines
2.0 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Pod-Spell
Version: 1.27
Release: 1mamba
Summary: Pod::Spell -- a formatter for spellchecking Pod
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/H/HA/HAARG/Pod-Spell-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Class-Tiny
BuildRequires: perl-Lingua-EN-Inflect
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Pod::Escapes)
Requires: perl >= %perl_major_ver
%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
%dir %{perl_vendorlib}/Pod
%{perl_vendorlib}/Pod/*
%{perl_vendorlib}/auto/share/dist/Pod-Spell/wordlist
%{_mandir}/man1/podspell.1*
%{_mandir}/man3/*.3pm.*
%doc LICENSE
%changelog
* Mon Oct 21 2024 Automatic Build System <autodist@openmamba.org> 1.27-1mamba
- automatic version update by autodist
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.26-1mamba
- update to 1.26
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.01-1mamba
- package created by autospec