]>
Commit | Line | Data |
---|---|---|
9e56f4eb | 1 | # |
2 | # Conditional build: | |
a5e0a222 JB |
3 | %bcond_without tests # do not perform "make test" |
4 | # | |
7fc11a13 | 5 | %define pdir Unicode |
6 | %define pnam Map8 | |
a5e0a222 | 7 | Summary: Unicode::Map8 - mapping table between 8-bit chars and Unicode |
7fd760b2 | 8 | Summary(pl.UTF-8): Unicode::Map8 - tabela odwzorowująca między znakami 8-bitowymi a Unikodem |
b2a79fc7 | 9 | Name: perl-Unicode-Map8 |
4414e1aa | 10 | Version: 0.13 |
2ed764f9 | 11 | Release: 14 |
2070b868 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
b2a79fc7 | 14 | Group: Development/Languages/Perl |
a04e5d21 | 15 | Source0: http://www.cpan.org/modules/by-module/Unicode/%{pdir}-%{pnam}-%{version}.tar.gz |
4414e1aa | 16 | # Source0-md5: fc93a37cabcae488bd95ca07bf5c919e |
a5e0a222 | 17 | Patch0: %{name}-types.patch |
29ee6933 | 18 | URL: https://metacpan.org/dist/Unicode-Map8 |
a04e5d21 | 19 | BuildRequires: perl-Unicode-String >= 2.00 |
a5e0a222 JB |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
29ee6933 | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
1b7d4fd0 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b2a79fc7 | 24 | |
25 | %description | |
a5e0a222 JB |
26 | The Unicode::Map8 class implement efficient mapping tables between |
27 | 8-bit character sets and 16 bit character sets like Unicode. The | |
28 | tables are efficient both in terms of space allocated and translation | |
29 | speed. The 16-bit strings is assumed to use network byte order. | |
b2a79fc7 | 30 | |
4a574e3a JR |
31 | %description -l pl.UTF-8 |
32 | Klasa Unicode::Map8 implementuje wydajne tablice odwzorowujące | |
33 | pomiędzy 8-bitowymi zestawami znaków a 16-bitowymi zestawami takimi | |
34 | jak Unikod. Tablice są wydajne zarówno jeśli chodzi o ilość | |
35 | przydzielonego miejsca, jak i szybkość konwersji. Zakłada się, że | |
36 | łańcuchy 16-bitowe używają sieciowej kolejności bajtów w słowie. | |
b2a79fc7 | 37 | |
38 | %prep | |
d97ab4e4 | 39 | %setup -q -n %{pdir}-%{pnam}-%{version} |
a5e0a222 | 40 | %patch0 -p1 |
b2a79fc7 | 41 | |
42 | %build | |
264e0d2a | 43 | %{__perl} Makefile.PL \ |
15de928a | 44 | INSTALLDIRS=vendor |
a5e0a222 | 45 | %{__make} \ |
4a53174c | 46 | CC="%{__cc}" \ |
a5e0a222 | 47 | OPTIMIZE="%{rpmcflags}" |
b2a79fc7 | 48 | |
a5e0a222 | 49 | %{?with_tests:%{__make} test} |
9e56f4eb | 50 | |
b2a79fc7 | 51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
104b3052 | 53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
b2a79fc7 | 54 | |
a5e0a222 JB |
55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
a04e5d21 | 57 | install {diff_iso,make*maps,map8_*} \ |
104b3052 | 58 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
b2a79fc7 | 59 | |
b2a79fc7 | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
a04e5d21 JB |
65 | %doc Changes README rfc1345.txt |
66 | %attr(755,root,root) %{_bindir}/umap | |
264e0d2a | 67 | %{perl_vendorarch}/Unicode/Map8.pm |
68 | %{perl_vendorarch}/Unicode/Map8 | |
69 | %dir %{perl_vendorarch}/auto/Unicode/Map8 | |
264e0d2a | 70 | %attr(755,root,root) %{perl_vendorarch}/auto/Unicode/Map8/Map8.so |
a04e5d21 JB |
71 | %{_mandir}/man1/umap.1p* |
72 | %{_mandir}/man3/Unicode::Map8.3pm* | |
9e56f4eb | 73 | %dir %{_examplesdir}/%{name}-%{version} |
74 | %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/* |