@ -1,17 +1,31 @@
Name: perl-DBIx-ContextualFetch
Name: perl-DBIx-ContextualFetch
Version: 1.03
Version: 1.03
Release: 39 %{?dist}
Release: 40 %{?dist}
Summary: Add contextual fetches to DBI
Summary: Add contextual fetches to DBI
License: GPL+ or Artistic
License: GPL+ or Artistic
URL: https://metacpan.org/release/DBIx-ContextualFetch
URL: https://metacpan.org/release/DBIx-ContextualFetch
Source0: https://cpan.metacpan.org/authors/id/T/TM/TMTM/DBIx-ContextualFetch-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/DBIx/DBIx-ContextualFetch-%{version}.tar.gz
BuildArch: noarch
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-generators
BuildRequires: perl(DBI), perl(ExtUtils::MakeMaker)
BuildRequires: perl-interpreter
BuildRequires: perl(DBD::SQLite), perl(Test::Pod::Coverage), perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Module
Requires: perl(DBI)
BuildRequires: perl(base)
BuildRequires: perl(DBI)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
# Optional Tests
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
%{?perl_default_filter}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBI::(st|db)\\)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBI::(st|db)\\)
@ -23,25 +37,31 @@ Requires: perl(DBI)
%setup -q -n DBIx-ContextualFetch-%{version}
%setup -q -n DBIx-ContextualFetch-%{version}
%build
%build
%{__ perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags }
%{make_build }
%install
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
%{make_install}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} -c %{buildroot}
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
%check
%check
make test
make test
%files
%files
%doc Changes
%doc Changes
%{perl_vendorlib}/DBIx
%{perl_vendorlib}/DBIx/
%{_mandir}/man3/*.3*
%{_mandir}/man3/DBIx::ContextualFetch.3*
%changelog
%changelog
* Thu Aug 20 2020 Paul Howarth <paul@city-fan.org> - 1.03-40
- Spec tidy-up
- Use author-independent source URL
- Specify all build requirements
- Use %%{make_build} and %%{make_install}
- Don't need to remove empty directories from the buildroot
- Fix permissions verbosely
- Make %%files list more explicit
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-39
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.03-39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild