2007-07-13 02:39:29 +00:00
|
|
|
#
|
2008-09-12 16:13:09 +00:00
|
|
|
# spec file for package perl-Sub-Uplevel (Version 0.2002)
|
2007-07-13 02:39:29 +00:00
|
|
|
#
|
2010-01-11 15:17:49 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-07-13 02:39:29 +00:00
|
|
|
#
|
2008-09-12 16:13:09 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-07-13 02:39:29 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-25 16:36:10 +00:00
|
|
|
|
2007-07-13 02:39:29 +00:00
|
|
|
Name: perl-Sub-Uplevel
|
2009-07-27 19:53:51 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: Apparently run a function in a higher stack frame
|
2008-09-12 16:13:09 +00:00
|
|
|
Version: 0.2002
|
2010-01-11 15:17:49 +00:00
|
|
|
Release: 5
|
2009-07-27 19:53:51 +00:00
|
|
|
License: Artistic License ..
|
2007-07-13 02:39:29 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2009-07-27 19:53:51 +00:00
|
|
|
Url: http://search.cpan.org/dist/Sub-Uplevel
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2007-07-13 02:39:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-07-27 19:53:51 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.47
|
|
|
|
Requires: perl = %{perl_version}
|
2007-07-13 02:39:29 +00:00
|
|
|
|
|
|
|
%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:
|
2009-07-27 19:53:51 +00:00
|
|
|
David A Golden <dagolden@cpan.org> (current maintainer)
|
|
|
|
Michael G Schwern <schwern@pobox.com> (original author)
|
2007-07-13 02:39:29 +00:00
|
|
|
%prep
|
2009-07-27 19:53:51 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-07-13 02:39:29 +00:00
|
|
|
|
|
|
|
%build
|
2009-07-27 19:53:51 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2010-01-11 15:17:49 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-07-13 02:39:29 +00:00
|
|
|
|
|
|
|
%check
|
2009-07-27 19:53:51 +00:00
|
|
|
%{__make} test
|
2007-07-13 02:39:29 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-07-27 19:53:51 +00:00
|
|
|
%perl_gen_filelist
|
2007-07-13 02:39:29 +00:00
|
|
|
|
|
|
|
%clean
|
2009-07-27 19:53:51 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-07-13 02:39:29 +00:00
|
|
|
|
2009-07-27 19:53:51 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
2007-07-13 02:39:29 +00:00
|
|
|
%defattr(-,root,root)
|
2009-07-27 19:53:51 +00:00
|
|
|
%doc Changes LICENSE README
|
2008-02-25 16:36:10 +00:00
|
|
|
|
2007-07-13 02:39:29 +00:00
|
|
|
%changelog
|