summaryrefslogtreecommitdiff
path: root/perl-Lingua-JA-Numbers.spec
blob: b2de57314f2fa03e04b67d8ca7720c6bd57b6a17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Conditional build:
%bcond_without	tests		# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define	pdir	Lingua
%define	pnam	JA-Numbers
Summary:	Lingua::JA::Numbers - converts numeric values into their Japanese string equivalents and vice versa
Summary(pl):	Lingua::JA::Numbers - zamiana wartości liczbowych na japońskie odpowiedniki i odwrotnie
Name:		perl-Lingua-JA-Numbers
Version:	0.04
Release:	1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-authors/id/D/DA/DANKOGAI/Lingua-JA-Numbers-%{version}.tar.gz
# Source0-md5:	de7398b3207d0e97fdb48cb1b43f371d
URL:		http://search.cpan.org/dist/Lingua-JA-Numbers/
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This module converts Japanese text in UTF-8 (or romaji in ASCII) to
number, AND vice versa.

Do not be confused with Lingua::JA::Number by Mike Schilli. This
module is far more comprehensive. As of 0.03, it even does its
to_string() upon request.

%description -l pl
Ten moduł zamienia japoński tekst w UTF-8 (lub romaji w ASCII) na
liczby i odwrotnie.

Nie należy mylić go z Lingua::JA::Number autorstwa Mike'a Schilli. Ten
moduł jest dużo bardziej obszerny. Od wersji 0.03 nawet wywołuje na
żądanie to_string().

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

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

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes README
%dir %{perl_vendorlib}/Lingua/JA
%{perl_vendorlib}/Lingua/JA/*.pm
%{_mandir}/man3/*