Files
perl-Text-Phonetic/perl-Text-Phonetic.spec

81 lines
2.6 KiB
RPMSpec

#
# spec file for package perl-Text-Phonetic
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-Text-Phonetic
Version: 2.03
Release: 1
License: GPL+ or Artistic
%define cpan_name Text-Phonetic
Summary: A base class for phonetic algorithms
Url: http://search.cpan.org/dist/Text-Phonetic/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/M/MA/MAROS/Text-Phonetic-%{version}.tar.gz
# Source: Text::Phonetic
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage)
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Find)
BuildRequires: perl(Moose) >= 0.92
BuildRequires: perl(Test::Most)
BuildRequires: perl(Text::Soundex) >= 3.03
BuildRequires: perl(Text::Unidecode)
Requires: perl(Module::Find)
Requires: perl(Moose) >= 0.92
Requires: perl(Text::Soundex) >= 3.03
Requires: perl(Text::Unidecode)
Recommends: perl(Text::DoubleMetaphone)
Recommends: perl(Text::Metaphone)
%{perl_requires}
%description
This module provides an easy and convinient way to encode names with various
phonetic algorithms. It acts as a wrapper arround other phonetic algorithm
modules like Text::Metaphone, Text::DoubleMetaphone, Text::Soundex and also
implements some other algorithms such as Text::Phonetic::DaitchMokotoff,
Text::Phonetic::Koeln, Text::Phonetic::Phonem and Text::Phonetic::Phonix.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
export AUTOMATED_TESTING=1
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
export AUTOMATED_TESTING=1
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README README.mkdn Todo
%changelog