]> git.pld-linux.org Git - packages/perl-Locale-Maketext-Gettext.git/blame - perl-Locale-Maketext-Gettext.spec
- more verbose files
[packages/perl-Locale-Maketext-Gettext.git] / perl-Locale-Maketext-Gettext.spec
CommitLineData
3ffb0d3d 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-Gettext
8Summary: Locale::Maketext::Gettext - Joins the gettext and Maketext frameworks
27fa032a 9Summary(pl.UTF-8): Locale::Maketext::Gettext - łączenie szkieletów gettext i Maketext
3ffb0d3d 10Name: perl-Locale-Maketext-Gettext
bebabbb9 11Version: 1.28
7d467818 12Release: 1
68b94bf5
JB
13# same as perl
14License: GPL v1+ or Artistic
3ffb0d3d 15Group: Development/Languages/Perl
33e99094 16Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
bebabbb9 17# Source0-md5: a5fd46056d0c7bcf4781dc922451a82c
68b94bf5 18URL: http://search.cpan.org/dist/Locale-Maketext-Gettext/
3ffb0d3d 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
3ffb0d3d 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Locale::Maketext::Gettext joins the GNU gettext and Maketext
68b94bf5
JB
26frameworks. It is a subclass of Locale::Maketext(3) that follows the
27way GNU gettext works. It works seamlessly, both in the sense of GNU
28gettext and Maketext. As a result, you enjoy both their advantages,
29and get rid of both their problems, too.
3ffb0d3d 30
68b94bf5
JB
31You start as an usual GNU gettext localization project: Work on PO
32files with the help of translators, reviewers and Emacs. Turn them
33into MO files with msgfmt. Copy them into the appropriate locale
34directory, such as /usr/share/locale/de/LC_MESSAGES/myapp.mo.
3ffb0d3d 35
36Then, build your Maketext localization class, with your base class
68b94bf5
JB
37changed from Locale::Maketext(3) to Locale::Maketext::Gettext. That's
38all.
39
66428ceb
JR
40%description -l pl.UTF-8
41Locale::Maketext::Gettext łączy szkielety GNU gettext i Maketext. Jest
42podklasą Locale::Maketext(3) działającą w taki sposób, jak GNU
43gettext. Działa w sposób przezroczysty, zarówno w znaczeniu GNU
44gettexta, jak i Maketexta. W efekcie można cieszyć się zaletami ich
45obu i pozbyć ich problemów.
68b94bf5 46
66428ceb
JR
47Pracę zaczyna się jak w zwykłym projekcie lokalizacji GNU gettexta:
48pracuje na plikach PO z pomocą tłumaczy, recenzentów i Emacsa.
49Następnie zamienia je na pliki MO przy użyciu msgfmt, kopiuje do
50odpowiednich katalogów lokalizacji, takich jak
68b94bf5 51/usr/share/locale/de/LC_MESSAGES/myapp.mo.
3ffb0d3d 52
66428ceb
JR
53Następnie tworzy się klasę lokalizacji Maketexta z klasą podstawową
54zmienioną z Locale::Maketext(3) na Locale::Maketext::Gettext. To
68b94bf5 55wszystko.
3ffb0d3d 56
57%prep
58%setup -q -n %{pdir}-%{pnam}-%{version}
7d467818 59mv -f t/00-signature.t{,.blah}
3ffb0d3d 60
61%build
62%{__perl} Makefile.PL \
63 INSTALLDIRS=vendor
64%{__make}
65
66%{?with_tests:%{__make} test}
67
68%install
69rm -rf $RPM_BUILD_ROOT
70
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(644,root,root,755)
79%doc BUGS Changes README
33e99094
JB
80%attr(755,root,root) %{_bindir}/maketext
81%{perl_vendorlib}/Locale/Maketext/Gettext.pm
3ffb0d3d 82%{perl_vendorlib}/Locale/Maketext/Gettext
33e99094
JB
83%{_mandir}/man1/maketext.1p*
84%{_mandir}/man3/Locale::Maketext::Gettext*.3pm*
This page took 0.101646 seconds and 4 git commands to generate.