perl-Digest-HMAC/perl-Digest-HMAC.spec

80 lines
2.6 KiB
RPMSpec
Raw Normal View History

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 <tiziana.ferro@email.it>
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 <silvan.calarco@mambasoft.it> 1.03-2mamba
- perl 5.16 mass rebuild
* Fri Jul 29 2011 Automatic Build System <autodist@mambasoft.it> 1.03-1mamba
- automatic update by autodist
* Thu Oct 21 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.02-2mamba
- rebuild with INSTALLDIRS=vendor
* Tue Jan 12 2010 Automatic Build System <autodist@mambasoft.it> 1.02-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-5mamba
- automatic rebuild by autodist
* Mon Jun 23 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.01-4mamba
- update Vendor, Distribution, mantainer, buildrequirements list
* Wed May 10 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.01-3qilnx
- rebuilt
* Tue Jan 18 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-2qilnx
- fix for perl requirements (>= instead of =)
* Tue Feb 24 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.01-1qilnx
- First build