1 | %define pkgname Term-Encoding |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.02 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | Summary: Detect encoding of the current terminal |
---|
8 | Summary(ja): 現在の端末のエンコーディングを検出する |
---|
9 | |
---|
10 | License: Artistic or GPL |
---|
11 | Group: Development/Libraries |
---|
12 | URL: http://search.cpan.org/~miyagawa/Term-Encoding/ |
---|
13 | |
---|
14 | Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{pkgname}-%{version}.tar.gz |
---|
15 | |
---|
16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | Packager: yasumichi |
---|
24 | |
---|
25 | %description |
---|
26 | Term::Encoding is a simple module to detect an encoding the current terminal |
---|
27 | expects, in various ways. |
---|
28 | |
---|
29 | %description -l ja |
---|
30 | Term::Encoding は、さまざまな方法で現在の端末のエンコーディングを検出する |
---|
31 | 簡単なモジュールです。 |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q -n Term-Encoding-%{version} |
---|
35 | |
---|
36 | %build |
---|
37 | perl Makefile.PL INSTALLDIRS=vendor |
---|
38 | make %{?_smp_mflags} |
---|
39 | |
---|
40 | %install |
---|
41 | rm -rf $RPM_BUILD_ROOT |
---|
42 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
43 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' |
---|
44 | find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
45 | %{_fixperms} $RPM_BUILD_ROOT |
---|
46 | |
---|
47 | %clean |
---|
48 | rm -rf $RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %check |
---|
51 | make test |
---|
52 | |
---|
53 | |
---|
54 | %files |
---|
55 | %defattr(-,root,root) |
---|
56 | %doc Changes |
---|
57 | %{perl_vendorlib}/Term/* |
---|
58 | %{_mandir}/man3/* |
---|
59 | |
---|
60 | |
---|
61 | %changelog |
---|
62 | * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.02-2 |
---|
63 | - rebuilt with perl 5.16.3 |
---|
64 | - installed module to vendor_perl |
---|
65 | - added BuildArch: noarch |
---|
66 | - added BR: perl(ExtUtils::MakeMaker) |
---|
67 | - added URL tag |
---|
68 | |
---|
69 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.02-1 |
---|
70 | - initial build for Vine Linux |
---|