[perl-UNIVERSAL-can] update to 1.20120726

Tom Callaway spot at fedoraproject.org
Sun Jan 20 20:11:27 UTC 2013


commit 46f44dd4829b8fde01e382d7f6b1b36655382c2c
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Sun Jan 20 15:13:58 2013 -0500

    update to 1.20120726

 .gitignore              |    1 +
 perl-UNIVERSAL-can.spec |   35 +++++++++++++----------------------
 sources                 |    2 +-
 3 files changed, 15 insertions(+), 23 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index da1fe2e..f6a17cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 UNIVERSAL-can-1.15.tar.gz
+/UNIVERSAL-can-1.20120726.tar.gz
diff --git a/perl-UNIVERSAL-can.spec b/perl-UNIVERSAL-can.spec
index 98a5371..d17d0a3 100644
--- a/perl-UNIVERSAL-can.spec
+++ b/perl-UNIVERSAL-can.spec
@@ -1,14 +1,11 @@
 Name:           perl-UNIVERSAL-can
-Version:        1.15
-Release:        9%{?dist}
+Version:        1.20120726
+Release:        1%{?dist}
 Summary:        Hack around people calling UNIVERSAL::can() as a function
-
 Group:          Development/Libraries
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/UNIVERSAL-can/
 Source0:        http://www.cpan.org/authors/id/C/CH/CHROMATIC/UNIVERSAL-can-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
 BuildArch:      noarch
 BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Test::Simple) >= 0.60
@@ -26,38 +23,32 @@ as functions, bypassing any possible overriding. This is wrong and you
 should not do it. Unfortunately, not everyone heeds this warning and
 their bad code can break your good code.
 
-
 %prep
 %setup -q -n UNIVERSAL-can-%{version}
 
-
 %build
-%{__perl} Build.PL installdirs=vendor
-./Build
-
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
-PERL_RUN_ALL_TESTS=1 ./Build test
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+PERL_RUN_ALL_TESTS=1 make test
 
 %files
-%defattr(-,root,root,-)
 %doc Changes README
 %{perl_vendorlib}/UNIVERSAL/
 %{_mandir}/man3/*.3*
 
-
 %changelog
+* Sun Jan 20 2013 Tom Callaway <spot at fedoraproject.org> 1.20120726-1
+- update to 1.20120726
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.15-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 
diff --git a/sources b/sources
index a1fe3e6..bb1adc5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d08a0bdedccadebed359f2c0a7b5afbb  UNIVERSAL-can-1.15.tar.gz
+6fd9ece12720615f9f081073dc2aedbb  UNIVERSAL-can-1.20120726.tar.gz


More information about the scm-commits mailing list