perl-Unicode-Map-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
  2. Name: perl-Unicode-Map
  3. Version: 0.112
  4. Release: 10%{?_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(ExtUtils::MakeMaker)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. This module converts strings from and to 2-byte Unicode UCS2
  17. format. All mappings happen via 2 byte UTF16 encodings, not via 1 byte
  18. UTF8 encoding. To convert between UTF8 and UTF16 use Unicode::String.
  19. For historical reasons this module coexists with Unicode::Map8.
  20. Please use Unicode::Map8 unless you need to care for >1 byte character
  21. sets, e.g. chinese GB2312. Anyway, if you stick to the basic
  22. functionality (see documentation) you can use both modules
  23. equivalently.
  24. Practically this module will disappear from earth sooner or later as
  25. Unicode mapping support needs somehow to get into perl's core. If you
  26. like to work on this field please don't hesitate contacting Gisle Aas
  27. and check out the mailing list perl-unicode!
  28. %prep
  29. %setup -q -n Unicode-Map-%{version}
  30. %build
  31. CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install \
  36. PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \
  37. INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
  38. find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \
  39. -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
  40. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  41. chmod -R u+w $RPM_BUILD_ROOT/*
  42. %check || :
  43. make test
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root,-)
  48. %doc COPYING Changes README
  49. %{_bindir}/m*
  50. %{perl_vendorarch}/auto/Unicode
  51. %{perl_vendorarch}/Unicode
  52. %{_mandir}/man[13]/*.[13]*
  53. %changelog
  54. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.112-10
  55. - rebuilt with perl 5.16.3
  56. - added Vendor and Distribution tag
  57. * Sat Apr 23 2011 IWAI, Masaharu <iwai@alib.jp> 0.112-9vl6
  58. - build with perl 5.12.3
  59. * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-8vl5
  60. - rebuilt with perl-5.10.0
  61. - appiled new versioning policy
  62. * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl2
  63. - changed Group to Development/Libraries
  64. * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl1
  65. - initial build for Vine Linux
  66. * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7
  67. - rebuild for FC5
  68. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  69. - rebuilt
  70. * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5
  71. - Reduce directory ownership bloat.
  72. * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.4
  73. - Install into vendor dirs.
  74. - Specfile cleanup.
  75. * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.3
  76. - Regenerate %%install section with cpanflute2.
  77. - Improve %%description.
  78. * Sun May 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.2
  79. - Own more dirs.
  80. * Fri Mar 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.1
  81. - Update to current Fedora guidelines.
  82. * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.112-1.fedora.1
  83. - First Fedora release.