2024-01-06 09:15:57 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Locale-PO
|
2024-01-06 09:15:57 +01:00
|
|
|
Version: 0.27
|
2024-01-06 09:15:57 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Locale::PO - Perl module for manipulating .po entries from GNU gettext
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 09:15:57 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:15:57 +01:00
|
|
|
URL: http://www.cpan.org
|
2024-01-06 09:15:57 +01:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Locale-PO-%{version}.tar.gz
|
2024-01-06 09:15:57 +01:00
|
|
|
License: GPL, Artistic
|
2024-01-06 09:15:57 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:15:57 +01:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(File::Slurp)
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Locale-PO-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:15:57 +01:00
|
|
|
* Mon Nov 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.27-1mamba
|
|
|
|
- update to 0.27
|
|
|
|
|
2024-01-06 09:15:57 +01:00
|
|
|
* Sun Feb 20 2011 gil <puntogil@libero.it> 0.21-1mamba
|
|
|
|
- package created by autospec
|