perl-Digest-HMAC-vl.spec 3.0 KB

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