File perl-Authen-SCRAM.spec of Package perl-Authen-SCRAM

#
# spec file for package perl-Authen-SCRAM
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           perl-Authen-SCRAM
Version:        0.011
Release:        0
%define cpan_name Authen-SCRAM
Summary: Salted Challenge Response Authentication Mechanism (RFC 5802)
License:        Apache-2.0
Group:          Development/Libraries/Perl
Url:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage)
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Authen::SASL::SASLprep) >= 1.100
BuildRequires:  perl(Crypt::URandom)
BuildRequires:  perl(Moo) >= 1.001000
BuildRequires:  perl(Moo::Role) >= 1.001000
BuildRequires:  perl(PBKDF2::Tiny) >= 0.003
BuildRequires:  perl(Test::FailWarnings)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(Types::Standard)
BuildRequires:  perl(namespace::clean)
Requires:       perl(Authen::SASL::SASLprep) >= 1.100
Requires:       perl(Crypt::URandom)
Requires:       perl(Moo) >= 1.001000
Requires:       perl(Moo::Role) >= 1.001000
Requires:       perl(PBKDF2::Tiny) >= 0.003
Requires:       perl(Try::Tiny)
Requires:       perl(Types::Standard)
Requires:       perl(namespace::clean)
%{perl_requires}

%description
The modules in this distribution implement the Salted Challenge Response
Authentication Mechanism (SCRAM) from RFC 5802.

See Authen::SCRAM::Client and Authen::SCRAM::Server for usage details.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
export AUTOMATED_TESTING=1
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%check
export AUTOMATED_TESTING=1
make test

%install
%perl_make_install
find %buildroot/%_prefix -name *.bs -a -size 0 | xargs rm -f
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes CONTRIBUTING.mkdn README
%license LICENSE

%changelog