3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Locale::Hebrew - Bidirectional Hebrew support
9 Summary(pl.UTF-8): Locale::Hebrew - obsługa języka hebrajskiego z dwukierunkowym pismem
10 Name: perl-Locale-Hebrew
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/Locale-Hebrew-%{version}.tar.gz
17 # Source0-md5: 424209b23bf423f1923f9b24b5ae2179
18 Patch0: format-security.patch
19 URL: http://search.cpan.org/dist/Locale-Hebrew/
20 %{?with_tests:BuildRequires: perl-Encode}
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module is based on code from the Unicode Consortium.
28 The charset on their code was bogus, therefore this module had to work
29 the real charset from scratch. There might have some mistakes, though.
31 One function, hebrewflip, is exported by default.
33 %description -l pl.UTF-8
34 Ten moduł jest oparty na kodzie z Unicode Consortium. Zestaw znaków w
35 tamtym kodzie był błędny, więc obsługa prawdziwego zestawu znaków
36 musiała być napisana od zera. Może jednak zawierać błędy.
38 Domyślnie eksportowana jest jedna funkcja - hebrewflip.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
45 %{__perl} Makefile.PL \
49 OPTIMIZE="%{rpmcflags}"
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Locale/*.pm
66 %dir %{perl_vendorarch}/auto/Locale/Hebrew
67 %{perl_vendorarch}/auto/Locale/Hebrew/autosplit.ix
68 %attr(755,root,root) %{perl_vendorarch}/auto/Locale/Hebrew/*.so