1 | %include %{_rpmconfigdir}/macros.perl |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-Text-WrapI18N |
---|
5 | Version: 0.06 |
---|
6 | Release: 2%{?_dist_release} |
---|
7 | License: Artistic/GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-WrapI18N-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: yasumichi |
---|
15 | |
---|
16 | Summary: Text-WrapI18N module for perl |
---|
17 | Summary(ja): perl の Text-WrapI18N モジュール |
---|
18 | |
---|
19 | # Dependency |
---|
20 | # 以下に依存関係を記述してください。 |
---|
21 | BuildArch: noarch |
---|
22 | Requires: perl |
---|
23 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
24 | Requires: perl-Text-CharWidth |
---|
25 | |
---|
26 | BuildRequires: perl |
---|
27 | BuildRequires: perl-Text-CharWidth |
---|
28 | |
---|
29 | %description |
---|
30 | This is a module which intends to substitute Text::Wrap, |
---|
31 | which supports internationalized texts including: |
---|
32 | - multibyte encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, and Big5, |
---|
33 | - fullwidth characters like east Asian characters which appear in |
---|
34 | UTF-8, EUC-JP, EUC-KR, GB2312, Big5, and so on, |
---|
35 | - combining characters like diacritical marks which appear in UTF-8, |
---|
36 | ISO-8859-11 (aka TIS-620), and so on, and |
---|
37 | - languages which don't use whitespaces between words, like Chinese |
---|
38 | and Japanese. |
---|
39 | |
---|
40 | #%%description -l ja |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n Text-WrapI18N-%{version} |
---|
44 | |
---|
45 | %build |
---|
46 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" |
---|
47 | %{__make} |
---|
48 | |
---|
49 | %check |
---|
50 | %{__make} test |
---|
51 | |
---|
52 | %install |
---|
53 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
54 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
55 | |
---|
56 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
57 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
58 | grep -v ^%{_mandir} | |
---|
59 | grep -v perllocal.pod | |
---|
60 | grep -v "\.packlist" > %{name}.files |
---|
61 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
62 | echo "ERROR: EMPTY FILE LIST" |
---|
63 | exit -1 |
---|
64 | fi |
---|
65 | |
---|
66 | # remove unnecessary files. |
---|
67 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod |
---|
68 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/WrapI18N/.packlist |
---|
69 | |
---|
70 | %clean |
---|
71 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
72 | |
---|
73 | %files -f %{name}.files |
---|
74 | %defattr(-,root,root) |
---|
75 | %doc Changes README |
---|
76 | %{_mandir}/*/* |
---|
77 | |
---|
78 | %changelog |
---|
79 | * Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-2 |
---|
80 | - rebuild with perl-5.12.3 (fixed [VineSeed:22926]) |
---|
81 | |
---|
82 | * Sun Dec 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-1 |
---|
83 | - initial build for Vine Linux |
---|