]> git.pld-linux.org Git - packages/perl-Locale-Maketext-Fuzzy.git/blob - perl-Locale-Maketext-Fuzzy.spec
- use the __perl macro
[packages/perl-Locale-Maketext-Fuzzy.git] / perl-Locale-Maketext-Fuzzy.spec
1 #
2 # Conditional build:
3 # _without_tests - do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Locale
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
11 Version:        0.02
12 Release:        2
13 License:        GPL/Artistic
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
20 %endif
21 BuildRequires:  rpm-perlprov >= 3.0.3-26
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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
30 not found".
31
32 %description -l pl
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".
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL
44 %{__make}
45
46 %{!?_without_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %{perl_sitelib}/Locale/Maketext/*.pm
59 %{_mandir}/man3/*
This page took 0.117425 seconds and 3 git commands to generate.