File perl-Sub-Uplevel.spec of Package perl-Sub-Uplevel

#
# spec file for package perl-Sub-Uplevel (Version 0.2002)
#
# Copyright (c) 2008 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           perl-Sub-Uplevel
Version:        0.2002
Release:        1
Requires:       perl = %{perl_version}
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic License
Url:            http://cpan.org/modules/by-module/Sub/
Summary:        Sub::Uplevel - apparently run a function in a higher stack frame
Source:         Sub-Uplevel-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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:
--------
    David A Golden <dagolden@cpan.org> (current maintainer)
    
    Michael G Schwern <schwern@pobox.com> (original author)

%prep
%setup -q -n Sub-Uplevel-%{version}

%build
perl Makefile.PL
make

%check
make test

%install
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man?/*
/var/adm/perl-modules/%{name}
%dir %{perl_vendorlib}/Sub/
%dir %{perl_vendorarch}/auto/Sub/
%{perl_vendorlib}/Sub/*
%{perl_vendorarch}/auto/Sub/Uplevel/

%changelog
* Fri Sep 12 2008 anicka@suse.cz
- update to 0.2002
  * changed: removed Exporter dependency
  * test fix: fixed strange t/07_uplevel_too_high.t fail on Win32
* Wed Sep 10 2008 anicka@suse.cz
- update to 0.2001
  * test fix: changed prior override test to be more robust (SCHWERN)
  * changed: bumped perl requirement to 5.006 and stopped using vars
  (fixes a test bug under Test::More > 0.80)
  * fixed: load Carp only as needed (fixes problem on 5.005)
  * added: uplevel will warn if uplevel request is more than the call
  stack depth
* Mon Feb 25 2008 anicka@suse.cz
- update to 0.1901
  * hides the "DB" package from indexers
  (DB used to support @DB::args)
  * bug fix: replacement caller() correctly sets @DB::args if calling
  package is DB
  * repackaging: custom Build.PL, moved all author tests to xt/,
  added LICENSE and INSTALL files
* Thu Nov 01 2007 anicka@suse.cz
- update to 0.18
  * removed 5.006-specific language and tested on prerelease 5.00505
* Mon Oct 08 2007 anicka@suse.cz
- update to 0.16
  * Won't override any existing CORE::GLOBAL::caller when loaded
  * Localize global caller() override to the scope of the uplevel()
  call so it can play nicer with things like Contextual::Return
  and Hook::LexWrap that also override caller()
* Thu Jun 14 2007 anicka@suse.cz
- package created (version 0.14)
openSUSE Build Service is sponsored by