91 lines
3.4 KiB
RPMSpec
91 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package perl-Number-Phone-JP
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Number-Phone-JP
|
|
Name: perl-Number-Phone-JP
|
|
Version: 0.201.905.210
|
|
Release: 0
|
|
%define cpan_version 0.20190521
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Validate Japanese phone numbers
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/T/TA/TANIGUCHI/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Number::Phone)
|
|
BuildRequires: perl(Test::Requires)
|
|
BuildRequires: perl(UNIVERSAL::require)
|
|
Requires: perl(Number::Phone)
|
|
Requires: perl(Test::Requires)
|
|
Requires: perl(UNIVERSAL::require)
|
|
Provides: perl(Number::Phone::JP) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Class1) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Class2) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Fmc) = 0.201.201.50
|
|
Provides: perl(Number::Phone::JP::Table::Freedial) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Home) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Ipphone) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::M2m) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Mobile) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Pager) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Phs) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Q2) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::United) = %{version}
|
|
Provides: perl(Number::Phone::JP::Table::Upt) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Number::Phone::JP is a simple module to validate Japanese phone number
|
|
formats. The Japanese phone numbers are regulated by Ministry of Internal
|
|
Affairs and Communications of Japan. You can validate what a target number
|
|
is valid from this regulation point of view.
|
|
|
|
There are many categories for type of telephones in Japan. This module is
|
|
able to be used narrowed down to the type of phones.
|
|
|
|
This module only validates what a phone number agrees on the regulation.
|
|
Therefore, it does *NOT* validate what a phone number actually exists.
|
|
|
|
This validation needs only an area (or category) prefix and behind it. The
|
|
separator of number behind the prefix is ignored.
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|