perl-Unicode-Map8-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
  2. Name: perl-Unicode-Map8
  3. Version: 0.13
  4. Release: 1%{?_dist_release}
  5. Summary: Mapping table between 8-bit chars and Unicode for Perl
  6. Group: Development/Libraries
  7. License: GPL or Artistic
  8. URL: http://search.cpan.org/dist/Unicode-Map8/
  9. Source0: http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-Map8-%{version}.tar.gz
  10. Patch0: perl-Unicode-Map8-0.12-declaration.patch
  11. Patch1: perl-Unicode-Map8-0.12-type.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: perl-Unicode-String
  14. # Does not work on x86_64, see bug #182514
  15. #ExcludeArch: x86_64
  16. %description
  17. The Unicode::Map8 class implements efficient mapping tables between
  18. 8-bit character sets and 16 bit character sets like Unicode. About
  19. 170 different mapping tables between various known character sets and
  20. Unicode is distributed with this package. The source of these tables
  21. is the vendor mapping tables provided by Unicode, Inc. and the code
  22. tables in RFC 1345. New maps can easily be installed.
  23. %prep
  24. %setup -q -n Unicode-Map8-%{version}
  25. %patch0 -p0 -b .declaration
  26. %patch1 -p0 -b .type
  27. %build
  28. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
  29. make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. make install \
  33. PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
  34. INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
  35. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  36. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  37. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  38. chmod -R u+w $RPM_BUILD_ROOT/*
  39. %check || :
  40. make test
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc Changes README
  46. %{_bindir}/umap
  47. %{perl_vendorarch}/auto/Unicode
  48. %{perl_vendorarch}/Unicode
  49. %{_mandir}/man[13]/*.[13]*
  50. %changelog
  51. * Sat Apr 23 2011 IWAI, Masaharu <iwai@alib.jp> 0.13-1
  52. - new upstream release
  53. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-9vl5
  54. - rebuilt with perl-5.10.0
  55. - appiled new versioning policy
  56. * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-8vl2
  57. - changed Group to Development/Libraries
  58. - added Patch0 and 1 from Fedora
  59. * Sun Oct 29 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.12-11
  60. - actually apply the patches
  61. * Sat Oct 28 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.12-10
  62. - add patches for x86_64
  63. * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-8vl1
  64. - initial build for Vine Linux
  65. * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-8
  66. - ExcludeArch x86_64
  67. * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-7
  68. - disable unit tests (map8.t fails on x86_64)
  69. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-6
  70. - rebuild for FC5
  71. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  72. - rebuilt
  73. * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.4
  74. - Reduce directory ownership bloat.
  75. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.3
  76. - Install into vendor dirs.
  77. - Specfile cleanup.
  78. * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.2
  79. - Regenerate %%install section with cpanflute2.
  80. * Wed May 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.1
  81. - Update to current Fedora guidelines.
  82. * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.12-1.fedora.1
  83. - First Fedora release.