@ -1,6 +1,6 @@
Name: perl-Test-Synopsis
Name: perl-Test-Synopsis
Version: 0.06
Version: 0.06
Release: 10 %{?dist}
Release: 11 %{?dist}
Summary: Test your SYNOPSIS code
Summary: Test your SYNOPSIS code
Group: Development/Libraries
Group: Development/Libraries
License: GPL+ or Artistic
License: GPL+ or Artistic
@ -8,14 +8,19 @@ URL: http://search.cpan.org/dist/Test-Synopsis/
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Test-Synopsis-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Test-Synopsis-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildArch: noarch
BuildArch: noarch
BuildRequires: perl(base)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod) >= 1.00
# Test::Perl::Critic -> Perl::Critic -> List::MoreUtils -> Test::LeakTrace -> Test::Synopsis
# Test::Perl::Critic -> Perl::Critic -> List::MoreUtils -> Test::LeakTrace -> Test::Synopsis
%if 0%{!?perl_bootstrap:1} && ! (0%{?rhel} >= 7)
%if 0%{!?perl_bootstrap:1}
BuildRequires: aspell-en
BuildRequires: perl(Test::Perl::Critic)
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)
BuildRequires: perl(Test::Spelling)
%endif
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@ -40,7 +45,6 @@ make %{?_smp_mflags}
rm -rf %{buildroot}
rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
%{_fixperms} %{buildroot}
%{_fixperms} %{buildroot}
%check
%check
@ -51,12 +55,17 @@ make test TEST_FILES="xt/*.t"
rm -rf %{buildroot}
rm -rf %{buildroot}
%files
%files
%defattr(-,root,root,-)
%doc Changes README
%doc Changes README
%{perl_vendorlib}/Test/
%{perl_vendorlib}/Test/
%{_mandir}/man3/Test::Synopsis.3pm*
%{_mandir}/man3/Test::Synopsis.3pm*
%changelog
%changelog
* Thu Jun 7 2012 Paul Howarth <paul@city-fan.org> - 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á <mmaslano@redhat.com> - 0.06-10
* Thu Jun 7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.06-10
- Conditionalize aspell-en & friends
- Conditionalize aspell-en & friends