3 # _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): Locale::Maketext::Fuzzy - Maketext z ju¿ przybli¿onych ³añcuchów
10 Name: perl-Locale-Maketext-Fuzzy
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.6
17 %if %{?_without_tests:0}%{!?_without_tests:1}
18 BuildRequires: perl-Locale-Maketext
19 BuildRequires: perl-Test-Simple
21 BuildRequires: rpm-perlprov >= 4.0.2-104
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module is a subclass of Locale::Maketext, with additional support
27 for localizing messages that already contains interpolated variables.
28 This is most useful when the messages are returned by external modules
29 - for example, to match "dir: command not found" against "[_1]: command
33 Ten modu³ jest podklas± Locale::Maketext, z dodatkow± obs³ug±
34 lokalizowanych komunikatów, które ju¿ zawieraj± przybli¿one warto¶ci.
35 Jest to najbardziej przydatne kiedy komunikaty s± zwracane przez
36 zewnêtrzne modu³y - na przyk³ad, aby dopasowaæ "dir: command not
37 found" do "[_1]: command not found".
40 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{!?_without_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
51 %{__make} install DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %{perl_sitelib}/Locale/Maketext/*.pm