]>
Commit | Line | Data |
---|---|---|
3983fe28 | 1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: Framework to translate documentation and other materials | |
91d71127 | 3 | Summary(pl.UTF-8): Szkielet do tłumaczenia dokumentacji i innych materiałów |
3983fe28 | 4 | Name: po4a |
5c07f622 | 5 | Version: 0.44 |
42ea18d8 | 6 | Release: 2 |
92a06f1b | 7 | License: GPL v2+ |
3983fe28 | 8 | Group: Development/Tools |
39b5b8ce | 9 | # Source0Download: http://alioth.debian.org/frs/?group_id=30267 |
5c07f622 JB |
10 | Source0: http://alioth.debian.org/frs/download.php/file/3786/%{name}-%{version}.tar.gz |
11 | # Source0-md5: ff7b6859d729a52a57a880d6cf6a7fcf | |
12 | Patch0: %{name}-tempfile.patch | |
3983fe28 | 13 | URL: http://alioth.debian.org/projects/po4a/ |
37378201 | 14 | BuildRequires: perl-Locale-gettext >= 1.01 |
3983fe28 | 15 | BuildRequires: perl-Module-Build |
37378201 | 16 | BuildRequires: perl-Text-WrapI18N |
32e5abab | 17 | BuildRequires: perl-YAML |
3983fe28 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
39b5b8ce | 20 | BuildRequires: sed >= 4.0 |
3983fe28 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Po4a eases translation work, and in particular the maintenance of | |
26 | translations, using gettext tools on areas where they were not | |
27 | expected like documentation. | |
28 | ||
1e080dbf JR |
29 | %description -l pl.UTF-8 |
30 | po4a ułatwia pracę przy tłumaczeniu, a w szczególności utrzymywanie | |
31 | tłumaczeń przy użyciu narzędzi gettexta w obszarach, gdzie nie były | |
32 | przewidywane, jak na przykład dokumentacja. | |
bc36adfc | 33 | |
3983fe28 | 34 | %prep |
35 | %setup -q | |
5c07f622 | 36 | %patch0 -p1 |
3983fe28 | 37 | |
39b5b8ce ER |
38 | # fix #!%{_bindir}/env perl -w -> #!%{__perl}: |
39 | %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' po4a* scripts/* | |
40 | ||
3983fe28 | 41 | %build |
42 | %{__perl} Build.PL \ | |
43 | destdir=$RPM_BUILD_ROOT \ | |
44 | installdirs=vendor | |
45 | ./Build | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
39b5b8ce | 49 | ./Build install |
3983fe28 | 50 | |
51 | %find_lang %{name} | |
52 | ||
39b5b8ce | 53 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/po4a/.packlist |
32e5abab | 54 | |
3983fe28 | 55 | %clean |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files -f %{name}.lang | |
59 | %defattr(644,root,root,755) | |
92a06f1b | 60 | %doc NEWS README README.maintainers TODO |
39b5b8ce ER |
61 | %attr(755,root,root) %{_bindir}/msguntypot |
62 | %attr(755,root,root) %{_bindir}/po4a | |
63 | %attr(755,root,root) %{_bindir}/po4a-build | |
64 | %attr(755,root,root) %{_bindir}/po4a-gettextize | |
65 | %attr(755,root,root) %{_bindir}/po4a-normalize | |
66 | %attr(755,root,root) %{_bindir}/po4a-translate | |
67 | %attr(755,root,root) %{_bindir}/po4a-updatepo | |
68 | %attr(755,root,root) %{_bindir}/po4aman-display-po | |
69 | %attr(755,root,root) %{_bindir}/po4apod-display-po | |
3983fe28 | 70 | %{perl_vendorlib}/Locale/Po4a |
92a06f1b JB |
71 | %{_mandir}/man1/msguntypot.1* |
72 | %{_mandir}/man1/po4a.1* | |
73 | %{_mandir}/man1/po4a-build.1* | |
74 | %{_mandir}/man1/po4a-gettextize.1* | |
75 | %{_mandir}/man1/po4a-normalize.1* | |
76 | %{_mandir}/man1/po4a-translate.1* | |
77 | %{_mandir}/man1/po4a-updatepo.1* | |
78 | %{_mandir}/man1/po4aman-display-po.1* | |
79 | %{_mandir}/man1/po4apod-display-po.1* | |
80 | %{_mandir}/man3/Locale::Po4a::*.3* | |
92a06f1b | 81 | %{_mandir}/man7/po4a.7* |
39b5b8ce | 82 | %lang(ca) %{_mandir}/ca/man[1357]/* |
5c07f622 | 83 | %lang(ca) %{_mandir}/de/man[1357]/* |
39b5b8ce ER |
84 | %lang(es) %{_mandir}/es/man[1357]/* |
85 | %lang(fr) %{_mandir}/fr/man[1357]/* | |
86 | %lang(it) %{_mandir}/it/man[1357]/* | |
87 | %lang(pl) %{_mandir}/pl/man[1357]/* | |
88 | %lang(ja) %{_mandir}/ja/man[1357]/* | |
5c07f622 | 89 | %lang(pt) %{_mandir}/pt/man[1357]/* |
39b5b8ce | 90 | %lang(ru) %{_mandir}/ru/man[1357]/* |