perl-Text-CharWidth-vl.spec 2.3 KB

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