[perl-Unicode-String] Suppress warnings and clean up spec file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit e5c55c85a7045d0d73572501d543fa0021614c62
Author: Emmanuel Seyman <emmanuel.seyman@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx> - 2.09-23
+- Add patch to suppress warnings (#834867)
+- Clean up spec file
+
 * Mon Jun 11 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 2.09-22
 - Perl 5.16 rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux