[packages/perl-Locale-PO] - new
qboosh
qboosh at pld-linux.org
Sun Oct 28 20:18:13 CET 2012
commit c90b2d95af6fb5a60c209427a12b48a9e54d073d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Oct 28 20:18:46 2012 +0100
- new
perl-Locale-PO.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
---
diff --git a/perl-Locale-PO.spec b/perl-Locale-PO.spec
new file mode 100644
index 0000000..9ec8e2e
--- /dev/null
+++ b/perl-Locale-PO.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Locale
+%define pnam PO
+%include /usr/lib/rpm/macros.perl
+Summary: Locale::PO - Perl module for manipulating .po entries from GNU gettext
+Summary(pl.UTF-8): Locale::PO - moduł Perla do operacji na wpisach .po z GNU gettexta
+Name: perl-Locale-PO
+Version: 0.22
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 1537ffe87adc101628d43ca73f101987
+URL: http://search.cpan.org/dist/Locale-PO/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-File-Slurp
+BuildRequires: perl-Test-Simple
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module simplifies management of GNU gettext .po files and is an
+alternative to using emacs po-mode. It provides an object-oriented
+interface in which each entry in a .po file is a Locale::PO object.
+
+%description -l pl.UTF-8
+Ten moduł upraszcza zarządzanie plikami .po GNU gettexta i jest
+alternatywą dla trybu po emacsa. Udostępnia zorientowany obiektowo
+interfejs, w którym każdy wpis pliku .po jest obiektem Locale::PO.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Locale/PO.pm
+%{_mandir}/man3/Locale::PO.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Locale-PO.git/commitdiff/c90b2d95af6fb5a60c209427a12b48a9e54d073d
More information about the pld-cvs-commit
mailing list