]> git.pld-linux.org Git - SPECS.git/blob - perl-String-KeyboardDistanceXS.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / perl-String-KeyboardDistanceXS.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    String
6 %define         pnam    KeyboardDistanceXS
7 Summary:        String::KeyboardDistanceXS - string comparison algorithm
8 Summary(pl.UTF-8):      String::KeyboardDistanceXS - algorytm porównywania łańcuchów
9 Name:           perl-String-KeyboardDistanceXS
10 Version:        0.02
11 Release:        17
12 License:        unknown
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  23daf2463e88297d7bc9ae72afc70e84
16 URL:            http://search.cpan.org/dist/String-KeyboardDistanceXS/
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 This is an XS implementation of the main qwerty functions for
23 computing the distance and match probabilities from the
24 String::KeyboardDistance module. Please see the documentation for
25 String::KeyboardDistance for more about these functions.
26
27 %description -l pl.UTF-8
28 To jest implementacja XS głównych funkcji qwerty z modułu
29 String::KeyboardDistance, służących do obliczania odległości i
30 dopasowywania prawdopodobieństwa. Więcej o tych funkcjach w
31 dokumentacji do String::KeyboardDistance.
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39 %{__make} \
40         CC="%{__cc}" \
41         OPTIMIZE="%{rpmcflags}"
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %{perl_vendorarch}/String/*.pm
57 %dir %{perl_vendorarch}/auto/String/KeyboardDistanceXS
58 %attr(755,root,root) %{perl_vendorarch}/auto/String/KeyboardDistanceXS/*.so
59 %{perl_vendorarch}/auto/String/KeyboardDistanceXS/*.ix
60 %{_mandir}/man3/*
This page took 0.038318 seconds and 3 git commands to generate.