diff --git a/README.md b/README.md index be2f25b..3314268 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # perl-Digest-HMAC +HMAC is used for message integrity checks between two parties that share a secret key, and works in combination with some other Digest algorithm, usually +MD5 or SHA-1. +The HMAC mechanism is described in RFC 2104. +HMAC follow the common Digest:: interface, but the constructor takes the secret key and the name of some other simple Digest:: as argument. + diff --git a/perl-Digest-HMAC.spec b/perl-Digest-HMAC.spec new file mode 100644 index 0000000..45d5853 --- /dev/null +++ b/perl-Digest-HMAC.spec @@ -0,0 +1,79 @@ +Name: perl-Digest-HMAC +Version: 1.03 +Release: 2mamba +Summary: Digest::HMAC - Keyed-Hashing for Message Authentication +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +BuildRequires: perl-Digest-SHA1 +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +HMAC is used for message integrity checks between two parties that share a secret key, and works in combination with some other Digest algorithm, usually +MD5 or SHA-1. +The HMAC mechanism is described in RFC 2104. +HMAC follow the common Digest:: interface, but the constructor takes the secret key and the name of some other simple Digest:: as argument. + +%prep +%setup -q -n Digest-HMAC-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Mon Nov 12 2012 Silvan Calarco 1.03-2mamba +- perl 5.16 mass rebuild + +* Fri Jul 29 2011 Automatic Build System 1.03-1mamba +- automatic update by autodist + +* Thu Oct 21 2010 Davide Madrisan 1.02-2mamba +- rebuild with INSTALLDIRS=vendor + +* Tue Jan 12 2010 Automatic Build System 1.02-1mamba +- automatic update by autodist + +* Tue Nov 04 2008 Silvan Calarco 1.01-5mamba +- automatic rebuild by autodist + +* Mon Jun 23 2008 Tiziana Ferro 1.01-4mamba +- update Vendor, Distribution, mantainer, buildrequirements list + +* Wed May 10 2006 Stefano Cotta Ramusino 1.01-3qilnx +- rebuilt + +* Tue Jan 18 2005 Silvan Calarco 1.01-2qilnx +- fix for perl requirements (>= instead of =) + +* Tue Feb 24 2004 Davide Madrisan 1.01-1qilnx +- First build