]> git.pld-linux.org Git - packages/perl-String-Similarity.git/blame - perl-String-Similarity.spec
- macros for perl autodeps
[packages/perl-String-Similarity.git] / perl-String-Similarity.spec
CommitLineData
d5074a2e 1#
2# Conditional build:
287a8b55 3%bcond_without tests # do not perform "make test"
4#
77802474 5%define pdir String
6%define pnam Similarity
d5074a2e 7Summary: String::Similarity - calculate the similarity of two strings
1f9981fa 8Summary(pl.UTF-8): String::Similarity - obliczanie podobieństwa dwóch łańcuchów
d5074a2e 9Name: perl-String-Similarity
9e233dc9 10Version: 1.04
86231df8 11Release: 12
c17d2e2b 12# C files say GPL v2+
d5074a2e 13License: GPL v2
14Group: Development/Languages/Perl
77ea68e2 15Source0: http://www.cpan.org/modules/by-module/String/%{pdir}-%{pnam}-%{version}.tar.gz
9e233dc9 16# Source0-md5: 84936c1d393e92680a5d58039dcb9fd9
e0c87b8b 17URL: https://metacpan.org/release/String-Similarity
bbaf0c84 18%{?with_tests:BuildRequires: perl-Encode}
161cb8e8 19BuildRequires: perl-devel >= 1:5.8.0
63ef176a 20BuildRequires: rpm-perlprov >= 4.1-13
e0c87b8b 21BuildRequires: rpmbuild(macros) >= 1.745
d5074a2e 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The 'similarity'-function calculates the similarity index of its two
1693475b
JB
26arguments. A value of '0' means that the strings are entirely
27different. A value of '1' means that the strings are identical.
28Everything else lies between 0 and 1 and describes the amount of
29similarity between the strings.
d5074a2e 30
20a32bb1
JR
31%description -l pl.UTF-8
32Funkcja similarity oblicza indeks podobieństwa pomiędzy dwoma
33parametrami. Wartość '0' oznacza, że łańcuchy są całkowicie różne.
34Wartość '1' oznacza, że są identyczne. Wszystko inne zawiera się
35między 0 a 1 i opisuje stopień podobieństwa pomiędzy łańcuchami.
d5074a2e 36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
63ef176a 41%{__perl} Makefile.PL \
3dcdfe56 42 INSTALLDIRS=vendor
287a8b55 43%{__make} \
1cf83ad4 44 CC="%{__cc}" \
287a8b55 45 OPTIMIZE="%{rpmcflags}"
1693475b 46
287a8b55 47%{?with_tests:%{__make} test}
d5074a2e 48
49%install
50rm -rf $RPM_BUILD_ROOT
51
287a8b55 52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
d5074a2e 54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
c74c59d8 60%{perl_vendorarch}/String/Similarity.pm
77ea68e2 61%dir %{perl_vendorarch}/auto/String/Similarity
c74c59d8 62%attr(755,root,root) %{perl_vendorarch}/auto/String/Similarity/Similarity.so
c74c59d8 63%{_mandir}/man3/String::Similarity.3pm*
This page took 0.062349 seconds and 4 git commands to generate.