3 %bcond_without tests # do not perform "make test"
7 Summary: Digest::HMAC - keyed-hashing for message authentication
8 Summary(pl.UTF-8): Digest::HMAC - haszowanie z kluczem dla uwierzytelnienia wiadomości
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: e6a5d6f552da16eacb5157ea4369ff9d
17 URL: http://search.cpan.org/dist/Digest-HMAC/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: perl-Digest-MD5 >= 2.00
20 BuildRequires: perl-Digest-SHA1 >= 1.00
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 HMAC is used for message integrity checks between two parties that
27 share a secret key, and works in combination with some other Digest
28 algorithm, usually MD5 or SHA-1. The HMAC mechanism is described in
31 %description -l pl.UTF-8
32 HMAC jest używany do kontroli integralności wiadomości pomiędzy dwiema
33 stronami dzielącymi tajny klucz, działa w połączeniu z jakimś innym
34 algorytmem skrótu, zazwyczaj MD5 lub SHA-1. Mechanizm HMAC jest
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Digest/HMAC*.pm
60 %{_mandir}/man3/Digest::HMAC*.3pm*