Modernize spec file

epel9
Petr Písař 12 years ago
parent b5cbccac6c
commit b7bff3674f

@ -2,13 +2,10 @@ Name: perl-Pod-Spell
Version: 1.01 Version: 1.01
Release: 15%{?dist} Release: 15%{?dist}
Summary: A formatter for spellchecking Pod Summary: A formatter for spellchecking Pod
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Pod-Spell/ URL: http://search.cpan.org/dist/Pod-Spell/
Source0: http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Spell-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/S/SB/SBURKE/Pod-Spell-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time: # Run-time:
@ -28,7 +25,6 @@ effort into actual formatting, and it suppresses things that look like
Perl symbols or Perl jargon (so that your spellchecking program won't Perl symbols or Perl jargon (so that your spellchecking program won't
complain about mystery words like "$thing" or "Foo::Bar" or "hashref"). complain about mystery words like "$thing" or "Foo::Bar" or "hashref").
%prep %prep
%setup -q -n Pod-Spell-%{version} %setup -q -n Pod-Spell-%{version}
for F in README; do for F in README; do
@ -37,36 +33,25 @@ for F in README; do
mv "${F}.utf8" "$F" mv "${F}.utf8" "$F"
done done
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT make pure_install DESTDIR=$RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
%check %check
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc ChangeLog README %doc ChangeLog README
%{_bindir}/podspell %{_bindir}/podspell
%{perl_vendorlib}/Pod/ %{perl_vendorlib}/Pod/
%{_mandir}/man3/*.3pm* %{_mandir}/man3/*.3pm*
%changelog %changelog
* Thu Oct 25 2012 Petr Pisar <ppisar@redhat.com> - 1.01-15 * Thu Oct 25 2012 Petr Pisar <ppisar@redhat.com> - 1.01-15
- Specify all dependencies - Specify all dependencies

Loading…
Cancel
Save