3 %bcond_without tests # do not perform "make test"
7 Summary: Locale::Hebrew - Bidirectional Hebrew support
8 Summary(pl.UTF-8): Locale::Hebrew - obsługa języka hebrajskiego z dwukierunkowym pismem
9 Name: perl-Locale-Hebrew
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Locale/Locale-Hebrew-%{version}.tar.gz
16 # Source0-md5: 424209b23bf423f1923f9b24b5ae2179
17 Patch0: format-security.patch
18 URL: https://metacpan.org/release/Locale-Hebrew
19 %{?with_tests:BuildRequires: perl-Encode}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: rpmbuild(macros) >= 1.745
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/Hebrew.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/Hebrew.so
69 %{_mandir}/man3/Locale::Hebrew.3pm*