corsepiu pushed to perl-gettext (master). "Update to 1.06. (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Sep 24 10:45:41 UTC 2015


From 2bed308302b586617c5d5941533483c87b2b39e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu at fedoraproject.org>
Date: Thu, 24 Sep 2015 11:12:22 +0200
Subject: 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).

diff --git a/.gitignore b/.gitignore
index 2d0f0c3..4068812 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-gettext-1.05.tar.gz
+/gettext-1.06.tar.gz
diff --git a/compatibility-with-POSIX-module.diff b/compatibility-with-POSIX-module.diff
deleted file mode 100644
index f02aefe..0000000
--- a/compatibility-with-POSIX-module.diff
+++ /dev/null
@@ -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 at 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;
-
diff --git a/perl-gettext.spec b/perl-gettext.spec
index 48ebea9..dfba1a2 100644
--- a/perl-gettext.spec
+++ b/perl-gettext.spec
@@ -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 at 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 at 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 at links2linux.de> - 1.05-3
+* Sat Aug 20 2005 Ralf Corsepius <ralf at links2linux.de> - 1.05-3
 - Add Provides: perl-gettext (RH bugzilla PR 165885).
 
 * Tue Aug 09 2005 Ralf Corsepius <ralf at links2linux.de> - 1.05-2
diff --git a/sources b/sources
index c9e4e15..3292dd8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f3d3f474a1458f37174c410dfef61a46  gettext-1.05.tar.gz
+dbafd5b97e0ce5b4cd1d8ded9661f09e  gettext-1.06.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-gettext.git/commit/?h=master&id=2bed308302b586617c5d5941533483c87b2b39e6


More information about the perl-devel mailing list