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