perl-Digest-HMAC-vl.spec 2.8 KB

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