perl-Test-Pod-Coverage/perl-Test-Pod-Coverage.spec

260 lines
9.3 KiB
RPMSpec
Raw Normal View History

Name: perl-Test-Pod-Coverage
2014-07-29 14:12:54 +00:00
Version: 1.10
2024-08-22 21:49:42 +00:00
Release: 30%{?dist}
Summary: Check for pod coverage in your distribution
2022-12-20 17:21:25 +00:00
License: Artistic-2.0
URL: https://metacpan.org/release/Test-Pod-Coverage
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/Test-Pod-Coverage-%{version}.tar.gz
BuildArch: noarch
2024-08-22 21:49:42 +00:00
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators
2024-08-22 21:49:42 +00:00
BuildRequires: perl(Config)
2013-02-18 10:11:26 +00:00
BuildRequires: perl(ExtUtils::MakeMaker)
2014-02-17 15:03:34 +00:00
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Pod::Coverage)
2012-08-08 11:29:36 +00:00
BuildRequires: perl(Test::Builder)
2014-02-17 15:03:34 +00:00
# Tests:
BuildRequires: perl(base)
BuildRequires: perl(lib)
BuildRequires: perl(Pod::Coverage::CountParents)
2012-08-08 11:29:36 +00:00
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)
2014-02-17 15:03:34 +00:00
# Optional tests:
BuildRequires: perl(Test::Pod) >= 1.14
2024-08-22 21:49:42 +00:00
# Remove private test modules
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(PC_Inherited\\)$
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Nopod|Nosymbols|PC_Inherited|PC_Inherits|Privates|Simple\\)$
%description
2014-07-29 14:12:54 +00:00
Test::Pod::Coverage is used to create a test for your distribution, to
ensure that all relevant files in your distribution are appropriately
documented in pod.
2024-08-22 21:49:42 +00:00
%package tests
Summary: Tests for %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: perl-Test-Harness
%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".
%prep
%setup -q -n Test-Pod-Coverage-%{version}
2024-08-22 21:49:42 +00:00
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build
2014-02-17 15:03:34 +00:00
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
2014-02-17 15:03:34 +00:00
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
2014-02-17 15:03:34 +00:00
%{_fixperms} $RPM_BUILD_ROOT/*
2024-08-22 21:49:42 +00:00
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
# Remove author tests
rm -f %{buildroot}%{_libexecdir}/%{name}/t/pod.t
# Remove tests based on dist
rm -f %{buildroot}%{_libexecdir}/%{name}/t/all_modules.t
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
2006-01-26 08:25:49 +00:00
%check
make test
%files
2014-07-29 14:12:54 +00:00
%doc Changes README
%{perl_vendorlib}/Test/
2006-09-08 23:11:39 +00:00
%{_mandir}/man3/*.3pm*
2024-08-22 21:49:42 +00:00
%files tests
%{_libexecdir}/%{name}
%changelog
2024-08-22 21:49:42 +00:00
* Thu Aug 22 2024 Michal Josef Špaček <mspacek@redhat.com> - 1.10-30
- Package tests
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.10-29
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-28
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-05-31 07:09:21 +00:00
* Tue May 31 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-23
- Perl 5.36 rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-21 21:45:34 +00:00
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-20
- Perl 5.34 rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-06-23 09:44:05 +00:00
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-17
- Perl 5.32 rebuild
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-05-31 05:29:13 +00:00
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-14
- Perl 5.30 rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-06-28 06:37:11 +00:00
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-11
- Perl 5.28 rebuild
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-04 19:58:46 +00:00
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-8
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-05-15 10:57:24 +00:00
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-6
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-06-05 11:31:18 +00:00
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-3
- Perl 5.22 rebuild
2014-08-27 21:48:34 +00:00
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-2
- Perl 5.20 rebuild
2014-07-29 14:12:54 +00:00
* Tue Jul 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-1
- 1.10 bump
- Updated license and URL
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-02-17 15:03:34 +00:00
* 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
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-07-18 18:56:28 +00:00
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.08-20
- Perl 5.18 rebuild
2013-02-18 10:11:26 +00:00
* Mon Feb 18 2013 Marcela Mašláňová <mmaslano@redhat.com> - 1.08-19
- Add missing BR: EU::MM
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2012-08-08 11:29:36 +00:00
* Wed Aug 08 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.08-17
- Update BRs
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-06-12 11:03:59 +00:00
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 1.08-15
- Perl 5.16 rebuild
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2011-06-19 18:50:01 +00:00
* Sun Jun 19 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.08-13
- Perl mass rebuild
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.08-11
- 661697 rebuild for fixing problems with vendorach/lib
2010-05-06 22:29:11 +00:00
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.08-10
- Mass rebuild with perl-5.12.0
2009-12-04 02:13:03 +00:00
* Fri Dec 4 2009 Stepan Kasal <skasal@redhat.com> - 1.08-9
- rebuild against perl 5.10.1
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-07-11 20:04:01 +00:00
* Fri Jul 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.08-6
- fix license tag
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.08-5
- Rebuild for perl 5.10 (again)
2008-01-14 03:08:26 +00:00
* Sun Jan 13 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.08-4
- rebuild for new perl
2006-09-08 23:11:39 +00:00
* Fri Sep 8 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-3
- Rebuild for FC6.
2006-02-18 16:22:01 +00:00
* Sat Feb 18 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-2
- Rebuild for FC5 (perl 5.8.8).
2006-01-26 08:25:49 +00:00
* Thu Jan 26 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.08-1
- Update to 1.08.
2005-05-12 22:35:33 +00:00
* Thu May 12 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.06-3
- Add dist tag.
2014-02-17 15:05:12 +00:00
* Thu May 12 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 1.06-2
- rebuilt
* Thu Jun 24 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.06-1
- Update to 1.06.
* Wed Jun 02 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.04-0.fdr.1
- First build.