]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_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.UTF-8): Locale::Maketext::Fuzzy - Maketext z już przybliżonych łańcuchów | |
10 | Name: perl-Locale-Maketext-Fuzzy | |
11 | Version: 0.10 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: ff5621abe3b6a632bdf91932b4b69513 | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-Locale-Maketext | |
21 | BuildRequires: perl-Test-Simple | |
22 | %endif | |
23 | BuildRequires: rpm-perlprov >= 4.1-13 | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module is a subclass of Locale::Maketext, with additional support | |
29 | for localizing messages that already contains interpolated variables. | |
30 | This is most useful when the messages are returned by external modules | |
31 | - for example, to match "dir: command not found" against "[_1]: command | |
32 | not found". | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Ten moduł jest podklasą Locale::Maketext, z dodatkową obsługą | |
36 | lokalizowanych komunikatów, które już zawierają przybliżone wartości. | |
37 | Jest to najbardziej przydatne kiedy komunikaty są zwracane przez | |
38 | zewnętrzne moduły - na przykład, aby dopasować "dir: command not | |
39 | found" do "[_1]: command not found". | |
40 | ||
41 | %prep | |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %{perl_vendorlib}/Locale/Maketext/*.pm | |
63 | %{_mandir}/man3/* |