520a339
# noarch, but to avoid debug* files interfering with manifest test:
520a339
%global debug_package %{nil}
520a339
c375975
Name:		perl-Test-Synopsis
d538544
Version:	0.16
2a4185a
Release:	2%{?dist}
c375975
Summary:	Test your SYNOPSIS code
c375975
License:	GPL+ or Artistic
a7477b8
URL:		https://metacpan.org/release/Test-Synopsis
95f41ca
Source0:	https://cpan.metacpan.org/modules/by-module/Test/Test-Synopsis-%{version}.tar.gz
c375975
BuildArch:	noarch
520a339
# Module Build
a94c7b8
BuildRequires:	coreutils
a94c7b8
BuildRequires:	findutils
a94c7b8
BuildRequires:	make
817dbb8
BuildRequires:	perl-generators
95f41ca
BuildRequires:	perl-interpreter
52e928b
BuildRequires:	perl(ExtUtils::MakeMaker)
520a339
# Module Runtime
a060367
BuildRequires:	perl(ExtUtils::Manifest)
2cd0ebb
BuildRequires:	perl(parent)
29c1287
BuildRequires:	perl(Pod::Simple) >= 3.09
520a339
BuildRequires:	perl(strict)
c375975
BuildRequires:	perl(Test::Builder::Module)
520a339
BuildRequires:	perl(warnings)
520a339
# Test Suite
520a339
BuildRequires:	perl(File::Spec)
520a339
BuildRequires:	perl(IO::Handle)
520a339
BuildRequires:	perl(IPC::Open3)
eec08e2
BuildRequires:	perl(Test::Builder) >= 0.34
520a339
BuildRequires:	perl(Test::Builder::Tester)
2cd0ebb
BuildRequires:	perl(Test::More)
520a339
# Extra Tests; can't run these when bootstrapping or in EL since many
520a339
# of these packages won't be available
520a339
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
520a339
BuildRequires:	perl(Pod::Coverage::TrustPod)
dd0eb97
BuildRequires:	perl(Pod::Wordlist) >= 1.06
520a339
BuildRequires:	perl(Test::CPAN::Changes)
520a339
BuildRequires:	perl(Test::CPAN::Meta)
a94c7b8
BuildRequires:	perl(Test::CPAN::Meta::JSON)
520a339
BuildRequires:	perl(Test::DistManifest)
520a339
BuildRequires:	perl(Test::EOL)
52e928b
BuildRequires:	perl(Test::Kwalitee) >= 1.21
520a339
BuildRequires:	perl(Test::MinimumVersion)
520a339
BuildRequires:	perl(Test::Mojibake)
520a339
BuildRequires:	perl(Test::More) >= 0.96
520a339
BuildRequires:	perl(Test::NoTabs)
520a339
BuildRequires:	perl(Test::Pod) >= 1.41
520a339
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
520a339
BuildRequires:	perl(Test::Portability::Files)
95f41ca
BuildRequires:	perl(Test::Spelling) >= 0.23, hunspell-en
520a339
BuildRequires:	perl(Test::Version)
c375975
%endif
520a339
# Runtime
a060367
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
c375975
Requires:	perl(Test::Builder::Module)
c375975
c375975
%description
c375975
Test::Synopsis is an (author) test module to find .pm or .pod files under your
c375975
lib directory and then make sure the example snippet code in your SYNOPSIS
c375975
section passes the perl compile check.
c375975
c375975
Note that this module only checks the perl syntax (by wrapping the code with
c375975
sub) and doesn't actually run the code.
c375975
c375975
%prep
c375975
%setup -q -n Test-Synopsis-%{version}
95f41ca
c375975
%build
c375975
perl Makefile.PL INSTALLDIRS=vendor
c375975
make %{?_smp_mflags}
c375975
c375975
%install
c375975
make pure_install DESTDIR=%{buildroot}
95f41ca
find %{buildroot} -type f -name .packlist -delete
95f41ca
%{_fixperms} -c %{buildroot}
c375975
c375975
%check
a060367
make test
520a339
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
520a339
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
520a339
%endif
c375975
c375975
%files
52e928b
%if 0%{?_licensedir:1}
52e928b
%license LICENSE
52e928b
%else
52e928b
%doc LICENSE
52e928b
%endif
52e928b
%doc Changes README README.md
c375975
%{perl_vendorlib}/Test/
a94c7b8
%{_mandir}/man3/Test::Synopsis.3*
c375975
c375975
%changelog
2a4185a
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.16-2
2a4185a
- Perl 5.30 rebuild
2a4185a
d538544
* Tue May 28 2019 Paul Howarth <paul@city-fan.org> - 0.16-1
d538544
- Update to 0.16
d538544
  - Fix test failures when version 0.23 of Test::Spelling is in use (GH#21)
d538544
d538544
* Fri May 24 2019 Paul Howarth <paul@city-fan.org> - 0.15-14
95f41ca
- Simpler fix for FTBFS with Test::Spelling 0.23 (#1713565)
95f41ca
188705d
* Fri May 24 2019 Petr Pisar <ppisar@redhat.com> - 0.15-13
188705d
- Correct a spelling test (bug #1713565)
188705d
49d102b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-12
49d102b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
49d102b
2e703eb
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-11
2e703eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2e703eb
12cd16a
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-10
12cd16a
- Perl 5.28 re-rebuild of bootstrapped packages
12cd16a
27eada8
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-9
27eada8
- Perl 5.28 rebuild
27eada8
6801d05
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-8
6801d05
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6801d05
b8cc1aa
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-7
b8cc1aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b8cc1aa
61b51ea
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-6
61b51ea
- Perl 5.26 re-rebuild of bootstrapped packages
61b51ea
4e1ffdf
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-5
4e1ffdf
- Perl 5.26 rebuild
4e1ffdf
cfa7f8e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.15-4
cfa7f8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cfa7f8e
90bcda6
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-3
90bcda6
- Perl 5.24 re-rebuild of bootstrapped packages
90bcda6
e35419d
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.15-2
e35419d
- Perl 5.24 rebuild
e35419d
29c1287
* Thu Mar  3 2016 Paul Howarth <paul@city-fan.org> - 0.15-1
29c1287
- Update to 0.15
29c1287
  - Require Pod::Simple ≥ 3.09, as needed feature missing from older versions
29c1287
2cd0ebb
* Wed Feb 17 2016 Paul Howarth <paul@city-fan.org> - 0.14-1
2cd0ebb
- Update to 0.14
2cd0ebb
  - Complete rewrite by dolmen
2cd0ebb
  - The undocumented PRIVATE subroutine extract_synopsis has been renamed; any
2cd0ebb
    code using it will break
2cd0ebb
30bf5e0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13-2
30bf5e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
30bf5e0
2c2d44e
* Tue Jan  5 2016 Paul Howarth <paul@city-fan.org> - 0.13-1
2c2d44e
- Update to 0.13
2c2d44e
  - Fix #12 (conflict with multiple chunks)
2c2d44e
a94c7b8
* Mon Dec 28 2015 Paul Howarth <paul@city-fan.org> - 0.12-1
a94c7b8
- Update to 0.12
a94c7b8
  - Add META.json
a94c7b8
- Re-enable use of Test::Vars with Perl 5.22
a94c7b8
ffc2a52
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
ffc2a52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ffc2a52
91fffed
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
91fffed
- Perl 5.22 re-rebuild of bootstrapped packages
ad05e34
- Disable using of Test::Vars with Perl 5.22
91fffed
9289053
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-2
9289053
- Perl 5.22 rebuild
9289053
52e928b
* Thu Oct  9 2014 Paul Howarth <paul@city-fan.org> - 0.11-1
52e928b
- Update to 0.11
52e928b
  - Added #10 to CAVEATS (redefined warnings)
52e928b
  - Fixed #11 (failing tests on newer perls)
52e928b
- Use %%license where possible
52e928b
f353887
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-4
f353887
- Perl 5.20 re-rebuild of bootstrapped packages
f353887
dc8156c
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-3
dc8156c
- Perl 5.20 rebuild
dc8156c
e1568e9
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
e1568e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e1568e9
eec08e2
* Fri Feb  7 2014 Paul Howarth <paul@city-fan.org> - 0.10-1
eec08e2
- Update to 0.10
eec08e2
  - Fixed prereqs to allow earlier versions of Test-Simple (Issue #9)
eec08e2
  - Removed POD errors from test .pm's to increase Kwalitee
eec08e2
  - Reverted the change of renaming extract_synopsis() to _extract_synopsis(),
eec08e2
    as it appears some distros have used undocumented extract_synopsis() in
eec08e2
    their user tests, and the change is causing their distros to fail
eec08e2
  - Added contributors into META file through dzil plugin
eec08e2
eec08e2
* Wed Feb  5 2014 Paul Howarth <paul@city-fan.org> - 0.08-1
dd0eb97
- Update to 0.08
dd0eb97
  - Implemented proper handling of __DATA__ tokens
dd0eb97
  - Removed unwanted warnings issued during tests
dd0eb97
  - Upped required Test-Simple distro version (fixes Issue #9)
dd0eb97
  - Minor pod fixes
dd0eb97
eec08e2
* Wed Feb  5 2014 Paul Howarth <paul@city-fan.org> - 0.07-1
520a339
- Update to 0.07
520a339
  - Converted to dzil for automation of everything and auto-generation of all
520a339
    the author/release tests and extra files
520a339
  - Fixed CPAN RT#84863: Should ignore descriptions, and other text that is not
520a339
    code
520a339
  - Fixed CPAN RT#76856: Sandbox breaks when combining synopses that use Moose
520a339
    and Moose::Role
520a339
  - Fixed CPAN RT#69438: Heredocs fail to terminate because of the leading
520a339
    space for verbatim blocks
520a339
  - Fixed CPAN RT#54731: Suggest =for conditionalized synopsis check
520a339
  - Fixed CPAN RT#53192: Missing Copyright information for Test::Synopsis
520a339
  - Fixed CPAN RT#52684: Pod directive to skip Test::Synopsis
520a339
  - Fixed CPAN RT#51534: End =for at blank line
520a339
  - Fixed CPAN RT#51535: Show failing code on error
520a339
- This release by ZOFFIX -> update source URL
520a339
- Package upstream's LICENSE and README.md files
520a339
- Classify buildreqs by usage
520a339
9f48f58
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-19
9f48f58
- Perl 5.18 re-rebuild of bootstrapped packages
9f48f58
f22d98d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-18
f22d98d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f22d98d
b27e121
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.06-17
b27e121
- Perl 5.18 rebuild
b27e121
a7d6a1d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-16
a7d6a1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a7d6a1d
dcf0f51
* Thu Oct 25 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.06-15
dcf0f51
- Specify all dependencies.
dcf0f51
7a0e1bc
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-14
7a0e1bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7a0e1bc
e4abe0f
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.06-13
e4abe0f
- Perl 5.16 re-rebuild of bootstrapped packages
e4abe0f
0718286
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.06-12
0718286
- Perl 5.16 rebuild
0718286
b4731a7
* Thu Jun  7 2012 Paul Howarth <paul@city-fan.org> - 0.06-11
b4731a7
- Separate bootstrap and RHEL conditionals
b4731a7
- Drop %%defattr, redundant since rpm 4.4
b4731a7
- Don't need to remove empty directories from buildroot
b4731a7
- BR: perl(base)
b4731a7
d2bd55a
* Thu Jun  7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-10
d2bd55a
- Conditionalize aspell-en & friends
d2bd55a
a060367
* Wed Jan 25 2012 Paul Howarth <paul@city-fan.org> - 0.06-9
a060367
- Can run spelling test unconditionally now
a060367
- BR: perl(ExtUtils::Manifest)
a060367
- Don't BR: perl(Test::Perl::Critic) if we're bootstrapping
a060367
- Use %%{_fixperms} macro rather than our own chmod incantation
a060367
- Run developer tests in a separate test run
a060367
- Drop redundant %%{?perl_default_filter}
a060367
- Don't use macros for commands
a060367
fb7fb3f
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-8
fb7fb3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fb7fb3f
Petr Sabata fd1daa9
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.06-7
Petr Sabata fd1daa9
- Perl mass rebuild
Petr Sabata fd1daa9
bb925b3
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.06-6
bb925b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bb925b3
b41ac57
* Wed Dec 22 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.06-5
a060367
- Rebuild to fix problems with vendorarch/lib (#661697)
b41ac57
a060367
* Tue Jun 15 2010 Paul Howarth <paul@city-fan.org> - 0.06-4
c375975
- Whittle down for Fedora submission
c375975
a060367
* Mon May 17 2010 Paul Howarth <paul@city-fan.org> - 0.06-3
c375975
- Fix dist tag for RHEL-6 Beta
c375975
a060367
* Tue Feb  2 2010 Paul Howarth <paul@city-fan.org> - 0.06-2
c375975
- Add buildreq perl(Test::Perl::Critic) if we have Perl 5.8.8 or later
c375975
a060367
* Fri Nov 27 2009 Paul Howarth <paul@city-fan.org> - 0.06-1
c375975
- Initial RPM version