spec file cleanup, enable tests

epel9
Tom Callaway 9 years ago
parent 758249b7cb
commit 0c299a9ea0

@ -1,8 +1,8 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
%{!?perl_vendorlib: %global perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perl-Pod-POM
Version: 2.01
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Object-oriented interface to Perl POD documents
Group: Development/Libraries
License: GPL+ or Artistic
@ -20,7 +20,7 @@ BuildRequires: perl(Exporter)
BuildRequires: perl(parent)
BuildRequires: perl(Text::Wrap)
# Tests:
# BuildRequires: perl(File::Slurper)
BuildRequires: perl(File::Slurper)
BuildRequires: perl(lib)
BuildRequires: perl(Test::More)
BuildRequires: perl(YAML::Tiny)
@ -47,7 +47,6 @@ make %{?_smp_mflags}
%install
rm -rf $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 d -depth -exec rmdir {} 2>/dev/null ';'
@ -57,15 +56,10 @@ chmod -R u+w $RPM_BUILD_ROOT/*
%check
# http://rt.cpan.org/NoAuth/Bug.html?id=3910
# Need File::Slurper to run tests, not packaged as of 2015-09-08
# PERL_HASH_SEED=0 make test
%clean
rm -rf $RPM_BUILD_ROOT
PERL_HASH_SEED=0 make test
%files
%defattr(-,root,root,-)
%doc Changes README.md TODO
%{_bindir}/pomdump
%{_bindir}/podlint
@ -75,6 +69,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Tue Jan 19 2016 Tom Callaway <spot@fedoraproject.org> - 2.01-2
- spec file cleanups
- enable tests
* Tue Nov 10 2015 Tom Callaway <spot@fedoraproject.org> - 2.01-1
- update to 2.01

Loading…
Cancel
Save