Update to 1.06.
- Remove Obsoletes: perl-Locale-gettext. - Remove LD_MESSAGES hack. - Modernize spec. - Drop compatibility-with-POSIX-module.diff (upstreamed). - Add BR: perl(Encode).
This commit is contained in:
parent
cd10fb563d
commit
2bed308302
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
gettext-1.05.tar.gz
|
||||
/gettext-1.06.tar.gz
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
|
||||
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 <hertzog@debian.org>
|
||||
|
||||
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;
|
||||
|
||||
@ -1,29 +1,28 @@
|
||||
Name: perl-gettext
|
||||
Version: 1.05
|
||||
Release: 34%{?dist}
|
||||
Version: 1.06
|
||||
Release: 1%{?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: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: gettext
|
||||
# Run-time:
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Exporter)
|
||||
# Encode is optional
|
||||
BuildRequires: perl(DynaLoader)
|
||||
BuildRequires: perl(POSIX)
|
||||
|
||||
# Optional
|
||||
BuildRequires: perl(Encode)
|
||||
# Tests:
|
||||
BuildRequires: perl(Data::Dumper)
|
||||
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
|
||||
@ -31,7 +30,6 @@ internationalize software.
|
||||
|
||||
%prep
|
||||
%setup -q -n gettext-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
@ -41,22 +39,15 @@ make %{?_smp_mflags}
|
||||
%install
|
||||
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/*
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
|
||||
%check
|
||||
unset LC_MESSAGES
|
||||
case "$LANG" in
|
||||
''|'C'|'POSIX' )
|
||||
export LANG=en_US.UTF-8;;
|
||||
esac
|
||||
make test
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README
|
||||
%{perl_vendorarch}/auto/Locale
|
||||
%{perl_vendorarch}/Locale
|
||||
@ -64,6 +55,14 @@ make test
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Sep 24 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.06-1
|
||||
- Update to 1.06.
|
||||
- Remove Obsoletes: perl-Locale-gettext.
|
||||
- Remove LD_MESSAGES hack.
|
||||
- Modernize spec.
|
||||
- Drop compatibility-with-POSIX-module.diff (upstreamed).
|
||||
- Add BR: perl(Encode).
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.05-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
@ -162,7 +161,7 @@ make test
|
||||
- Rename package to perl-gettext.
|
||||
- Remove "Require: perl".
|
||||
|
||||
* Mon Aug 20 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-3
|
||||
* Sat Aug 20 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-3
|
||||
- Add Provides: perl-gettext (RH bugzilla PR 165885).
|
||||
|
||||
* Tue Aug 09 2005 Ralf Corsepius <ralf@links2linux.de> - 1.05-2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user