perl-Digest-HMAC-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %define _use_internal_dependency_generator 0
  2. Summary: Digest-HMAC Perl module
  3. Name: perl-Digest-HMAC
  4. Version: 1.04
  5. Release: 1%{_dist_release}
  6. Group: programming
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: distributable
  10. URL: https://metacpan.org/pod/Digest::HMAC
  11. Source0: https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/Digest-HMAC-%{version}.tar.gz
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-root
  14. BuildRequires: perl >= 0:5.00503
  15. BuildRequires: perl(Digest::SHA)
  16. BuildRequires: perl(Digest::MD5)
  17. Requires: perl(Digest::SHA)
  18. Requires: perl(Digest::MD5)
  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. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. #eval `perl '-V:installarchlib'`
  34. #mkdir -p $RPM_BUILD_ROOT/$installarchlib
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
  37. find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
  38. find $RPM_BUILD_ROOT/usr -type f -print | \
  39. sed "s@^$RPM_BUILD_ROOT@@g" | \
  40. grep -v perllocal.pod | \
  41. grep -v "\.packlist" > Digest-HMAC-%{version}-filelist
  42. if [ "$(cat Digest-HMAC-%{version}-filelist)X" = "X" ] ; then
  43. echo "ERROR: EMPTY FILE LIST"
  44. exit -1
  45. fi
  46. %check
  47. make test
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files -f Digest-HMAC-%{version}-filelist
  51. %defattr(-,root,root)
  52. %changelog
  53. * Thu Nov 18 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.04-1
  54. - new upstream release.
  55. - built with perl-5.34.0.
  56. * Mon Jun 30 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.03-1
  57. - build with Perl 5.16
  58. - update to 1.03
  59. - add Requires and BuildRequires version
  60. * Mon Mar 28 2011 IWAI, Masaharu <iwai@alib.jp> 1.02-1
  61. - new upstream release
  62. - add Vendor and Distribution tags
  63. * Tue Apr 29 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> - 1.01-14
  64. - built with perl-5.10.0.
  65. * Tue Sep 25 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.01-13vl4
  66. - added %check
  67. - changed Group to Development/Libraries
  68. * Mon Oct 09 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  69. - 1.01-13vl3
  70. - rebuild for VineSeed / Vine 4.0
  71. - changed Group to Development/Languages
  72. - installs to vendor_arch directory
  73. * Thu Oct 05 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  74. - 1.01-13vl2
  75. - change install dir (remove vender)
  76. * Thu Oct 05 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  77. - 1.01-13vl1
  78. - rebuild fot Vine 3.2
  79. * Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 1.01-13
  80. - rebuild
  81. * Fri Apr 23 2004 Chip Turner <cturner@redhat.com> 1.01-12
  82. - bump
  83. * Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
  84. - version bump and rebuild
  85. * Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
  86. - automated release bump and build
  87. * Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
  88. - description update
  89. * Wed Jun 26 2002 cturner@redhat.com
  90. - Specfile autogenerated