1 | %include %{_rpmconfigdir}/macros.perl |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-Text-WrapI18N |
---|
5 | Version: 0.06 |
---|
6 | Release: 1%{?_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 | Requires: perl |
---|
22 | Requires: perl-Text-CharWidth |
---|
23 | |
---|
24 | BuildRequires: perl |
---|
25 | BuildRequires: perl-Text-CharWidth |
---|
26 | |
---|
27 | %description |
---|
28 | This is a module which intends to substitute Text::Wrap, |
---|
29 | which supports internationalized texts including: |
---|
30 | - multibyte encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, and Big5, |
---|
31 | - fullwidth characters like east Asian characters which appear in |
---|
32 | UTF-8, EUC-JP, EUC-KR, GB2312, Big5, and so on, |
---|
33 | - combining characters like diacritical marks which appear in UTF-8, |
---|
34 | ISO-8859-11 (aka TIS-620), and so on, and |
---|
35 | - languages which don't use whitespaces between words, like Chinese |
---|
36 | and Japanese. |
---|
37 | |
---|
38 | #%%description -l ja |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q -n Text-WrapI18N-%{version} |
---|
42 | |
---|
43 | %build |
---|
44 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" |
---|
45 | %{__make} |
---|
46 | |
---|
47 | %check |
---|
48 | %{__make} test |
---|
49 | |
---|
50 | %install |
---|
51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
52 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
53 | |
---|
54 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
55 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
56 | grep -v ^%{_mandir} | |
---|
57 | grep -v perllocal.pod | |
---|
58 | grep -v "\.packlist" > %{name}.files |
---|
59 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
60 | echo "ERROR: EMPTY FILE LIST" |
---|
61 | exit -1 |
---|
62 | fi |
---|
63 | |
---|
64 | # remove unnecessary files. |
---|
65 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod |
---|
66 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/WrapI18N/.packlist |
---|
67 | |
---|
68 | %clean |
---|
69 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
70 | |
---|
71 | %files -f %{name}.files |
---|
72 | %defattr(-,root,root) |
---|
73 | %doc Changes README |
---|
74 | %{_mandir}/*/* |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Sun Dec 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-1 |
---|
78 | - initial build for Vine Linux |
---|