Modernize spec file
This commit is contained in:
parent
e011024d5f
commit
3eef745f52
@ -1,62 +1,57 @@
|
|||||||
Name: perl-Test-Pod-Coverage
|
Name: perl-Test-Pod-Coverage
|
||||||
Version: 1.08
|
Version: 1.08
|
||||||
Release: 21%{?dist}
|
Release: 22%{?dist}
|
||||||
Summary: Check for pod coverage in your distribution
|
Summary: Check for pod coverage in your distribution
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/Test-Pod-Coverage/
|
URL: http://search.cpan.org/dist/Test-Pod-Coverage/
|
||||||
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Pod-Coverage-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Pod-Coverage-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(base)
|
BuildRequires: perl
|
||||||
BuildRequires: perl(lib)
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Run-time:
|
||||||
BuildRequires: perl(Pod::Coverage)
|
BuildRequires: perl(Pod::Coverage)
|
||||||
BuildRequires: perl(Test::Builder)
|
BuildRequires: perl(Test::Builder)
|
||||||
|
# Tests:
|
||||||
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(lib)
|
||||||
|
BuildRequires: perl(Pod::Coverage::CountParents)
|
||||||
BuildRequires: perl(Test::Builder::Tester)
|
BuildRequires: perl(Test::Builder::Tester)
|
||||||
BuildRequires: perl(Test::More)
|
BuildRequires: perl(Test::More)
|
||||||
BuildRequires: perl(Test::Pod)
|
# Optional tests:
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
BuildRequires: perl(Test::Pod) >= 1.14
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Checks for POD coverage in files for your distribution.
|
Checks for POD coverage in files for your distribution.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Test-Pod-Coverage-%{version}
|
%setup -q -n Test-Pod-Coverage-%{version}
|
||||||
|
|
||||||
|
|
||||||
%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 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
%{_fixperms} $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 Changes
|
%doc Changes
|
||||||
%{perl_vendorlib}/Test/
|
%{perl_vendorlib}/Test/
|
||||||
%{_mandir}/man3/*.3pm*
|
%{_mandir}/man3/*.3pm*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 17 2014 Petr Pisar <ppisar@redhat.com> - 1.08-22
|
||||||
|
- Modernize spec file
|
||||||
|
- Specify all dependencies (bug #1066046)
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-21
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-21
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user