[521] | 1 | %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)} |
---|
| 2 | |
---|
| 3 | Name: perl-Unicode-Map |
---|
| 4 | Version: 0.112 |
---|
[3670] | 5 | Release: 9%{?_dist_release} |
---|
[521] | 6 | Summary: Perl module for mapping charsets from and to utf16 unicode |
---|
| 7 | |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: GPL or Artistic |
---|
| 10 | URL: http://search.cpan.org/dist/Unicode-Map/ |
---|
| 11 | Source0: http://www.cpan.org/authors/id/M/MS/MSCHWARTZ/Unicode-Map-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildRequires: perl |
---|
| 14 | |
---|
| 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 | |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n Unicode-Map-%{version} |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor |
---|
| 35 | make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | make install \ |
---|
| 40 | PERL_INSTALL_ROOT=$RPM_BUILD_ROOT \ |
---|
| 41 | INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib} |
---|
| 42 | find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ |
---|
| 43 | -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' |
---|
| 44 | find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' |
---|
| 45 | chmod -R u+w $RPM_BUILD_ROOT/* |
---|
| 46 | |
---|
| 47 | %check || : |
---|
| 48 | make test |
---|
| 49 | |
---|
| 50 | %clean |
---|
| 51 | rm -rf $RPM_BUILD_ROOT |
---|
| 52 | |
---|
| 53 | %files |
---|
| 54 | %defattr(-,root,root,-) |
---|
| 55 | %doc COPYING Changes README |
---|
| 56 | %{_bindir}/m* |
---|
| 57 | %{perl_vendorarch}/auto/Unicode |
---|
| 58 | %{perl_vendorarch}/Unicode |
---|
| 59 | %{_mandir}/man[13]/*.[13]* |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %changelog |
---|
[3670] | 63 | * Sat Apr 23 2011 IWAI, Masaharu <iwai@alib.jp> 0.112-9vl6 |
---|
| 64 | - build with perl 5.12.3 |
---|
| 65 | |
---|
[521] | 66 | * Mon Apr 28 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-8vl5 |
---|
| 67 | - rebuilt with perl-5.10.0 |
---|
| 68 | - appiled new versioning policy |
---|
| 69 | |
---|
| 70 | * Thu Aug 9 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl2 |
---|
| 71 | - changed Group to Development/Libraries |
---|
| 72 | |
---|
| 73 | * Mon Jul 17 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.112-7vl1 |
---|
| 74 | - initial build for Vine Linux |
---|
| 75 | |
---|
| 76 | * Tue Feb 21 2006 Aurelien Bompard <gauret[AT]free.fr> 0.112-7 |
---|
| 77 | - rebuild for FC5 |
---|
| 78 | |
---|
| 79 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
| 80 | - rebuilt |
---|
| 81 | |
---|
| 82 | * Mon Feb 2 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.5 |
---|
| 83 | - Reduce directory ownership bloat. |
---|
| 84 | |
---|
| 85 | * Sat Oct 11 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.4 |
---|
| 86 | - Install into vendor dirs. |
---|
| 87 | - Specfile cleanup. |
---|
| 88 | |
---|
| 89 | * Mon Jul 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.3 |
---|
| 90 | - Regenerate %%install section with cpanflute2. |
---|
| 91 | - Improve %%description. |
---|
| 92 | |
---|
| 93 | * Sun May 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.2 |
---|
| 94 | - Own more dirs. |
---|
| 95 | |
---|
| 96 | * Fri Mar 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.112-0.fdr.1 |
---|
| 97 | - Update to current Fedora guidelines. |
---|
| 98 | |
---|
| 99 | * Sun Mar 2 2003 Ville Skyttä <ville.skytta at iki.fi> - 0.112-1.fedora.1 |
---|
| 100 | - First Fedora release. |
---|