]> git.pld-linux.org Git - packages/perl-Digest-Nilsimsa.git/blob - perl-Digest-Nilsimsa.spec
perl 5.38.0 rebuild
[packages/perl-Digest-Nilsimsa.git] / perl-Digest-Nilsimsa.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    Digest
6 %define         pnam    Nilsimsa
7 Summary:        Digest::Nilsimsa - Perl version of nilsimsa code
8 Summary(pl.UTF-8):      Digest::Nilsimsa - wersja perlowa kodu nilsimsa
9 Name:           perl-Digest-Nilsimsa
10 Version:        0.06
11 Release:        24
12 License:        GPL v2+
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Digest/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  08e940bd7f5d1167ef3fd1aa7ce234d7
16 URL:            http://search.cpan.org/dist/Digest-Nilsimsa/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A nilsimsa signature is a statistic of n-gram occurance in a piece of
23 text. It is a 256 bit value usually represented in hex. This module is
24 a wrapper around nilsimsa implementation in C by cmeclax.
25
26 %description -l pl.UTF-8
27 Sygnatura nilsimsa to statystyka występowania n-gramów w danym
28 tekście. Jest to 256-bitowa liczba, przeważnie reprezentowana
29 szesnastkowo. Moduł jest nakładką na implementację w C, której
30 autorem jest cmeclax.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34
35 %build
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38 %{__make} \
39         CC="%{__cc}" \
40         OPTIMIZE="%{rpmcflags}"
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc README
55 %{perl_vendorarch}/Digest/*.pm
56 %dir %{perl_vendorarch}/auto/Digest/Nilsimsa
57 %attr(755,root,root) %{perl_vendorarch}/auto/Digest/Nilsimsa/*.so
58 %{_mandir}/man3/*
This page took 0.114829 seconds and 4 git commands to generate.