cpanspec, no /var/adm/perl-modules

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-PadWalker?expand=0&rev=4
This commit is contained in:
Christian Wittmer
2010-11-19 15:00:53 +00:00
committed by Git OBS Bridge
parent 3398a02b40
commit 38c0c710b8
2 changed files with 50 additions and 37 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Nov 19 14:58:51 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- cleanup changelog
- no /var/adm/perl-modules
-------------------------------------------------------------------
Tue Oct 19 08:38:54 UTC 2010 - coolo@novell.com

View File

@@ -1,33 +1,44 @@
# Copyright (c) 2009 Novell
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
# spec file for package perl-PadWalker (Version 1.92)
#
# 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-PadWalker
Version: 1.92
Release: 1
Name: perl-PadWalker
%define cpan_name PadWalker
Provides: %cpan_name
Requires: perl = %{perl_version}
Autoreqprov: on
Group: Development/Libraries/Perl
License: Artistic License, GPL, see package
URL: http://search.cpan.org/~robin/PadWalker-1.9/PadWalker.pm
Summary: Play with other peoples' lexical variables
Source0: %{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Summary: Play with other peoples' lexical variables
Version: 1.92
Release: 2
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/PadWalker/
Source: http://search.cpan.org/CPAN/authors/id/R/RO/ROBIN/PadWalker-1.92.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
Requires: perl = %{perl_version}
%description
PadWalker is a module which allows you to inspect (and even change!)
lexical variables in any subroutine which called you. It will only show
PadWalker is a module which allows you to inspect (and even change!)
lexical variables in any subroutine which called you. It will only show
those variables which are in scope at the point of the call.
PadWalker is particularly useful for debugging. It's even used by Perl's
PadWalker is particularly useful for debugging. It's even used by Perl's
built-in debugger. (It can also be used for evil, of course.)
I wouldn't recommend using PadWalker directly in production code, but it's
@@ -35,38 +46,33 @@ your call. Some of the modules that use PadWalker internally are certainly
safe for and useful in production.
Authors:
--------
Robin Houston <robin@cpan.org>
%prep
%setup -q -n %cpan_name-%{version}
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL
make
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%__rm -f %{buildroot}%{perl_vendorarch}/auto/PadWalker/.packlist
# do not perl_process_packlist
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PadWalker/.packlist
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
%perl_gen_filelist
%clean
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%doc %{_mandir}/man3/*
%dir %{perl_vendorarch}/auto/PadWalker/
%{perl_vendorarch}/auto/PadWalker/*
%{perl_vendorarch}/PadWalker.pm
/var/adm/perl-modules/%{name}
%changelog
* Tue Nov 24 2009 Robert Schweikert <rschweikert@novell.com> - PadWalker-1
- Initial build.