perl-Locale-PO/perl-Locale-PO.spec

58 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Locale-PO
Version: 0.27
Release: 1mamba
Summary: Locale::PO - Perl module for manipulating .po entries from GNU gettext
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Locale-PO-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
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
* Mon Nov 21 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.27-1mamba
- update to 0.27
* Sun Feb 20 2011 gil <puntogil@libero.it> 0.21-1mamba
- package created by autospec