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