[perl-Scope-Upper] update to 0.18

Iain Arnell iarnell at fedoraproject.org
Sun Jan 22 10:50:37 UTC 2012


commit 5fcea1796ff7824e247c9af303cba610d801bbae
Author: Iain Arnell <iarnell at gmail.com>
Date:   Sun Jan 22 11:45:42 2012 +0100

    update to 0.18

 .gitignore            |    1 +
 perl-Scope-Upper.spec |   17 ++++++++++++-----
 sources               |    2 +-
 3 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c2ffe71..6de94aa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ Scope-Upper-0.10.tar.gz
 /Scope-Upper-0.13.tar.gz
 /Scope-Upper-0.14.tar.gz
 /Scope-Upper-0.16.tar.gz
+/Scope-Upper-0.18.tar.gz
diff --git a/perl-Scope-Upper.spec b/perl-Scope-Upper.spec
index 74fd906..9f62f26 100644
--- a/perl-Scope-Upper.spec
+++ b/perl-Scope-Upper.spec
@@ -1,7 +1,7 @@
 Name:           perl-Scope-Upper
 Summary:        Act on upper scopes
-Version:        0.16
-Release:        2%{?dist}
+Version:        0.18
+Release:        1%{?dist}
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 Source0:        http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/Scope-Upper-%{version}.tar.gz 
@@ -21,9 +21,12 @@ BuildRequires:  perl(XSLoader)
 Requires:       perl(Exporter)
 Requires:       perl(XSLoader)
 
+# obsolete/provide old tests subpackage
+# can be removed during F19 development cycle
+Obsoletes:      %{name}-tests < 0.16-3
+Provides:       %{name}-tests = %{version}-%{release}
 
 %{?perl_default_filter}
-%{?perl_default_subpackage_tests}
 
 %description
 This module lets you defer actions that will take place when the control
@@ -35,7 +38,7 @@ context was in use then.
 %prep
 %setup -q -n Scope-Upper-%{version}
 
-%{__perl} -pi -e 's|^#!perl|#!%{__perl}|' samples/*
+sed -i '1s,^#!.*perl,#!%{__perl},' samples/* t/*.t
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
@@ -53,12 +56,16 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
 make test
 
 %files
-%doc README Changes samples/
+%doc README Changes samples/ t/
 %{perl_vendorarch}/*
 %exclude %dir %{perl_vendorarch}/auto
 %{_mandir}/man3/*.3*
 
 %changelog
+* Sun Jan 22 2012 Iain Arnell <iarnell at gmail.com> 0.18-1
+- update to latest upstream version
+- drop tests subpackage; move tests to main package documentation
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.16-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index f5ae027..28edc71 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d1e1285d556b2ab83723e67c90280ea4  Scope-Upper-0.16.tar.gz
+f8512c0f5c4b8d63942725e7446f86fe  Scope-Upper-0.18.tar.gz


More information about the scm-commits mailing list