From 5639954e6526e9bfcdbdf862a920e2c424753132 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Tue, 12 Jul 2016 10:16:23 +0200
Subject: 2.0.0 bump

---
 .gitignore            |  1 +
 perl-Authen-OATH.spec | 54 ++++++++++++++++++++++++++++++++++-----------------
 sources               |  2 +-
 3 files changed, 38 insertions(+), 19 deletions(-)

diff --git a/.gitignore b/.gitignore
index af48c13..6558930 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Authen-OATH-v1.0.0.tar.gz
+/Authen-OATH-2.0.0.tar.gz
diff --git a/perl-Authen-OATH.spec b/perl-Authen-OATH.spec
index 5904044..9076d6d 100644
--- a/perl-Authen-OATH.spec
+++ b/perl-Authen-OATH.spec
@@ -1,58 +1,76 @@
 Name:           perl-Authen-OATH
-Version:        1.0.0
-Release:        15%{?dist}
+Version:        2.0.0
+Release:        1%{?dist}
 Summary:        OATH One Time Passwords
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Authen-OATH/
-Source0:        
http://www.cpan.org/authors/id/S/SI/SIFUKURT/Authen-OATH-v%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/O/OA/OALDERS/Authen-OATH-%{version}.tar.gz
 BuildArch:      noarch
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  perl
 BuildRequires:  perl-generators
-BuildRequires:  perl(Module::Build)
-# Tests only:
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  sed
+# Run-time:
 BuildRequires:  perl(Digest::HMAC)
-BuildRequires:  perl(Digest::SHA1)
 BuildRequires:  perl(Math::BigInt)
-BuildRequires:  perl(Moose)
+BuildRequires:  perl(Moo) >= 2.002004
+BuildRequires:  perl(Types::Standard)
+# Tests only:
+BuildRequires:  perl(Digest::SHA)
+# Pod::Coverage::TrustPod not used
+# Pod::Wordlist not used
+# Test::CPAN::Changes not used
 BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Simple)
+# Test::Spelling not used
+# Test::Synopsis not used
 # Optional tests:
+BuildRequires:  perl(Pod::Coverage) >= 0.18
 BuildRequires:  perl(Test::Pod) >= 1.22
 BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-# SHA1 is needed by HOTP specification.
-Requires:       perl(Digest::SHA1)
+# Default digest algorithm, also SHA1 is needed by HOTP specification.
+Requires:       perl(Digest::SHA)
 
 %description
 Implementation of the HOTP and TOTP One Time Password algorithms as defined by
 OATH (http://www.openauthentication.org).
 
 %prep
-%setup -q -n Authen-OATH-v%{version}
-for F in README Changes; do
+%setup -q -n Authen-OATH-%{version}
+for F in Changes; do
     sed -e 's/\r//' <"$F" >"${F}.unix"
     touch -r "$F" "${F}.unix"
     mv "${F}.unix" "$F"
 done
 
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
-./Build test
+make test
 
 %files
-%doc Changes README
+%license LICENSE
+%doc Changes CONTRIBUTORS README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jul 12 2016 Petr Pisar <ppi...@redhat.com> - 2.0.0-1
+- 2.0.0 bump
+
 * Mon May 16 2016 Jitka Plesnikova <jples...@redhat.com> - 1.0.0-15
 - Perl 5.24 rebuild
 
diff --git a/sources b/sources
index 9139b49..8e59c85 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fb744e4213f9d90b0f6dfbb5ac4dbca3  Authen-OATH-v1.0.0.tar.gz
+102c3fb5c145a65f8676a766511cb79d  Authen-OATH-2.0.0.tar.gz
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-Authen-OATH.git/commit/?h=master&id=5639954e6526e9bfcdbdf862a920e2c424753132
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to