]> git.pld-linux.org Git - packages/perl-String-Approx.git/blob - perl-String-Approx.spec
perl 5.38.0 rebuild
[packages/perl-String-Approx.git] / perl-String-Approx.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    String
6 %define         pnam    Approx
7 Summary:        String::Approx - Perl module for approximate matching (fuzzy matching)
8 Summary(pl.UTF-8):      String::Approx - moduł Perlado dopasowywania przybliżonego (rozmytego)
9 Name:           perl-String-Approx
10 Version:        3.28
11 Release:        6
12 License:        LGPL or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  ad98d17213344302ef7edf745a030390
16 URL:            http://search.cpan.org/dist/String-Approx/
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 String::Approx lets you match and substitute strings approximately.
23 With this you can emulate errors: typing errorrs, speling errors,
24 closely related vocabularies (colour color), genetic mutations (GAG
25 ACT), abbreviations (McScot, MacScot).
26
27 %description -l pl.UTF-8
28 String::Approx pozwala na przybliżone dopasowywanie i zastępowanie
29 łańcuchów. Przy jego użyciu można emulować błędy: literrówki, błendy
30 ortograficzne, bliskie sobie słowniki (colour/color), mutacje
31 genetyczne (GAG ACT), skróty (McScot, MacScot).
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 %doc ChangeLog README README.apse
57 %{perl_vendorarch}/String/Approx.pm
58 %dir %{perl_vendorarch}/auto/String/Approx
59 %attr(755,root,root) %{perl_vendorarch}/auto/String/Approx/Approx.so
60 %{_mandir}/man3/*
This page took 0.090014 seconds and 4 git commands to generate.