3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Maketext-Fuzzy
8 Summary: Locale::Maketext::Fuzzy - Maketext from already interpolated strings
9 Summary(pl.UTF-8): Locale::Maketext::Fuzzy - Maketext z już przybliżonych łańcuchów
10 Name: perl-Locale-Maketext-Fuzzy
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 623d791f1b57c076e18e5090d0cb2aca
18 URL: http://search.cpan.org/dist/Locale-Maketext-Fuzzy/
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-Locale-Maketext
23 BuildRequires: perl-Test-Simple
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module is a subclass of Locale::Maketext, with additional support
30 for localizing messages that already contains interpolated variables.
31 This is most useful when the messages are returned by external modules
32 - for example, to match "dir: command not found" against "[_1]: command
35 %description -l pl.UTF-8
36 Ten moduł jest podklasą Locale::Maketext, z dodatkową obsługą
37 lokalizowanych komunikatów, które już zawierają przybliżone wartości.
38 Jest to najbardziej przydatne kiedy komunikaty są zwracane przez
39 zewnętrzne moduły - na przykład, aby dopasować "dir: command not
40 found" do "[_1]: command not found".
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %{perl_vendorlib}/Locale/Maketext/*.pm