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

Revision 8802, 2.3 KB checked in by yasumichi, 6 years ago (diff)

rebuild with perl-5.16.3

Line 
1%include %{_rpmconfigdir}/macros.perl
2
3# Basic Information
4Name:           perl-Text-WrapI18N
5Version:        0.06
6Release:        3%{?_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# 以下に依存関係を記述してください。
21BuildArch:      noarch
22Requires:       perl
23Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
24Requires:       perl-Text-CharWidth
25
26BuildRequires:  perl
27BuildRequires:  perl-Text-CharWidth
28
29%description
30This is a module which intends to substitute Text::Wrap,
31which 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
46CFLAGS="$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
56find $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
61if [ "$(cat %{name}.files)X" = "X" ] ; then
62    echo "ERROR: EMPTY FILE LIST"
63    exit -1
64fi
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* Sun Jul 13 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-3
80- rebuild with perl-5.16.3
81
82* Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-2
83- rebuild with perl-5.12.3 (fixed [VineSeed:22926])
84
85* Sun Dec 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.06-1
86- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.