1 | %define pkgname Term-Encoding |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 0.02 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{pkgname}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | Summary: Detect encoding of the current terminal |
---|
17 | Summary(ja): 現在の端末のエンコーディングを検出する |
---|
18 | |
---|
19 | # Dependency |
---|
20 | Requires: perl |
---|
21 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
22 | |
---|
23 | BuildRequires: perl |
---|
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-0.02 |
---|
35 | |
---|
36 | %build |
---|
37 | perl Makefile.PL |
---|
38 | %{__make} |
---|
39 | |
---|
40 | %install |
---|
41 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
42 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
43 | |
---|
44 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
45 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
46 | grep -v ^%{_mandir} | |
---|
47 | grep -v perllocal.pod | |
---|
48 | grep -v "\.packlist" > %{name}.files |
---|
49 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
50 | echo "ERROR: EMPTY FILE LIST" |
---|
51 | exit -1 |
---|
52 | fi |
---|
53 | |
---|
54 | # remove unnecessary files. |
---|
55 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
56 | %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Term/Encoding/.packlist |
---|
57 | |
---|
58 | |
---|
59 | %clean |
---|
60 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
61 | |
---|
62 | |
---|
63 | %files -f %{name}.files |
---|
64 | %defattr(-,root,root) |
---|
65 | %doc Changes |
---|
66 | %{_mandir}/*/* |
---|
67 | |
---|
68 | |
---|
69 | %changelog |
---|
70 | * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.02-1 |
---|
71 | - initial build for Vine Linux |
---|