]> git.pld-linux.org Git - packages/po4a.git/blob - po4a.spec
- rebuild with perl 5.18.1
[packages/po4a.git] / po4a.spec
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
4 Name:           po4a
5 Version:        0.44
6 Release:        2
7 License:        GPL v2+
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
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
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.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37
38 # fix #!%{_bindir}/env perl -w -> #!%{__perl}:
39 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' po4a* scripts/*
40
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
49 ./Build install
50
51 %find_lang %{name}
52
53 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/po4a/.packlist
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
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]/*
This page took 0.115391 seconds and 3 git commands to generate.