]> git.pld-linux.org Git - packages/po4a.git/blob - po4a.spec
- up to 0.51
[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.51
6 Release:        1
7 License:        GPL v2+
8 Group:          Development/Tools
9 # Source0Download: http://alioth.debian.org/frs/?group_id=30267
10 Source0:        https://alioth.debian.org/frs/download.php/file/4214/%{name}-%{version}.tar.gz
11 # Source0-md5:  221971cdd862cfb91477f0d9fa67ab38
12 URL:            http://alioth.debian.org/projects/po4a/
13 BuildRequires:  perl-Encode
14 BuildRequires:  perl-Locale-gettext >= 1.01
15 BuildRequires:  perl-Module-Build
16 BuildRequires:  perl-Text-WrapI18N
17 BuildRequires:  perl-Unicode-LineBreak
18 BuildRequires:  perl-YAML
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  sed >= 4.0
22 %if %(locale -a | grep -q '^en_US\.utf8$'; echo $?)
23 BuildRequires:  glibc-localedb-all
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Po4a eases translation work, and in particular the maintenance of
30 translations, using gettext tools on areas where they were not
31 expected like documentation.
32
33 %description -l pl.UTF-8
34 po4a ułatwia pracę przy tłumaczeniu, a w szczególności utrzymywanie
35 tłumaczeń przy użyciu narzędzi gettexta w obszarach, gdzie nie były
36 przewidywane, jak na przykład dokumentacja.
37
38 %prep
39 %setup -q
40
41 # fix #!%{_bindir}/env perl -w -> #!%{__perl}:
42 %{__sed} -i -e '1s,^#!.*perl,#!%{__perl},' po4a* scripts/*
43
44 %build
45 %{__perl} Build.PL \
46         perl=%{__perl} \
47         installdirs=vendor
48
49 LC_ALL=en_US.UTF-8 \
50 ./Build
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 ./Build install \
55         destdir=$RPM_BUILD_ROOT
56
57 %find_lang %{name}
58
59 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/po4a/.packlist
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files -f %{name}.lang
65 %defattr(644,root,root,755)
66 %doc NEWS README README.maintainers TODO
67 %attr(755,root,root) %{_bindir}/msguntypot
68 %attr(755,root,root) %{_bindir}/po4a
69 %attr(755,root,root) %{_bindir}/po4a-build
70 %attr(755,root,root) %{_bindir}/po4a-gettextize
71 %attr(755,root,root) %{_bindir}/po4a-normalize
72 %attr(755,root,root) %{_bindir}/po4a-translate
73 %attr(755,root,root) %{_bindir}/po4a-updatepo
74 %attr(755,root,root) %{_bindir}/po4aman-display-po
75 %attr(755,root,root) %{_bindir}/po4apod-display-po
76 %{perl_vendorlib}/Locale/Po4a
77 %{_mandir}/man1/msguntypot.1*
78 %{_mandir}/man1/po4a.1*
79 %{_mandir}/man1/po4a-build.1*
80 %{_mandir}/man1/po4a-gettextize.1*
81 %{_mandir}/man1/po4a-normalize.1*
82 %{_mandir}/man1/po4a-translate.1*
83 %{_mandir}/man1/po4a-updatepo.1*
84 %{_mandir}/man1/po4aman-display-po.1*
85 %{_mandir}/man1/po4apod-display-po.1*
86 %{_mandir}/man3/Locale::Po4a::*.3*
87 %{_mandir}/man7/po4a.7*
88 %{_mandir}/man5/po4a-build.conf.5*
89 %{_mandir}/man7/po4a-runtime.7*
90 %lang(ca) %{_mandir}/ca/man[1357]/*
91 %lang(ca) %{_mandir}/de/man[1357]/*
92 %lang(es) %{_mandir}/es/man[1357]/*
93 %lang(fr) %{_mandir}/fr/man[1357]/*
94 %lang(it) %{_mandir}/it/man[1357]/*
95 %lang(pl) %{_mandir}/pl/man[1357]/*
96 %lang(pt_BR) %{_mandir}/pt_BR/man[1357]/*
97 %lang(ja) %{_mandir}/ja/man[1357]/*
98 %lang(pt) %{_mandir}/pt/man[1357]/*
99 %lang(ru) %{_mandir}/ru/man[1357]/*
This page took 0.175049 seconds and 3 git commands to generate.