perl-Text-CharWidth-vl.spec 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %include %{_rpmconfigdir}/macros.perl
  2. # Basic Information
  3. Name: perl-Text-CharWidth
  4. Version: 0.04
  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-CharWidth-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: yasumichi
  13. Summary: Text-CharWidth module for perl
  14. Summary(ja): Perl の Text-CharWidth モジュール
  15. # Dependency
  16. # 以下に依存関係を記述してください。
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. Requires: glibc
  20. BuildRequires: perl
  21. BuildRequires: glibc-devel
  22. BuildRequires: glibc-headers
  23. %description
  24. This is a module to provide equivalent feature as wcwidth(3) and
  25. wcswidth(3). This also provides mblen(3) equivalent subroutine.
  26. mbwidth() and mbswidth() are provided subroutines corresponding
  27. wcwidth(3) and wcswidth(3) in C language. The prefix "mb" expresses
  28. that they handles "multibyte character" in C meaning, i.e., character
  29. encoding specified by LC_CTYPE locale.
  30. %description -l ja
  31. このモジュールは、wcwidth(3)、wcswidth(3) および mblen(3) と同等の機能を提供
  32. します。
  33. mbwidth() および mbswidth() は、C言語の wcwidth(3) および wcswidth(3) に対応
  34. するサブルーチンとして提供されます。接頭辞「mb」は、Cでは、「マルチバイト文
  35. 字」を扱うことを意味します。文字エンコーディングは、LC_CTYPE によって指定し
  36. ます。
  37. %prep
  38. %setup -q -n Text-CharWidth-%{version}
  39. %build
  40. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  41. %{__make}
  42. %check
  43. %{__make} test
  44. %install
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  47. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  48. sed "s@^$RPM_BUILD_ROOT@@g" |
  49. grep -v ^%{_mandir} |
  50. grep -v perllocal.pod |
  51. grep -v "\.packlist" > %{name}.files
  52. if [ "$(cat %{name}.files)X" = "X" ] ; then
  53. echo "ERROR: EMPTY FILE LIST"
  54. exit -1
  55. fi
  56. # remove unnecessary files.
  57. %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod
  58. %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/CharWidth/.packlist
  59. %clean
  60. %{__rm} -rf ${RPM_BUILD_ROOT}
  61. %files -f %{name}.files
  62. %defattr(-,root,root)
  63. %doc Changes README
  64. %dir %{perl_vendorarch}/Text
  65. %dir %{perl_vendorarch}/auto/Text
  66. %dir %{perl_vendorarch}/auto/Text/CharWidth
  67. %{_mandir}/*/*
  68. %changelog
  69. * Sun Jul 13 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-3
  70. - rebuild with perl-5.16.3
  71. * Wed Mar 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-2
  72. - Fixed [VineSeed:22926]
  73. * Sun Dec 26 2010 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.04-1
  74. - initial build for Vine Linux