]> git.pld-linux.org Git - packages/perl-Text-Soundex.git/commitdiff
- new auto/th/perl-Text-Soundex-3.04-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 13 Sep 2015 09:44:35 +0000 (11:44 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 13 Sep 2015 09:44:35 +0000 (11:44 +0200)
perl-Text-Soundex.spec [new file with mode: 0644]

diff --git a/perl-Text-Soundex.spec b/perl-Text-Soundex.spec
new file mode 100644 (file)
index 0000000..e4309b1
--- /dev/null
@@ -0,0 +1,89 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Text
+%define                pnam    Soundex
+%include       /usr/lib/rpm/macros.perl
+Summary:       Text::Soundex - Implementation of the soundex algorithm
+Summary(pl.UTF-8):     Text::Soundex - implementacja algorytmu soundex
+Name:          perl-Text-Soundex
+Version:       3.04
+Release:       1
+License:       free (see COPYING)
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 4630d47b42b92470df7b447984a71446
+URL:           http://search.cpan.org/dist/Text-Soundex/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Soundex is a phonetic algorithm for indexing names by sound, as
+pronounced in English. The goal is for names with the same
+pronunciation to be encoded to the same representation so that they
+can be matched despite minor differences in spelling. Soundex is the
+most widely known of all phonetic algorithms and is often used
+(incorrectly) as a synonym for "phonetic algorithm". Improvements to
+Soundex are the basis for many modern phonetic algorithms. (Wikipedia,
+2007)
+
+This module implements the original soundex algorithm developed by
+Robert Russell and Margaret Odell, patented in 1918 and 1922, as well
+as a variation called "American Soundex" used for US census data, and
+current maintained by the National Archives and Records Administration
+(NARA).
+
+The soundex algorithm may be recognized from Donald Knuth's
+The Art of Computer Programming. The algorithm described by
+Knuth is the NARA algorithm.
+
+%description -l pl.UTF-8
+Soundex to algorytm fonetyczny do indeksowania nazw według brzmienia w
+języku angielskim. Celem jest, aby nazwy o tej samej wymowie miały
+taką samą reprezentację, przez co mogą być dopasowane niezależnie od
+niewielkich różnic w pisowni. Soundex to najbardziej znany algorytm
+fonetyczny, zwykle używany (niewłaściwie) jako synonim algorytmu
+fonetycznego. (Wikipedia angielska, 2007)
+
+Ten moduł implementuje oryginalny algorytm soundex opracowany przez
+Roberta Russella oraz Margaret Odell, opatentowany w 1918 i 1922, oraz
+wariację o nazwie "soundex amerykański" używany dla danych ludności w
+USA, obecnie zarządzany przez NARA (National Archives and Records
+Administration).
+
+Algorytm soundex można znaleźć w "The Art of Computer Programming"
+Donalda Knutha. Algorytm opisany przez Knutha to algorytm NARA.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+# extract copyright information
+%{__sed} -n -e '3,12p' Soundex.pm > COPYING
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING Changes
+%{perl_vendorarch}/Text/Soundex.pm
+%dir %{perl_vendorarch}/auto/Text/Soundex
+%attr(755,root,root) %{perl_vendorarch}/auto/Text/Soundex/Soundex.so
+%{_mandir}/man3/Text::Soundex.3pm*
This page took 0.117084 seconds and 4 git commands to generate.