perl-Sub-Uplevel/perl-Sub-Uplevel.spec
OBS User autobuild 844cb98b19 Accepting request 28400 from devel:languages:perl
Copy from devel:languages:perl/perl-Sub-Uplevel based on submit request 28400 from user coolo

OBS-URL: https://build.opensuse.org/request/show/28400
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Uplevel?expand=0&rev=8
2010-01-11 15:17:49 +00:00

69 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-Sub-Uplevel (Version 0.2002)
#
# Copyright (c) 2010 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
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Apparently run a function in a higher stack frame
Version: 0.2002
Release: 5
License: Artistic License ..
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Sub-Uplevel
Source: %{cpan_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Test::More) >= 0.47
Requires: perl = %{perl_version}
%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 %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc Changes LICENSE README
%changelog