[perl-Guard] Update to 1.023

Paul Howarth pghmcfc at fedoraproject.org
Fri Nov 21 13:48:32 UTC 2014


commit 0c8d478fe6a822a411d69cb02aebe83e96d8b0ea
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Nov 21 13:44:44 2014 +0000

    Update to 1.023
    
    - New upstream release 1.023
      - Work around backwards compatibility breakage in perl 5.22 (removal of
        PL_sv_objcount)
    - Drop %defattr, redundant since rpm 4.4
    - Use %license where possible
    - Classify buildreqs by usage
    - Add %{?perl_default_filter}
    - Don't use macros for commands
    - Don't need to remove empty directories from the buildroot
    - Use DESTDIR rather than PERL_INSTALL_ROOT

 .gitignore      |    3 +-
 perl-Guard.spec |   74 +++++++++++++++++++++++++++++++++++++------------------
 sources         |    2 +-
 3 files changed, 52 insertions(+), 27 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a9373dc..8751456 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-Guard-1.021.tar.gz
-/Guard-1.022.tar.gz
+/Guard-[0-9.]*.tar.gz
diff --git a/perl-Guard.spec b/perl-Guard.spec
index a775534..b0db30e 100644
--- a/perl-Guard.spec
+++ b/perl-Guard.spec
@@ -1,52 +1,78 @@
 Name:           perl-Guard
-Version:        1.022
-Release:        9%{?dist}
+Version:        1.023
+Release:        1%{?dist}
 Summary:        Safe cleanup blocks
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Guard/
 Source0:        http://www.cpan.org/authors/id/M/ML/MLEHMANN/Guard-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+# Module Build
+BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+# Module Runtime
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+# Test Suite
+# (no additional dependencies)
+# Runtime
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Exporter)
+Requires:       perl(warnings)
+Requires:       perl(XSLoader)
+
+# Avoid provides from private shared objects
+%{?perl_default_filter}
 
 %description
-This module implements so-called "guards". A guard is something
-(usually an object) that "guards" a resource, ensuring that it is
-cleaned up when expected.
+This module implements so-called "guards". A guard is something (usually an
+object) that "guards" a resource, ensuring that it is cleaned up when expected.
 
 %prep
 %setup -q -n Guard-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
-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' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{_fixperms} %{buildroot}
 
 %check
 make test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root,-)
-%doc Changes COPYING README
-%{perl_vendorarch}/auto/*
-%{perl_vendorarch}/Guard*
-%{_mandir}/man3/*
+%if 0%{?_licensedir:1}
+%license COPYING
+%else
+%doc COPYING
+%endif
+%doc Changes README
+%{perl_vendorarch}/auto/Guard/
+%{perl_vendorarch}/Guard.pm
+%{_mandir}/man3/Guard.3*
 
 %changelog
+* Fri Nov 21 2014 Paul Howarth <paul at city-fan.org> - 1.023-1
+- Update to 1.023
+  - Work around backwards compatibility breakage in perl 5.22 (removal of
+    PL_sv_objcount)
+- Drop %%defattr, redundant since rpm 4.4
+- Use %%license where possible
+- Classify buildreqs by usage
+- Add %%{?perl_default_filter}
+- Don't use macros for commands
+- Don't need to remove empty directories from the buildroot
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+
 * Wed Aug 27 2014 Jitka Plesnikova <jplesnik at redhat.com> - 1.022-9
 - Perl 5.20 rebuild
 
@@ -81,7 +107,7 @@ rm -rf $RPM_BUILD_ROOT
 - Perl mass rebuild
 
 * Fri Dec 17 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.021-4
-- 661697 rebuild for fixing problems with vendorach/lib
+- Rebuild to fix problems with vendorarch/lib (#661697)
 
 * Sun May 02 2010 Marcela Maslanova <mmaslano at redhat.com> - 1.021-3
 - Mass rebuild with perl-5.12.0
diff --git a/sources b/sources
index 635a3c4..5ea2092 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8d1d8b942fd5d0240f47906a6d6fac8c  Guard-1.022.tar.gz
+dbbb944601a31f60ee58954ad4cb65b4  Guard-1.023.tar.gz


More information about the scm-commits mailing list