# Got the intial spec from Fedora and modified it
Summary: Internationalization library for Perl, compatible with gettext
Name: perl-libintl
Version: 1.24
Release: 3%{?dist}
License: LGPLv2+
Group: Development/Libraries
URL: http://search.cpan.org/dist/libintl-perl/
Source: http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/libintl-perl-%{version}.tar.gz
%define sha1 libintl-perl=904c48a7dde98a6f1a0ff12a2007e604a6b28c22
Vendor: VMware, Inc.
Distribution: Photon
Requires: perl
Provides: perl-libintl-perl = %{version}-%{release}
BuildRequires: perl
%description
The package libintl-perl is an internationalization library for Perl that
aims to be compatible with the Uniforum message translations system as
implemented for example in GNU gettext.
%prep
%setup -q -n libintl-perl-%{version}
find -type f -exec chmod -x {} \;
find lib/Locale gettext_xs \( -name '*.pm' -o -name '*.pod' \) \
-exec sed -i -e '/^#! \/bin\/false/d' {} \;
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f \( -name .packlist -o \
-name '*.bs' -size 0 \) -exec rm -f {} ';'
chmod -R u+w %{buildroot}/*
%check
make test
%files
%{perl_vendorlib}/Locale/
%{perl_vendorarch}/auto/Locale/
%{_mandir}/man?/*
%changelog
* Wed Jun 06 2018 Xiaolin Li <xiaolinl@vmware.com> 1.24-3
- Bump release after upgraded perl to 5.24.1
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.24-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.24-1
- Upgraded to version 1.24
* Fri Apr 3 2015 Divya Thaluru <dthaluru@vmware.com> 1.23-1
- Initial version.