perl-Text-WrapI18N-vl.spec 2.3 KB

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