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/AUTRIJUS/Locale-Hebrew-%{version}.tar.gz
17 # Source0-md5: 5b1c08e039886c0319a0c4ece6209064
18 URL: http://search.cpan.org/dist/Locale-Hebrew/
19 %{?with_tests:BuildRequires: perl-Encode}
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module is based on code from the Unicode Consortium.
27 The charset on their code was bogus, therefore this module had to work
28 the real charset from scratch. There might have some mistakes, though.
30 One function, hebrewflip, is exported by default.
32 %description -l pl.UTF-8
33 Ten moduł jest oparty na kodzie z Unicode Consortium. Zestaw znaków w
34 tamtym kodzie był błędny, więc obsługa prawdziwego zestawu znaków
35 musiała być napisana od zera. Może jednak zawierać błędy.
37 Domyślnie eksportowana jest jedna funkcja - hebrewflip.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 OPTIMIZE="%{rpmcflags}"
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorarch}/Locale/*.pm
64 %dir %{perl_vendorarch}/auto/Locale/Hebrew
65 %{perl_vendorarch}/auto/Locale/Hebrew/*.bs
66 %{perl_vendorarch}/auto/Locale/Hebrew/autosplit.ix
67 %attr(755,root,root) %{perl_vendorarch}/auto/Locale/Hebrew/*.so