diff --git a/perl-DBICx-TestDatabase.spec b/perl-DBICx-TestDatabase.spec index 58c817d..46c13dd 100644 --- a/perl-DBICx-TestDatabase.spec +++ b/perl-DBICx-TestDatabase.spec @@ -1,29 +1,24 @@ Name: perl-DBICx-TestDatabase Summary: Create a temporary database from a DBIx::Class::Schema Version: 0.05 -Release: 24%{?dist} -License: GPL+ or Artistic +Release: 25%{?dist} +License: GPL-1.0-or-later OR Artistic-1.0-Perl Source0: https://cpan.metacpan.org/authors/id/J/JR/JROCKWAY/DBICx-TestDatabase-%{version}.tar.gz URL: https://metacpan.org/release/DBICx-TestDatabase -Patch0: DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch BuildArch: noarch # Build +BuildRequires: coreutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators -BuildRequires: perl(Config) -BuildRequires: perl(Cwd) -BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(ExtUtils::MM_Unix) -BuildRequires: perl(Fcntl) -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Path) -BuildRequires: perl(strict) -BuildRequires: perl(vars) +BuildRequires: perl-interpreter +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) # Runtime BuildRequires: perl(DBD::SQLite) >= 1.29 BuildRequires: perl(File::Temp) BuildRequires: perl(SQL::Translator) +BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests only BuildRequires: perl(base) @@ -50,14 +45,17 @@ failure, etc. %prep %setup -q -n DBICx-TestDatabase-%{version} -%patch0 -p1 +# Remove bundled libraries +rm -r inc +perl -i -ne 'print $_ unless m{^inc/}' MANIFEST +find -type f -exec chmod -x {} + %build -perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} +%{make_install} %{_fixperms} %{buildroot}/* %check @@ -69,6 +67,10 @@ make test %{_mandir}/man3/*.3* %changelog +* Tue Dec 20 2022 Jitka Plesnikova - 0.05-25 +- Update license to SPDX format +- Use macros %%make_* + * Fri Jul 22 2022 Fedora Release Engineering - 0.05-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild