File perl-DBIx-Simple.spec of Package perl-DBIx-Simple

#
# spec file for package perl-DBIx-Simple
#
# Copyright (c) 2022 Andreas Vögele <andreas@andreasvoegele.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please send bugfixes or comments to the author.
#


Name:           perl-DBIx-Simple
Version:        1.37
Release:        0
Summary:        Easy-to-use OO interface to DBI
License:        MIT
URL:            https://metacpan.org/dist/DBIx-Simple
Source:         https://cpan.metacpan.org/authors/id/J/JU/JUERD/DBIx-Simple-%{version}.tar.gz
BuildArch:      noarch
AutoProv:       1
AutoReq:        0
# Build:
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl
%if 0%{?fedora} > 0 || 0%{?rhel} > 0
BuildRequires:  perl-generators
Requires:       perl-libs
%endif
BuildRequires:  perl(ExtUtils::MakeMaker)
# Runtime:
BuildRequires:  perl(DBI)
# Tests:
BuildRequires:  perl(DBD::SQLite)
BuildRequires:  perl(Test::More)
Requires:       perl(DBI)
%{?perl_requires}

%{?perl_default_filter}

%description
DBIx::Simple provides a simplified interface to DBI, Perl's powerful
database module.

%prep
%autosetup -n DBIx-Simple-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%{make_install}
%{_fixperms} %{buildroot}/*
find %{buildroot} \
    \( -name perllocal.pod -o -name .packlist -o -type d -empty \) \
    -delete

%check
make test

%files
%defattr(-, root, root)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
openSUSE Build Service is sponsored by