perl-Unicode-Map8-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
  2. Name: perl-Unicode-Map8
  3. Version: 0.12
  4. Release: 9%{?_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. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-9vl5
  52. - rebuilt with perl-5.10.0
  53. - appiled new versioning policy
  54. * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-8vl2
  55. - changed Group to Development/Libraries
  56. - added Patch0 and 1 from Fedora
  57. * Sun Oct 29 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.12-11
  58. - actually apply the patches
  59. * Sat Oct 28 2006 Aurelien Bompard <abompard@fedoraproject.org> 0.12-10
  60. - add patches for x86_64
  61. * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.12-8vl1
  62. - initial build for Vine Linux
  63. * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-8
  64. - ExcludeArch x86_64
  65. * Wed Feb 22 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-7
  66. - disable unit tests (map8.t fails on x86_64)
  67. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.12-6
  68. - rebuild for FC5
  69. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  70. - rebuilt
  71. * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.4
  72. - Reduce directory ownership bloat.
  73. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.3
  74. - Install into vendor dirs.
  75. - Specfile cleanup.
  76. * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.2
  77. - Regenerate %%install section with cpanflute2.
  78. * Wed May 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.12-0.fdr.1
  79. - Update to current Fedora guidelines.
  80. * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.12-1.fedora.1
  81. - First Fedora release.