]> git.pld-linux.org Git - packages/perl-String-Approx.git/blob - perl-String-Approx.spec
1dea154b674baf3c93ea198c85af2c57e24df1e7
[packages/perl-String-Approx.git] / perl-String-Approx.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    String
7 %define         pnam    Approx
8 Summary:        String::Approx - Perl module for approximate matching (fuzzy matching)
9 Summary(pl.UTF-8):      String::Approx - moduł Perlado dopasowywania przybliżonego (rozmytego)
10 Name:           perl-String-Approx
11 Version:        3.28
12 Release:        2
13 License:        LGPL or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  ad98d17213344302ef7edf745a030390
17 URL:            http://search.cpan.org/dist/String-Approx/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 String::Approx lets you match and substitute strings approximately.
24 With this you can emulate errors: typing errorrs, speling errors,
25 closely related vocabularies (colour color), genetic mutations (GAG
26 ACT), abbreviations (McScot, MacScot).
27
28 %description -l pl.UTF-8
29 String::Approx pozwala na przybliżone dopasowywanie i zastępowanie
30 łańcuchów. Przy jego użyciu można emulować błędy: literrówki, błendy
31 ortograficzne, bliskie sobie słowniki (colour/color), mutacje
32 genetyczne (GAG ACT), skróty (McScot, MacScot).
33
34 %prep
35 %setup -q -n %{pdir}-%{pnam}-%{version}
36
37 %build
38 %{__perl} Makefile.PL \
39         INSTALLDIRS=vendor
40 %{__make} \
41         CC="%{__cc}" \
42         OPTIMIZE="%{rpmcflags}"
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog README README.apse
58 %{perl_vendorarch}/String/Approx.pm
59 %dir %{perl_vendorarch}/auto/String/Approx
60 %attr(755,root,root) %{perl_vendorarch}/auto/String/Approx/Approx.so
61 %{_mandir}/man3/*
This page took 0.052163 seconds and 2 git commands to generate.