]> git.pld-linux.org Git - packages/perl-Locale-PO.git/commitdiff
- new auto/th/perl-Locale-PO-0.22-1 auto/ti/perl-Locale-PO-0.22-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Oct 2012 19:18:46 +0000 (20:18 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Oct 2012 19:18:46 +0000 (20:18 +0100)
perl-Locale-PO.spec [new file with mode: 0644]

diff --git a/perl-Locale-PO.spec b/perl-Locale-PO.spec
new file mode 100644 (file)
index 0000000..9ec8e2e
--- /dev/null
@@ -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*
This page took 0.75636 seconds and 4 git commands to generate.