source: projects/specs/trunk/p/perl-Text-WrapI18N/perl-Text-WrapI18N-vl.spec @ 2396

Revision 2396, 2.0 KB checked in by yasumichi, 13 years ago (diff)

new package perl-Text-WrapI18N

Line 
1%include %{_rpmconfigdir}/macros.perl
2
3# Basic Information
4Name:           perl-Text-WrapI18N
5Version:        0.06
6Release:        1%{?_dist_release}
7License:        Artistic/GPL
8Group:          Development/Libraries
9Source0:        http://search.cpan.org/CPAN/authors/id/K/KU/KUBOTA/Text-WrapI18N-%{version}.tar.gz
10BuildRoot: %{_tmppath}/%{name}-%{version}-root
11
12Vendor:         Project Vine
13Distribution:   Vine Linux
14Packager:       yasumichi
15
16Summary:        Text-WrapI18N module for perl
17Summary(ja):    perl の Text-WrapI18N モジュール
18
19# Dependency
20# 以下に依存関係を記述してください。
21Requires:       perl
22Requires:       perl-Text-CharWidth
23
24BuildRequires:  perl
25BuildRequires:  perl-Text-CharWidth
26
27%description
28This is a module which intends to substitute Text::Wrap,
29which 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
44CFLAGS="$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
54find $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
59if [ "$(cat %{name}.files)X" = "X" ] ; then
60    echo "ERROR: EMPTY FILE LIST"
61    exit -1
62fi
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
Note: See TracBrowser for help on using the repository browser.