3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Digest::Elf - implementation of the ElfHash algorithm
9 Summary(pl.UTF-8): Digest::Elf - implementacja algorytmu ElfHash
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 59e6737aae2f9efd1a8af8bc8655f575
17 URL: http://search.cpan.org/dist/Digest-Elf/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Digest::Elf Perl module provides an implimentation of the ElfHash
24 algorithm. ElfHash generates resonably unique values from a string in
25 a reasonably short period of time. The actual algorith is culled from
26 a Dr. Dobbs Journal article, they culled it probably from the source
27 for the GNU C complier.
29 %description -l pl.UTF-8
30 Moduł Perla Digest::Elf jest implementacją algorytmu ElfHash. Algorytm
31 ten generuje w miarę unikalne wartości dla łańcuchów znaków w
32 przyzwoitym czasie. Właściwy algorytm jest ściągnięty z artykułu z Dr.
33 Dobbs Journal, gdzie został ściągnięty prawdopodobnie ze źródeł
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
44 OPTIMIZE="%{rpmcflags}"
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %{perl_vendorarch}/Digest/Elf.pm
61 %dir %{perl_vendorarch}/auto/Digest/Elf
62 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/Elf/Elf.so