1 %include /usr/lib/rpm/macros.perl
2 Summary: Framework to translate documentation and other materials
3 Summary(pl.UTF-8): Szkielet do tłumaczenia dokumentacji i innych materiałów
8 Group: Development/Tools
9 # Source0Download: http://alioth.debian.org/frs/?group_id=30267
10 Source0: http://alioth.debian.org/frs/download.php/file/3786/%{name}-%{version}.tar.gz
11 # Source0-md5: ff7b6859d729a52a57a880d6cf6a7fcf
12 Patch0: %{name}-tempfile.patch
13 URL: http://alioth.debian.org/projects/po4a/
14 BuildRequires: perl-Locale-gettext >= 1.01
15 BuildRequires: perl-Module-Build
16 BuildRequires: perl-Text-WrapI18N
17 BuildRequires: perl-YAML
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: sed >= 4.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
38 # fix #!%{_bindir}/env perl -w -> #!%{__perl}:
39 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' po4a* scripts/*
43 destdir=$RPM_BUILD_ROOT \
48 rm -rf $RPM_BUILD_ROOT
53 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/po4a/.packlist
56 rm -rf $RPM_BUILD_ROOT
58 %files -f %{name}.lang
59 %defattr(644,root,root,755)
60 %doc NEWS README README.maintainers TODO
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
70 %{perl_vendorlib}/Locale/Po4a
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*
81 %{_mandir}/man7/po4a.7*
82 %lang(ca) %{_mandir}/ca/man[1357]/*
83 %lang(ca) %{_mandir}/de/man[1357]/*
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]/*
89 %lang(pt) %{_mandir}/pt/man[1357]/*
90 %lang(ru) %{_mandir}/ru/man[1357]/*