4bf02c4
Summary:	Perl module for DSA signatures and key generation
4bf02c4
Name:		perl-Crypt-DSA
1248295
Version:	1.17
e79177a
Release:	4%{?dist}
e98da83
License:	GPL+ or Artistic
4bf02c4
Group:		Development/Libraries
4bf02c4
Url:		http://search.cpan.org/dist/Crypt-DSA/
b3fb78e
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Crypt-DSA-%{version}.tar.gz
caedf9e
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
4bf02c4
BuildArch:	noarch
e79177a
BuildRequires:	perl(Carp)
b3fb78e
BuildRequires:	perl(Convert::PEM)
b3fb78e
BuildRequires:	perl(Crypt::DES_EDE3)
4bf02c4
BuildRequires:	perl(Data::Buffer) >= 0.01
8c02e68
BuildRequires:	perl(Digest::SHA1)
b3fb78e
BuildRequires:	perl(ExtUtils::MakeMaker)
b3fb78e
BuildRequires:	perl(File::Spec)
b3fb78e
BuildRequires:	perl(File::Which) >= 0.05
b3fb78e
BuildRequires:	perl(IPC::Open3)
b3fb78e
BuildRequires:	perl(Math::BigInt) >= 1.78
5b42adf
BuildRequires:	perl(Math::BigInt::GMP)
b3fb78e
BuildRequires:	perl(Perl::MinimumVersion) >= 1.20
b3fb78e
BuildRequires:	perl(Test::CPAN::Meta) >= 0.12
b3fb78e
BuildRequires:	perl(Test::More) >= 0.42
b3fb78e
BuildRequires:	perl(Test::MinimumVersion) >= 0.008
b3fb78e
BuildRequires:	perl(Test::Pod) >= 1.26
b3fb78e
BuildRequires:	openssl
b3fb78e
# Crypt::DSA::Keychain calls openssl for DSA parameter generation
b3fb78e
Requires:	openssl
5b42adf
# Some operations are really slow without GMP (or Pari, but we test with GMP)
eaecb41
Requires:	perl(Math::BigInt::GMP)
4bf02c4
4bf02c4
%description
4bf02c4
Crypt::DSA is an implementation of the DSA (Digital Signature Algorithm)
4bf02c4
signature verification system. This package provides DSA signing, signature
4bf02c4
verification, and key generation.
4bf02c4
4bf02c4
%prep
4bf02c4
%setup -q -n Crypt-DSA-%{version}
4bf02c4
4bf02c4
%build
caedf9e
perl Makefile.PL INSTALLDIRS=vendor
caedf9e
make %{?_smp_mflags}
4bf02c4
4bf02c4
%install
5b42adf
make pure_install DESTDIR=%{buildroot}
caedf9e
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
caedf9e
find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
e79177a
%{_fixperms} %{buildroot}
4bf02c4
1248295
%check
caedf9e
make test
caedf9e
make test AUTOMATED_TESTING=1 TEST_FILES="xt/*.t"
1248295
4bf02c4
%files
b3fb78e
%doc Changes LICENSE README
4bf02c4
%{perl_vendorlib}/Crypt/
4bf02c4
%{_mandir}/man3/Crypt::DSA.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::Key.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::Key::PEM.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::Key::SSH2.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::KeyChain.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::Signature.3pm*
4bf02c4
%{_mandir}/man3/Crypt::DSA::Util.3pm*
4bf02c4
4bf02c4
%changelog
e79177a
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> 1.17-4
e79177a
- Fedora 17 mass rebuild
e79177a
- Use %%{_fixperms} macro rather than our own chmod incantation
e79177a
- BR: perl(Carp)
e79177a
e79177a
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> 1.17-3
Petr Sabata 3f12245
- Perl mass rebuild
Petr Sabata 3f12245
e79177a
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> 1.17-2
Petr Sabata dc44809
- Perl mass rebuild
Petr Sabata dc44809
1248295
* Fri Jun 17 2011 Paul Howarth <paul@city-fan.org> 1.17-1
1248295
- Update to 1.17
1248295
  - Upgrade to Module::Install 1.01
1248295
  - Added support for OpenSSL 1.0.0 dsaparam format change (CPAN RT#49668)
1248295
  - Requires perl 5.6 now (CPAN RT#58094)
1248295
  - Fixes for 64-bit support
1248295
- Drop upstreamed patches
1248295
- Release tests moved to xt/ directory upstream and now tested separately
caedf9e
- Nobody else likes macros for commands
5b42adf
- Drop backwards compatibility with ancient distributions
1248295
e79177a
* Tue Feb  8 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.16-6
4a4da8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4a4da8c
e79177a
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> 1.16-5
e0342c4
- Rebuild to fix problems with vendorarch/lib (#661697)
0fb08fc
9b90c88
* Thu Jun  3 2010 Paul Howarth <paul@city-fan.org> 1.16-4
9b90c88
- META.yml should specify perl >= 5.006 due to use of 3-arg open (CPAN RT#58094)
9b90c88
e79177a
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> 1.16-3
48c2def
- Mass rebuild with perl-5.12.0
48c2def
e79177a
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> 1.16-2
e0342c4
- Rebuild against perl 5.10.1
4806d8a
b3fb78e
* Fri Sep 11 2009 Paul Howarth <paul@city-fan.org> 1.16-1
b3fb78e
- Update to 1.16 (first production release)
b3fb78e
- New upstream maintainer -> change source URL
b3fb78e
- Change buildreq which to perl(File::Which)
b3fb78e
- Add new buildreqs perl(Crypt::DES_EDE3), perl(File::Spec), perl(IPC::Open3)
b3fb78e
- Buildreq perl(Math::BigInt) >= 1.78
b3fb78e
- Enable AUTOMATED_TESTING
b3fb78e
- New test requirements:
b3fb78e
  - perl(Perl::MinimumVersion) >= 1.20
b3fb78e
  - perl(Test::CPAN::Meta) >= 0.12
b3fb78e
  - perl(Test::MinimumVersion) >= 0.008
b3fb78e
  - perl(Test::Pod) >= 1.26
b3fb78e
- ToDo no longer present upstream, but add LICENSE and README as %%doc
b3fb78e
- Add runtime dependency on openssl (used for DSA parameter generation)
b3fb78e
- Add patch for openssl dsaparam 1.0 compatibility (CPAN RT#49668)
b3fb78e
b3fb78e
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.14-9
fba2da6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fba2da6
b3fb78e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 0.14-8
05c60fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
05c60fa
eaecb41
* Mon Nov  3 2008 Paul Howarth <paul@city-fan.org> 0.14-7
eaecb41
- BuildRequire and Require a GMP support module, either Math::GMP or
eaecb41
  Math::BigInt::GMP depending on how recent Math::BigInt is
eaecb41
- BuildRequire openssl, which significantly speeds up the keygen test
eaecb41
965f292
* Thu Mar  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.14-6
eaecb41
- Rebuild for new perl
965f292
e98da83
* Sat Aug 11 2007 Paul Howarth <paul@city-fan.org> 0.14-5
e98da83
- Clarify license as GPL v1 or later, or Artistic (same as perl)
e98da83
- Add buildreq perl(Test::More)
e98da83
8c02e68
* Wed Apr 18 2007 Paul Howarth <paul@city-fan.org> 0.14-4
8c02e68
- Buildrequire perl(ExtUtils::MakeMaker)
673c063
- Fix argument order for find with -depth
673c063
3bf87bf
* Tue Aug 29 2006 Paul Howarth <paul@city-fan.org> 0.14-3
3bf87bf
- FE6 mass rebuild
3bf87bf
cf1f87a
* Mon May 29 2006 Paul Howarth <paul@city-fan.org> 0.14-2
cf1f87a
- Add missing buildreq: which
cf1f87a
4b4a983
* Tue May  9 2006 Paul Howarth <paul@city-fan.org> 0.14-1
4b4a983
- Update to 0.14
4b4a983
4bf02c4
* Mon Nov 28 2005 Paul Howarth <paul@city-fan.org> 0.13-1
4bf02c4
- Initial build