[perl-Exception-Class] Update to 1.37 and modernize spec

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

 



commit fe576cdd603183511d468a94b45e2d70ab9eb4c4
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Sun Feb 24 20:35:01 2013 +0000

    Update to 1.37 and modernize spec
    
    - New upstream release 1.37
      - I now recommend you use Throwable instead of this module; it has a nicer,
        more modern interface
      - Fixed warning from basic.t on 5.17.x (CPAN RT#79121)
      - 1.33 did not declare any prereqs (CPAN RT#79677)
      - Require Class::Data::Inheritable ≥ 0.02
      - Fixed some stupidity in the tests that appears to have been highlighted by
        recent changes to Devel::StackTrace (CPAN RT#81245)
      - Fixed various bugs and confusion in the docs
    - Don't need to remove empty directories from the buildroot
    - Don't use macros for commands
    - Make the %files list more explicit
    - Use DESTDIR rather than PERL_INSTALL_ROOT
    - Drop release testing (now more extensive and would fail anyway)
    - Drop support for distributions older than EL-6 (test suite would need
      patching for EL-5 anyway)

 .gitignore                |    3 +-
 perl-Exception-Class.spec |   55 ++++++++++++++++++++++++--------------------
 sources                   |    2 +-
 3 files changed, 32 insertions(+), 28 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9b7005e..1178a10 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-Exception-Class-1.29.tar.gz
-/Exception-Class-1.32.tar.gz
+/Exception-Class-[0-9.]*.tar.gz
diff --git a/perl-Exception-Class.spec b/perl-Exception-Class.spec
index 4c58324..fbdbe5c 100644
--- a/perl-Exception-Class.spec
+++ b/perl-Exception-Class.spec
@@ -1,12 +1,11 @@
 Name:           perl-Exception-Class
-Version:        1.32
-Release:        8%{?dist}
+Version:        1.37
+Release:        1%{?dist}
 Summary:        Module that allows you to declare real exception classes in Perl
 License:        Artistic 2.0
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Exception-Class/
 Source0:        http://www.cpan.org/authors/id/D/DR/DROLSKY/Exception-Class-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  perl(base)
 BuildRequires:  perl(Class::Data::Inheritable) >= 0.02
@@ -15,9 +14,7 @@ BuildRequires:  perl(ExtUtils::MakeMaker)
 BuildRequires:  perl(File::Spec)
 BuildRequires:  perl(Scalar::Util)
 BuildRequires:  perl(Test::More) >= 0.46
-BuildRequires:  perl(Test::Pod) >= 1.14
-BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Exception::Class allows you to declare exception hierarchies in your
@@ -26,36 +23,44 @@ modules in a "Java-esque" manner.
 %prep
 %setup -q -n Exception-Class-%{version}
 
-chmod a-x lib/Exception/Class.pm
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$RPM_BUILD_ROOT
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{_fixperms} $RPM_BUILD_ROOT
 
 %check
-export IS_MAINTAINER=1
 make test
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root,-)
 %doc Changes LICENSE README
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%{perl_vendorlib}/Exception/
+%{_mandir}/man3/Exception::Class.3pm*
+%{_mandir}/man3/Exception::Class::Base.3pm*
 
 %changelog
+* Sun Feb 24 2013 Paul Howarth <paul@xxxxxxxxxxxx> - 1.37-1
+- Update to 1.37
+  - I now recommend you use Throwable instead of this module; it has a nicer,
+    more modern interface
+  - Fixed warning from basic.t on 5.17.x (CPAN RT#79121)
+  - 1.33 did not declare any prereqs (CPAN RT#79677)
+  - Require Class::Data::Inheritable ≥ 0.02
+  - Fixed some stupidity in the tests that appears to have been highlighted by
+    recent changes to Devel::StackTrace (CPAN RT#81245)
+  - Fixed various bugs and confusion in the docs
+- Don't need to remove empty directories from the buildroot
+- Don't use macros for commands
+- Make the %%files list more explicit
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Drop release testing (now more extensive and would fail anyway)
+- Drop support for distributions older than EL-6 (test suite would need
+  patching for EL-5 anyway)
+
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.32-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 
@@ -85,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
 - Add README to docs.
 
 * Thu Dec 16 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 1.29-5
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Sat May 01 2010 Marcela Maslanova <mmaslano@xxxxxxxxxx> - 1.29-4
 - Mass rebuild with perl-5.12.0
@@ -109,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 - Update to 1.26.
 - Bump Devel::StackTrace dependency to 1.20.
 
-* Thu May 31 2008 Steven Pritchard <steve@xxxxxxxxx> 1.24-1
+* Sat May 31 2008 Steven Pritchard <steve@xxxxxxxxx> 1.24-1
 - Update to 1.24.
 - Bump Devel::StackTrace dependency to 1.17.
 - Clean up to match current cpanspec output.
diff --git a/sources b/sources
index a6cfeac..d501822 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-83788ad5a2c5e946877e4ec362e19622  Exception-Class-1.32.tar.gz
+9953d120112d971f1deafdba9dc15aa7  Exception-Class-1.37.tar.gz
--
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