From 3ccf2f3a8a6b161d0aa675d49a88e187bc8aabab Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 02 2019 16:48:55 +0000 Subject: import perl-gettext-1.05-28.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a58ff8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gettext-1.05.tar.gz diff --git a/.perl-gettext.metadata b/.perl-gettext.metadata new file mode 100644 index 0000000..abdb8fa --- /dev/null +++ b/.perl-gettext.metadata @@ -0,0 +1 @@ +705f519ad61b4a8c522d8aaf98425e0bd21709f2 SOURCES/gettext-1.05.tar.gz diff --git a/SOURCES/compatibility-with-POSIX-module.diff b/SOURCES/compatibility-with-POSIX-module.diff new file mode 100644 index 0000000..f02aefe --- /dev/null +++ b/SOURCES/compatibility-with-POSIX-module.diff @@ -0,0 +1,27 @@ + +Locale::Gettext exports by default the various LC_* constants as does the +POSIX perl module. Up to perl-5.10, their definition was strictly the same +and didn't cause any harm. Now the POSIX module evolved slightly and the +symbol redefinition are conflictual and +generate warnings. + +Resolve this by making sure that Locale::Gettext reexports the constants +coming from the POSIX module. + +Fixes Debian bug #479803. + + -- Raphael Hertzog + +Index: liblocale-gettext-perl-1.05/gettext.pm +=================================================================== +--- liblocale-gettext-perl-1.05.orig/gettext.pm 2008-05-07 09:40:23.000000000 +0200 ++++ liblocale-gettext-perl-1.05/gettext.pm 2008-05-07 09:41:04.000000000 +0200 +@@ -32,6 +32,7 @@ + =cut + + use Carp; ++use POSIX qw(:locale_h); + + require Exporter; + require DynaLoader; + diff --git a/SPECS/perl-gettext.spec b/SPECS/perl-gettext.spec new file mode 100644 index 0000000..eb45759 --- /dev/null +++ b/SPECS/perl-gettext.spec @@ -0,0 +1,162 @@ +Name: perl-gettext +Version: 1.05 +Release: 28%{?dist} +Summary: Interface to gettext family of functions +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/gettext/ +Source0: http://search.cpan.org/CPAN/authors/id/P/PV/PVANDRY/gettext-%{version}.tar.gz +Patch0: http://patch-tracking.debian.net/patch/series/view/liblocale-gettext-perl/1.05-4/compatibility-with-POSIX-module.diff +BuildRequires: gettext +BuildRequires: perl +BuildRequires: perl(Config) +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(DynaLoader) +BuildRequires: perl(Exporter) +# Encode is optional +BuildRequires: perl(POSIX) +# Tests: +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(strict) +BuildRequires: perl(Test) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Obsoletes: perl-Locale-gettext <= 1.05 + +%{?perl_default_filter} + +%description +The gettext module permits access from perl to the gettext() family of +functions for retrieving message strings from databases constructed to +internationalize software. + +%prep +%setup -q -n gettext-%{version} +%patch0 -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +chmod -R u+w %{buildroot}/* + +%check +unset LC_MESSAGES +case "$LANG" in +''|'C'|'POSIX' ) + export LANG=en_US.UTF-8;; +esac +make test + +%files +%doc README +%{perl_vendorarch}/auto/Locale +%{perl_vendorarch}/Locale +%{_mandir}/man3/*.3* + +%changelog +* Fri Jan 24 2014 Daniel Mach - 1.05-28 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 1.05-27 +- Mass rebuild 2013-12-27 + +* Thu Aug 01 2013 Petr Šabata - 1.05-26.2 +- Fix the package for el7 +- Modernize the spec +- Correct a bogus date in changelog +- Unify spec whitespace + +* Wed Aug 15 2012 Daniel Mach - 1.05-26.1 +- Rebuild for perl 5.16 + +* Fri Jul 20 2012 Fedora Release Engineering - 1.05-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jun 07 2012 Petr Pisar - 1.05-25 +- Perl 5.16 rebuild +- Specify all dependencies + +* Sun Jan 22 2012 Ralf Corsépius - 1.05-24 +- Add %%{?perl_default_filter}. +- Modernize spec. + +* Sat Jan 14 2012 Fedora Release Engineering - 1.05-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Jun 20 2011 Marcela Mašláňová - 1.05-22 +- Perl mass rebuild + +* Thu Jun 09 2011 Marcela Mašláňová - 1.05-21 +- Perl 5.14 mass rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.05-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 16 2010 Marcela Maslanova - 1.05-19 +- 661697 rebuild for fixing problems with vendorach/lib + +* Sun May 02 2010 Marcela Maslanova - 1.05-18 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 1.05-17 +- rebuild against perl 5.10.1 + +* Mon Jul 27 2009 Ralf Corsépius - 1.05-16 +- Adopt Debian's compatibility-with-POSIX-module.diff (RH BZ#447859). + +* Sun Jul 26 2009 Fedora Release Engineering - 1.05-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1.05-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Mar 05 2008 Tom "spot" Callaway - 1.05-13 +- rebuild for new perl + +* Sun Feb 10 2008 Ralf Corsépius - 1.05-12 +- Rebuild for gcc43. + +* Fri Aug 17 2007 Ralf Corsépius - 1.05-11 +- Update license tag. + +* Thu Apr 19 2007 Ralf Corsépius - 1.05-10 +- Reflect perl package split. + +* Tue Sep 05 2006 Ralf Corsépius - 1.05-9 +- Mass rebuild. + +* Mon Feb 20 2006 Ralf Corsépius - 1.05-8 +- Rebuild. + +* Wed Nov 02 2005 Ralf Corsepius - 1.05-7 +- Work-around to "make test" not supporting LC_MESSAGES=POSIX. + +* Wed Nov 02 2005 Ralf Corsepius - 1.05-6 +- Obsoletes: perl-Locale-gettext <= 1.05. +- Fix minor spec file typos. + +* Tue Nov 01 2005 Ralf Corsepius - 1.05-5 +- FE import. +- Add Obsoletes: perl-Locale-gettext. + +* Tue Nov 01 2005 Ralf Corsepius - 1.05-4 +- Rename package to perl-gettext. +- Remove "Require: perl". + +* Mon Aug 22 2005 Ralf Corsepius - 1.05-3 +- Add Provides: perl-gettext (RH bugzilla PR 165885). + +* Tue Aug 09 2005 Ralf Corsepius - 1.05-2 +- Add BuildRequires: gettext. + +* Sun Aug 07 2005 Ralf Corsepius - 1.05-1 +- FE submission. + +* Thu Aug 04 2005 Ralf Corsepius - 1.05-0 +- Initial rpm.