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
10 Name: perl-Locale-Maketext-Fuzzy
14 Group: Development/Languages/Perl
15 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.6
17 BuildRequires: rpm-perlprov >= 3.0.3-26
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl-Locale-Maketext
20 BuildRequires: perl-Test-Simple
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module is a subclass of C<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 C<dir: command not found> against C<[_1]: command
36 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{!?_without_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %{perl_sitelib}/Locale/Maketext/*.pm