]>
Commit | Line | Data |
---|---|---|
b5b28a46 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
9252c12c | 5 | %define pdir Text |
6 | %define pnam Iconv | |
20ae904e JB |
7 | Summary: Text::Iconv - Perl interface to iconv() codeset conversion function |
8 | Summary(pl.UTF-8): Text::Iconv - perlowy interfejs do funkcji przekodowującej iconv() | |
fd66871b | 9 | Name: perl-Text-Iconv |
ba025399 | 10 | Version: 1.7 |
d0908caa | 11 | Release: 19 |
f44e803a | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
fd66871b | 14 | Group: Development/Languages/Perl |
20ae904e | 15 | Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz |
ba025399 | 16 | # Source0-md5: 81b26e069eaebb084e91ea3c009b67ae |
6d0f101a | 17 | URL: https://metacpan.org/dist/Text-Iconv |
ab61204d | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
99f4f360 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
6d0f101a | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
fd66871b | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | This module provides a Perl interface to the iconv() codeset | |
28762b59 | 25 | conversion function, as defined by the Single UNIX Specification. For |
fd66871b | 26 | more details see the POD documentation embedded in the file Iconv.pm, |
27 | which will also be installed as Text::Iconv(3) man page. | |
28 | ||
479d9a92 JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł dostarcza interfejs Perla do funkcji iconv() konwertującej | |
31 | pomiędzy kodowaniami znaków, zgodnej z Single UNIX Specification. | |
32 | Więcej informacji znajduje się w manualu Text::Iconv(3). | |
39776e77 | 33 | |
fd66871b | 34 | %prep |
bc6c98b9 | 35 | %setup -q -n %{pdir}-%{pnam}-%{version} |
fd66871b | 36 | |
37 | %build | |
99f4f360 | 38 | %{__perl} Makefile.PL \ |
f8eebae7 | 39 | INSTALLDIRS=vendor |
b5b28a46 | 40 | %{__make} \ |
4693a826 | 41 | CC="%{__cc}" \ |
b5b28a46 | 42 | OPTIMIZE="%{rpmcflags}" |
43 | ||
44 | %{?with_tests:%{__make} test} | |
fd66871b | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
b5b28a46 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
fd66871b | 51 | |
fd66871b | 52 | %clean |
adeccfce | 53 | rm -rf $RPM_BUILD_ROOT |
fd66871b | 54 | |
55 | %files | |
56 | %defattr(644,root,root,755) | |
ce1e801e | 57 | %doc Changes README |
99f4f360 | 58 | %{perl_vendorarch}/Text/Iconv.pm |
59 | %dir %{perl_vendorarch}/auto/Text/Iconv | |
60 | %{perl_vendorarch}/auto/Text/Iconv/autosplit.ix | |
6d0f101a JB |
61 | %attr(755,root,root) %{perl_vendorarch}/auto/Text/Iconv/Iconv.so |
62 | %{_mandir}/man3/Text::Iconv.3pm* |