]> git.pld-linux.org Git - packages/perl-Unicode-Map8.git/blame - perl-Unicode-Map8.spec
- updated URL and macros
[packages/perl-Unicode-Map8.git] / perl-Unicode-Map8.spec
CommitLineData
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 7Summary: Unicode::Map8 - mapping table between 8-bit chars and Unicode
7fd760b2 8Summary(pl.UTF-8): Unicode::Map8 - tabela odwzorowująca między znakami 8-bitowymi a Unikodem
b2a79fc7 9Name: perl-Unicode-Map8
4414e1aa 10Version: 0.13
2ed764f9 11Release: 14
2070b868 12# same as perl
13License: GPL v1+ or Artistic
b2a79fc7 14Group: Development/Languages/Perl
a04e5d21 15Source0: http://www.cpan.org/modules/by-module/Unicode/%{pdir}-%{pnam}-%{version}.tar.gz
4414e1aa 16# Source0-md5: fc93a37cabcae488bd95ca07bf5c919e
a5e0a222 17Patch0: %{name}-types.patch
29ee6933 18URL: https://metacpan.org/dist/Unicode-Map8
a04e5d21 19BuildRequires: perl-Unicode-String >= 2.00
a5e0a222
JB
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
29ee6933 22BuildRequires: rpmbuild(macros) >= 1.745
1b7d4fd0 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
b2a79fc7 24
25%description
a5e0a222
JB
26The Unicode::Map8 class implement efficient mapping tables between
278-bit character sets and 16 bit character sets like Unicode. The
28tables are efficient both in terms of space allocated and translation
29speed. The 16-bit strings is assumed to use network byte order.
b2a79fc7 30
4a574e3a
JR
31%description -l pl.UTF-8
32Klasa Unicode::Map8 implementuje wydajne tablice odwzorowujące
33pomiędzy 8-bitowymi zestawami znaków a 16-bitowymi zestawami takimi
34jak Unikod. Tablice są wydajne zarówno jeśli chodzi o ilość
35przydzielonego 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
52rm -rf $RPM_BUILD_ROOT
104b3052 53install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
b2a79fc7 54
a5e0a222
JB
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
a04e5d21 57install {diff_iso,make*maps,map8_*} \
104b3052 58 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
b2a79fc7 59
b2a79fc7 60%clean
61rm -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}/*
This page took 0.096039 seconds and 4 git commands to generate.