perl-Digest-HMAC-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. %define _use_internal_dependency_generator 0
  2. Name: perl-Digest-HMAC
  3. Version: 1.01
  4. Release: 14%{_dist_release}
  5. Summary: Digest-HMAC Perl module
  6. License: distributable
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/search?mode=module&query=Digest%3a%3aHMAC
  9. BuildRoot: %{_tmppath}/%{name}-root
  10. BuildRequires: perl >= 0:5.00503
  11. Source0: Digest-HMAC-%{version}.tar.gz
  12. BuildArch: noarch
  13. BuildRequires: perl(Digest::SHA1)
  14. BuildRequires: perl(Digest::MD5)
  15. Requires: perl(Digest::SHA1) perl(Digest::MD5)
  16. %description
  17. HMAC is used for message integrity checks between two parties that
  18. share a secret key, and works in combination with some other Digest
  19. algorithm, usually MD5 or SHA-1. The HMAC mechanism is described in
  20. RFC 2104.
  21. HMAC follow the common Digest:: interface, but the constructor takes
  22. the secret key and the name of some other simple Digest:: as argument.
  23. %prep
  24. %setup -q -n Digest-HMAC-%{version}
  25. %build
  26. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  27. make
  28. %clean
  29. rm -rf $RPM_BUILD_ROOT
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. #eval `perl '-V:installarchlib'`
  33. #mkdir -p $RPM_BUILD_ROOT/$installarchlib
  34. make DESTDIR=$RPM_BUILD_ROOT install
  35. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  36. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  37. find $RPM_BUILD_ROOT/usr -type f -print | \
  38. sed "s@^$RPM_BUILD_ROOT@@g" | \
  39. grep -v perllocal.pod | \
  40. grep -v "\.packlist" > Digest-HMAC-%{version}-filelist
  41. if [ "$(cat Digest-HMAC-%{version}-filelist)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %check
  46. make test
  47. %files -f Digest-HMAC-%{version}-filelist
  48. %defattr(-,root,root)
  49. %changelog
  50. * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> - 1.01-14
  51. - built with perl-5.10.0.
  52. * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.01-13vl4
  53. - added %check
  54. - changed Group to Development/Libraries
  55. * Mon Oct 09 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  56. - 1.01-13vl3
  57. - rebuild for VineSeed / Vine 4.0
  58. - changed Group to Development/Languages
  59. - installs to vendor_arch directory
  60. * Thu Oct 05 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  61. - 1.01-13vl2
  62. - change install dir (remove vender)
  63. * Thu Oct 05 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  64. - 1.01-13vl1
  65. - rebuild fot Vine 3.2
  66. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.01-13
  67. - rebuild
  68. * Fri Apr 23 2004 Chip Turner <cturner@redhat.com> 1.01-12
  69. - bump
  70. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  71. - version bump and rebuild
  72. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  73. - automated release bump and build
  74. * Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
  75. - description update
  76. * Wed Jun 26 2002 cturner@redhat.com
  77. - Specfile autogenerated