3 %bcond_without tests # do not perform "make test"
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
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)
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.
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.
34 %setup -q -n %{pdir}-%{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
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