From b1d6211759127399b24f48400bc3fc78172d9450 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 29 2019 11:11:44 +0000 Subject: import perl-Test-Synopsis-0.06-16.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0ea7a70 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Test-Synopsis-0.06.tar.gz diff --git a/.perl-Test-Synopsis.metadata b/.perl-Test-Synopsis.metadata new file mode 100644 index 0000000..35cf087 --- /dev/null +++ b/.perl-Test-Synopsis.metadata @@ -0,0 +1 @@ +7a72044c25cd4b2b15f44e131720f317b79e2c9a SOURCES/Test-Synopsis-0.06.tar.gz diff --git a/SPECS/perl-Test-Synopsis.spec b/SPECS/perl-Test-Synopsis.spec new file mode 100644 index 0000000..06975b3 --- /dev/null +++ b/SPECS/perl-Test-Synopsis.spec @@ -0,0 +1,122 @@ +Name: perl-Test-Synopsis +Version: 0.06 +Release: 16%{?dist} +Summary: Test your SYNOPSIS code +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Test-Synopsis/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Test-Synopsis-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildArch: noarch +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Cwd) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::Manifest) +BuildRequires: perl(File::Path) +BuildRequires: perl(Test::Builder::Module) +BuildRequires: perl(Test::Pod) >= 1.00 +# Test::Perl::Critic -> Perl::Critic -> List::MoreUtils -> Test::LeakTrace -> Test::Synopsis +%if 0%{!?perl_bootstrap:1} +BuildRequires: perl(Test::Perl::Critic) +%endif +# RHEL-7 package cannot have buildreqs from EPEL-7 (aspell-en), so skip the +# spell check there; we won't need Test::Spelling either in that case +%if 0%{?rhel} < 7 +BuildRequires: aspell-en +BuildRequires: perl(Test::Spelling) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Test::Builder::Module) + +%description +Test::Synopsis is an (author) test module to find .pm or .pod files under your +lib directory and then make sure the example snippet code in your SYNOPSIS +section passes the perl compile check. + +Note that this module only checks the perl syntax (by wrapping the code with +sub) and doesn't actually run the code. + +%prep +%setup -q -n Test-Synopsis-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +make test +make test TEST_FILES="xt/*.t" + +%clean +rm -rf %{buildroot} + +%files +%doc Changes README +%{perl_vendorlib}/Test/ +%{_mandir}/man3/Test::Synopsis.3pm* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.06-16 +- Mass rebuild 2013-12-27 + +* Thu Oct 25 2012 Jitka Plesnikova - 0.06-15 +- Specify all dependencies. + +* Fri Jul 20 2012 Fedora Release Engineering - 0.06-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Jul 10 2012 Petr Pisar - 0.06-13 +- Perl 5.16 re-rebuild of bootstrapped packages + +* Mon Jun 11 2012 Petr Pisar - 0.06-12 +- Perl 5.16 rebuild + +* Thu Jun 7 2012 Paul Howarth - 0.06-11 +- Separate bootstrap and RHEL conditionals +- Drop %%defattr, redundant since rpm 4.4 +- Don't need to remove empty directories from buildroot +- BR: perl(base) + +* Thu Jun 7 2012 Marcela Mašláňová - 0.06-10 +- Conditionalize aspell-en & friends + +* Wed Jan 25 2012 Paul Howarth - 0.06-9 +- Can run spelling test unconditionally now +- BR: perl(ExtUtils::Manifest) +- Don't BR: perl(Test::Perl::Critic) if we're bootstrapping +- Use %%{_fixperms} macro rather than our own chmod incantation +- Run developer tests in a separate test run +- Drop redundant %%{?perl_default_filter} +- Don't use macros for commands + +* Fri Jan 13 2012 Fedora Release Engineering - 0.06-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jul 19 2011 Petr Sabata - 0.06-7 +- Perl mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 0.06-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Dec 22 2010 Marcela Maslanova - 0.06-5 +- Rebuild to fix problems with vendorarch/lib (#661697) + +* Tue Jun 15 2010 Paul Howarth - 0.06-4 +- Whittle down for Fedora submission + +* Mon May 17 2010 Paul Howarth - 0.06-3 +- Fix dist tag for RHEL-6 Beta + +* Tue Feb 2 2010 Paul Howarth - 0.06-2 +- Add buildreq perl(Test::Perl::Critic) if we have Perl 5.8.8 or later + +* Fri Nov 27 2009 Paul Howarth - 0.06-1 +- Initial RPM version