perl-Unicode-Map-vl.spec 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
  2. Name: perl-Unicode-Map
  3. Version: 0.112
  4. Release: 8%{?_dist_release}
  5. Summary: Perl module for mapping charsets from and to utf16 unicode
  6. Group: Development/Libraries
  7. License: GPL or Artistic
  8. URL: http://search.cpan.org/dist/Unicode-Map/
  9. Source0: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: perl
  12. %description
  13. This module converts strings from and to 2-byte Unicode UCS2
  14. format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte
  15. UTF8 encoding. To convert between UTF8 and UTF16 use Unicode::String.
  16. For historical reasons this module coexists with Unicode::Map8.
  17. Please use Unicode::Map8 unless you need to care for >1 byte character
  18. sets, e.g. chinese GB2312. Anyway, if you stick to the basic
  19. functionality (see documentation) you can use both modules
  20. equivalently.
  21. Practically this module will disappear from earth sooner or later as
  22. Unicode mapping support needs somehow to get into perl's core. If you
  23. like to work on this field please don't hesitate contacting Gisle Aas
  24. and check out the mailing list perl-unicode!
  25. %prep
  26. %setup -q -n Unicode-Map-%{version}
  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 COPYING Changes README
  46. %{_bindir}/m*
  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.112-8vl5
  52. - rebuilt with perl-5.10.0
  53. - appiled new versioning policy
  54. * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl2
  55. - changed Group to Development/Libraries
  56. * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl1
  57. - initial build for Vine Linux
  58. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7
  59. - rebuild for FC5
  60. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  61. - rebuilt
  62. * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5
  63. - Reduce directory ownership bloat.
  64. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.4
  65. - Install into vendor dirs.
  66. - Specfile cleanup.
  67. * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.3
  68. - Regenerate %%install section with cpanflute2.
  69. - Improve %%description.
  70. * Sun May 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.2
  71. - Own more dirs.
  72. * Fri Mar 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.1
  73. - Update to current Fedora guidelines.
  74. * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.112-1.fedora.1
  75. - First Fedora release.