- update to 0.24

- fixed: additional test regex fixed
    - fixed: Perl 5.15 series Carp changes output format of messages (adds
      a period).  This fixes the test regular expressions. [Andreas Koenig]
    - added: the $Sub::Uplevel::CHECK_FRAMES global constant to enable the
      frame depth checking and compile it out if not needed.  [Adam
      Kennedy]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Uplevel?expand=0&rev=24
This commit is contained in:
Vítězslav Čížek 2012-02-22 10:11:38 +00:00 committed by Git OBS Bridge
parent ee2d493f22
commit 448a0c6656
4 changed files with 33 additions and 27 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:22923827855d864cbed12ce3e68da73c50edd8484b748154c0a26ba15d9e5cd6
size 23778

3
Sub-Uplevel-0.24.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f93f6e9c80b8dcb22c60d0e9df2c2c6d7db10d4d37151f1dfea6e54a3c6fdfb
size 23314

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Feb 22 02:35:49 UTC 2012 - vcizek@suse.com
- update to 0.24
- fixed: additional test regex fixed
- fixed: Perl 5.15 series Carp changes output format of messages (adds
a period). This fixes the test regular expressions. [Andreas Koenig]
- added: the $Sub::Uplevel::CHECK_FRAMES global constant to enable the
frame depth checking and compile it out if not needed. [Adam
Kennedy]
-------------------------------------------------------------------
Fri Nov 18 11:07:55 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Sub-Uplevel
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,65 +15,60 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# decimal versioning as used by perl
%define d_ver 0.22
%define d_ver 0.24
# decimal dotted versioning as used by rpm
%if 0%{?suse_version} > 1010
%define dd_ver %(%{__perl} -e "print version->new(%{d_ver})->normal" | %{__sed} "s/v//")
%define dd_ver %(perl -e "print version->new(%{d_ver})->normal" | sed "s/v//")
%else
%define dd_ver 0.220.0
%define dd_ver 0.240.0
%endif
Name: perl-Sub-Uplevel
%define cpan_name Sub-Uplevel
Summary: Apparently run a function in a higher stack frame
Version: %{dd_ver}
Release: 2
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
%define cpan_name Sub-Uplevel
Summary: Apparently run a function in a higher stack frame
Url: http://search.cpan.org/dist/Sub-Uplevel/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/modules/by-module/Sub/Sub-Uplevel-%{version}.tar.gz
Source: %{cpan_name}-%{d_ver}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
Like Tcl's uplevel() function, but not quite so dangerous. The idea is
just to fool caller(). All the really naughty bits of Tcl's uplevel()
are avoided.
Authors:
--------
Michael G Schwern <schwern@pobox.com> (original author)
David A Golden <dagolden@cpan.org> (current maintainer)
%prep
%setup -q -n %{cpan_name}-%{d_ver}
%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
./Build test
make test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes examples LICENSE README Todo xt
%doc Changes examples LICENSE README xt
%changelog