source: projects/specs/branches/6/p/perl-Digest-HMAC/perl-Digest-HMAC-vl.spec @ 3166

Revision 3166, 2.8 KB checked in by iwaim, 13 years ago (diff)

perl-Digest-HMAC-1.02-1

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