%define PackageName gettext Name: perl-%{PackageName} Version: 1.05 Release: 9%{?_dist_release} Summary: Interface to gettext family of functions Group: Development/Libraries License: GPL or Artistic Source: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz URL: http://search.cpan.org/~pvandry/gettext/ BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: gettext Requires: gettext Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Obsoletes: perl-Locale-gettext <= 1.05 %description Perl module gettext - This module give acces to the C library functions for internatialization gettext. %prep %setup -q -n %{PackageName}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* %check unset LC_MESSAGES case "$LANG" in ''|'C'|'POSIX' ) export LANG=en_US.UTF-8;; esac make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %{perl_vendorarch}/auto/Locale %{perl_vendorarch}/Locale %{_mandir}/man3/*.3* %changelog * Mon Jul 07 2008 Daisuke SUZUKI 1.05-9 - rebuild with perl-5.10 - new versioning policy * Sat Sep 2 2006 Ryoichi INAGAKI 1.05-8vl1 - new upstream release * Sun Jan 2 2005 IWAI, Masaharu 1.03-0vl2 - build on perl-5.8.6-0vl1 - update URL * Sun Sep 26 2004 Ryoichi INAGAKI 1.03-0vl1 - new upstream release - changed Group: and URL: - added Prereq: gettext - moved perllocal.pod to docdir - rebuild with perl 5.8.2 * Tue Oct 7 2003 Ryoichi INAGAKI 1.01-14vl2 - rebuild to remove dependancy at i386 - rebuild with perl 5.8.1 * Tue Nov 26 2002 Daisuke SUZUKI 1.01-14vl1 - build for Vine Linux * Sun Nov 11 2001 Magic Bumper + perl-%{PackageName}-1.01-14cl - rebuilt against current perl version * Fri Mar 02 2001 Rodrigo Barbosa + perl-gettext-1.01-13cl - Removing macros from changelog * Thu Dec 07 2000 Rodrigo Barbosa - Added AutoProv: no * Mon Oct 31 2000 Raul Dias - Changed perl from "Requires:" to "Prereq:". * Sat Oct 28 2000 Raul Dias - Updated spec file - eliminate sed use * Fri Sep 29 2000 Raul Dias - Updated spec file * Tue Jun 06 2000 Raul Dias - Fixed instalation without %%doc * Mon May 22 2000 Raul Dias - New spec allow compiling with perl version 5.00503 and >= 5.6.0 * Fri May 05 2000 Raul Dias - New spec format * Fri Mar 10 2000 Raul Dias - first build