]>
Commit | Line | Data |
---|---|---|
974a3281 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
fb033c9d | 5 | %include /usr/lib/rpm/macros.perl |
2d00a05b | 6 | %define pdir Unicode |
7 | %define pnam String | |
adc79b4a | 8 | Summary: Unicode::String perl module |
852800f6 | 9 | Summary(pl.UTF-8): Moduł perla Unicode::String |
364e1f98 | 10 | Name: perl-Unicode-String |
d93a8dc5 | 11 | Version: 2.09 |
d68a2d2f | 12 | Release: 17 |
974a3281 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
364e1f98 | 15 | Group: Development/Languages/Perl |
ac92dcf6 | 16 | Source0: http://www.cpan.org/modules/by-module/Unicode/%{pdir}-%{pnam}-%{version}.tar.gz |
d93a8dc5 | 17 | # Source0-md5: 553e68e603723bf7c631f8701ab0d678 |
8153ddb2 JR |
18 | Patch0: undefined.patch |
19 | Patch1: utf8doc.patch | |
6339eeb7 | 20 | URL: http://search.cpan.org/dist/Unicode-String/ |
a823c7d4 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
fa9555e7 | 22 | BuildRequires: perl-MIME-Base64 >= 2.00 |
874c82ef | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
29309c71 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
364e1f98 | 25 | |
26 | %description | |
fa9555e7 JB |
27 | Unicode::String Perl module - String of Unicode characters |
28 | (UCS2/UTF16). | |
364e1f98 | 29 | |
07fbb3d9 JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Perla Unicode::String - klasa ciągu unikodowych znaków | |
fa9555e7 | 32 | (UCS2/UTF16). |
364e1f98 | 33 | |
34 | %prep | |
fb033c9d | 35 | %setup -q -n %{pdir}-%{pnam}-%{version} |
8153ddb2 JR |
36 | %patch0 -p1 |
37 | %patch1 -p1 | |
364e1f98 | 38 | |
39 | %build | |
874c82ef | 40 | %{__perl} Makefile.PL \ |
d32ff78f | 41 | INSTALLDIRS=vendor |
974a3281 | 42 | %{__make} \ |
71b3aff8 | 43 | CC="%{__cc}" \ |
974a3281 | 44 | OPTIMIZE="%{rpmcflags}" |
45 | ||
46 | %{?with_tests:%{__make} test} | |
364e1f98 | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
364e1f98 | 50 | |
974a3281 | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
364e1f98 | 53 | |
364e1f98 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
fa9555e7 | 59 | %doc Changes README |
874c82ef | 60 | %{perl_vendorarch}/Unicode/CharName.pm |
61 | %{perl_vendorarch}/Unicode/String.pm | |
62 | %dir %{perl_vendorarch}/auto/Unicode/String | |
874c82ef | 63 | %attr(755,root,root) %{perl_vendorarch}/auto/Unicode/String/String.so |
ac92dcf6 JB |
64 | %{_mandir}/man3/Unicode::CharName.3pm* |
65 | %{_mandir}/man3/Unicode::String.3pm* |