]>
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 |
07fbb3d9 | 9 | Summary(pl.UTF-8): Moduł perla Unicode::String |
364e1f98 | 10 | Name: perl-Unicode-String |
d93a8dc5 PC |
11 | Version: 2.09 |
12 | Release: 1 | |
974a3281 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
364e1f98 | 15 | Group: Development/Languages/Perl |
24518ad6 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
d93a8dc5 | 17 | # Source0-md5: 553e68e603723bf7c631f8701ab0d678 |
6339eeb7 | 18 | URL: http://search.cpan.org/dist/Unicode-String/ |
a823c7d4 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
fa9555e7 | 20 | BuildRequires: perl-MIME-Base64 >= 2.00 |
874c82ef | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
29309c71 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
364e1f98 | 23 | |
24 | %description | |
fa9555e7 JB |
25 | Unicode::String Perl module - String of Unicode characters |
26 | (UCS2/UTF16). | |
364e1f98 | 27 | |
07fbb3d9 JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Perla Unicode::String - klasa ciągu unikodowych znaków | |
fa9555e7 | 30 | (UCS2/UTF16). |
364e1f98 | 31 | |
32 | %prep | |
fb033c9d | 33 | %setup -q -n %{pdir}-%{pnam}-%{version} |
364e1f98 | 34 | |
35 | %build | |
874c82ef | 36 | %{__perl} Makefile.PL \ |
d32ff78f | 37 | INSTALLDIRS=vendor |
974a3281 | 38 | %{__make} \ |
39 | OPTIMIZE="%{rpmcflags}" | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
364e1f98 | 42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
364e1f98 | 45 | |
974a3281 | 46 | %{__make} install \ |
47 | DESTDIR=$RPM_BUILD_ROOT | |
364e1f98 | 48 | |
364e1f98 | 49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
fa9555e7 | 54 | %doc Changes README |
874c82ef | 55 | %{perl_vendorarch}/Unicode/CharName.pm |
56 | %{perl_vendorarch}/Unicode/String.pm | |
57 | %dir %{perl_vendorarch}/auto/Unicode/String | |
58 | %{perl_vendorarch}/auto/Unicode/String/String.bs | |
59 | %attr(755,root,root) %{perl_vendorarch}/auto/Unicode/String/String.so | |
364e1f98 | 60 | %{_mandir}/man3/* |