[perl-Unicode-String] Suppress warnings and clean up spec file
Emmanuel Seyman
eseyman at fedoraproject.org
Sun Jun 24 15:21:41 UTC 2012
commit e5c55c85a7045d0d73572501d543fa0021614c62
Author: Emmanuel Seyman <emmanuel.seyman at club-internet.fr>
Date: Sun Jun 24 17:21:39 2012 +0200
Suppress warnings and clean up spec file
perl-Unicode-String.spec | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/perl-Unicode-String.spec b/perl-Unicode-String.spec
index acdc2c9..c28855f 100644
--- a/perl-Unicode-String.spec
+++ b/perl-Unicode-String.spec
@@ -1,6 +1,6 @@
Name: perl-Unicode-String
Version: 2.09
-Release: 22%{?dist}
+Release: 23%{?dist}
Summary: Perl modules to handle various Unicode issues
@@ -12,7 +12,7 @@ License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Unicode-String/
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/Unicode-String-2.09.tar.gz
Patch0: perl-Unicode-String-2.09-utf8doc.patch
-BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Patch1: perl-Unicode-String-2.09-undefined.patch
BuildRequires: perl(ExtUtils::MakeMaker), perl(MIME::Base64)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -33,13 +33,16 @@ Requires: perl(MIME::Base64)
# character code conversion that would be wrong if simply recoded
%patch0 -p1
+# Suppress warnings in newer versions of Perl
+# Patch is upstreamed as RT #74354
+%patch1 -p1
+
%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
%install
-rm -rf $RPM_BUILD_ROOT
make install \
DESTDIR=$RPM_BUILD_ROOT \
INSTALLARCHLIB=$RPM_BUILD_ROOT%{perl_archlib}
@@ -53,12 +56,7 @@ chmod -R u+w $RPM_BUILD_ROOT/*
make test
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorarch}/auto/Unicode
%{perl_vendorarch}/Unicode
@@ -66,6 +64,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Sun Jun 24 2012 Emmanuel Seyman <emmanuel.seyman at club-internet.fr> - 2.09-23
+- Add patch to suppress warnings (#834867)
+- Clean up spec file
+
* Mon Jun 11 2012 Petr Pisar <ppisar at redhat.com> - 2.09-22
- Perl 5.16 rebuild
More information about the scm-commits
mailing list