perl-Text-WrapI18N-vl.spec 2.0 KB

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