perl-Unicode-Map-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
  2. Name: perl-Unicode-Map
  3. Version: 0.112
  4. Release: 9%{?_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. * Sat Apr 23 2011 IWAI, Masaharu <iwai@alib.jp> 0.112-9vl6
  52. - build with perl 5.12.3
  53. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-8vl5
  54. - rebuilt with perl-5.10.0
  55. - appiled new versioning policy
  56. * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl2
  57. - changed Group to Development/Libraries
  58. * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl1
  59. - initial build for Vine Linux
  60. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7
  61. - rebuild for FC5
  62. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  63. - rebuilt
  64. * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5
  65. - Reduce directory ownership bloat.
  66. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.4
  67. - Install into vendor dirs.
  68. - Specfile cleanup.
  69. * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.3
  70. - Regenerate %%install section with cpanflute2.
  71. - Improve %%description.
  72. * Sun May 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.2
  73. - Own more dirs.
  74. * Fri Mar 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.1
  75. - Update to current Fedora guidelines.
  76. * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.112-1.fedora.1
  77. - First Fedora release.