[4918] | 1 | %define pkgname Term-Encoding |
---|
| 2 | |
---|
| 3 | # Basic Information |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 0.02 |
---|
[9118] | 6 | Release: 2%{?_dist_release} |
---|
| 7 | Summary: Detect encoding of the current terminal |
---|
| 8 | Summary(ja): 現在の端末のエンコーディングを検出する |
---|
| 9 | |
---|
[4918] | 10 | License: Artistic or GPL |
---|
| 11 | Group: Development/Libraries |
---|
[9118] | 12 | URL: http://search.cpan.org/~miyagawa/Term-Encoding/ |
---|
| 13 | |
---|
[4918] | 14 | Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{pkgname}-%{version}.tar.gz |
---|
[9118] | 15 | |
---|
[4918] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9118] | 17 | BuildArch: noarch |
---|
| 18 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 19 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[4918] | 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 |
---|
[9118] | 34 | %setup -q -n Term-Encoding-%{version} |
---|
[4918] | 35 | |
---|
| 36 | %build |
---|
[9118] | 37 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 38 | make %{?_smp_mflags} |
---|
[4918] | 39 | |
---|
| 40 | %install |
---|
[9118] | 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 |
---|
[4918] | 46 | |
---|
| 47 | %clean |
---|
[9118] | 48 | rm -rf $RPM_BUILD_ROOT |
---|
[4918] | 49 | |
---|
[9118] | 50 | %check |
---|
| 51 | make test |
---|
[4918] | 52 | |
---|
[9118] | 53 | |
---|
| 54 | %files |
---|
[4918] | 55 | %defattr(-,root,root) |
---|
| 56 | %doc Changes |
---|
[9118] | 57 | %{perl_vendorlib}/Term/* |
---|
| 58 | %{_mandir}/man3/* |
---|
[4918] | 59 | |
---|
| 60 | |
---|
| 61 | %changelog |
---|
[9118] | 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 | |
---|
[4918] | 69 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.02-1 |
---|
| 70 | - initial build for Vine Linux |
---|