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

Loading…
Cancel
Save