LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Device-KeyStroke-Mobile.spec of Package perl-Device-KeyStroke-Mobile (Project devel:languages:perl:CPAN-D)

#
# spec file for package perl-Device-KeyStroke-Mobile
#
# Copyright (c) 2012 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-Device-KeyStroke-Mobile
Version:        0.01
Release:        0
%define cpan_name Device-KeyStroke-Mobile
Summary:        Calculate key stroke times with mobile phone keypads
License:        CHECK(GPL-1.0+ or Artistic-1.0)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Device-KeyStroke-Mobile/
Source:         http://www.cpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
#BuildRequires: perl(Device::KeyStroke::Mobile)
%{perl_requires}

%description
Device::KeyStroke::Mobile is a module to calculate how many times you need
to type keypads in mobile phone to build a word. For example, when you type
'example.com' with a mobile keypad,

  e: 3 3
  x: 9 9
  a: 2
  m: 6
  p: 7
  l: 5 5 5
  e: 3 3
  .: *
  c: 2 2 2
  o: 6 6 6 >
  m: 6

you need to type keys *21* times.

This module would be useful when you conider taking a new domain name which
is easy to type with mobile phones.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README

%changelog