]> git.pld-linux.org Git - packages/perl-Locale-PO.git/blame - perl-Locale-PO.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Locale-PO.git] / perl-Locale-PO.spec
CommitLineData
c90b2d95
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%define pdir Locale
6%define pnam PO
c90b2d95
JB
7Summary: Locale::PO - Perl module for manipulating .po entries from GNU gettext
8Summary(pl.UTF-8): Locale::PO - moduł Perla do operacji na wpisach .po z GNU gettexta
9Name: perl-Locale-PO
8151cb5a 10Version: 0.27
c90b2d95
JB
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
8151cb5a 16# Source0-md5: 81545852a510f8e5332ea1e9d6b64a39
c90b2d95
JB
17URL: http://search.cpan.org/dist/Locale-PO/
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-File-Slurp
22BuildRequires: perl-Test-Simple
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28This module simplifies management of GNU gettext .po files and is an
29alternative to using emacs po-mode. It provides an object-oriented
30interface in which each entry in a .po file is a Locale::PO object.
31
32%description -l pl.UTF-8
33Ten moduł upraszcza zarządzanie plikami .po GNU gettexta i jest
34alternatywą dla trybu po emacsa. Udostępnia zorientowany obiektowo
35interfejs, w którym każdy wpis pliku .po jest obiektem Locale::PO.
36
37%prep
38%setup -q -n %{pdir}-%{pnam}-%{version}
39
40%build
41%{__perl} Makefile.PL \
42 INSTALLDIRS=vendor
43%{__make}
44
45%{?with_tests:%{__make} test}
46
47%install
48rm -rf $RPM_BUILD_ROOT
49
50%{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc Changes
59%{perl_vendorlib}/Locale/PO.pm
60%{_mandir}/man3/Locale::PO.3pm*
This page took 0.10291 seconds and 4 git commands to generate.