Update license to SPDX format; Use macros %%make_*

f38
Jitka Plesnikova 2 years ago
parent 29ac3ffe34
commit 7ea5186071

@ -1,29 +1,24 @@
Name: perl-DBICx-TestDatabase Name: perl-DBICx-TestDatabase
Summary: Create a temporary database from a DBIx::Class::Schema Summary: Create a temporary database from a DBIx::Class::Schema
Version: 0.05 Version: 0.05
Release: 24%{?dist} Release: 25%{?dist}
License: GPL+ or Artistic 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 Source0: https://cpan.metacpan.org/authors/id/J/JR/JROCKWAY/DBICx-TestDatabase-%{version}.tar.gz
URL: https://metacpan.org/release/DBICx-TestDatabase URL: https://metacpan.org/release/DBICx-TestDatabase
Patch0: DBICx-TestDatabase-0.05-Fix-building-on-Perl-without-dot-in-INC.patch
BuildArch: noarch BuildArch: noarch
# Build # Build
BuildRequires: coreutils
BuildRequires: make BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(Config) BuildRequires: perl-interpreter
BuildRequires: perl(Cwd) BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(ExtUtils::MM_Unix) BuildRequires: perl(Module::Install::WriteAll)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Runtime # Runtime
BuildRequires: perl(DBD::SQLite) >= 1.29 BuildRequires: perl(DBD::SQLite) >= 1.29
BuildRequires: perl(File::Temp) BuildRequires: perl(File::Temp)
BuildRequires: perl(SQL::Translator) BuildRequires: perl(SQL::Translator)
BuildRequires: perl(strict)
BuildRequires: perl(warnings) BuildRequires: perl(warnings)
# Tests only # Tests only
BuildRequires: perl(base) BuildRequires: perl(base)
@ -50,14 +45,17 @@ failure, etc.
%prep %prep
%setup -q -n DBICx-TestDatabase-%{version} %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 %build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
make %{?_smp_mflags} %{make_build}
%install %install
make pure_install DESTDIR=%{buildroot} %{make_install}
%{_fixperms} %{buildroot}/* %{_fixperms} %{buildroot}/*
%check %check
@ -69,6 +67,10 @@ make test
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Tue Dec 20 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.05-25
- Update license to SPDX format
- Use macros %%make_*
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-24 * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.05-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

Loading…
Cancel
Save