%define pkg_name libintl-perl %define pkg_version 1.16 %define rpm_pkg_version 1.16 %define rpm_pkg_release 2.n0i.3 Summary: Perl Implementation of Uniforum Message Translation Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/G/GU/GUIDO/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %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 %{pkg_name}-%{pkg_version} %{fix_mod} # keep sample application compressed %{__tar} cjf sample_app.tar.bz2 sample/ # drop fake shellbangs %{__find} lib/Locale -type f -exec \ %{__perl} -pi -e 's,^#!\s*/bin/false\s+,,s' {} \; %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %{perl_vendorlib}/Locale %doc ChangeLog COPYING.LESSER NEWS README THANKS TODO %doc sample_app.tar.bz2 %changelog * Tue May 22 2007 Marius Feraru - 1.16-2.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 * Thu Oct 06 2005 Marius Feraru 1.16-1.n0i.2 - version 1.16 * Fri Sep 02 2005 Marius Feraru 1.15-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.10 - rebuild on perl 5.8.7