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

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:  {cpan_name}
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)

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.

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

perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

make test

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

%files -f %{name}.files
%license LICENSE