LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-Package-Stash.spec of Package perl-Package-Stash (Project spins:invis)

#
# spec file for package perl-Package-Stash
#
# 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
# 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/
#


Name:           perl-Package-Stash
Version:        0.33
Release:        0
%define cpan_name Package-Stash
Summary:        routines for manipulating stashes
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Package-Stash/
Source:         http://www.cpan.org/authors/id/D/DO/DOY/%{cpan_name}-%{version}.tar.gz
Patch1:         perl-Package-Stash-old_Test-More.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Dist::CheckConflicts) >= 0.02
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires:  perl(Package::DeprecationManager)
BuildRequires:  perl(Package::Stash::XS) >= 0.24
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Requires)
#BuildRequires: perl(B)
#BuildRequires: perl(Carp)
#BuildRequires: perl(Config)
#BuildRequires: perl(constant)
#BuildRequires: perl(Dist::Zilla::Plugin::MakeMaker::Awesome)
#BuildRequires: perl(Dist::Zilla::Role::MetaProvider)
#BuildRequires: perl(File::Find)
#BuildRequires: perl(File::Spec)
#BuildRequires: perl(File::Temp)
#BuildRequires: perl(Moose)
#BuildRequires: perl(Package::Stash)
#BuildRequires: perl(Package::Stash::PP)
#BuildRequires: perl(Symbol)
#BuildRequires: perl(Test::LeakTrace)
Requires:       perl(Dist::CheckConflicts) >= 0.02
Requires:       perl(Package::DeprecationManager)
Requires:       perl(Package::Stash::XS) >= 0.24
Requires:       perl(Scalar::Util)
Requires:       perl(Test::Fatal)
Requires:       perl(Test::More) >= 0.88
Requires:       perl(Test::Requires)
Recommends:     perl(Package::Stash::XS) >= 0.24
%{perl_requires}

%description
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
incredibly messy, and easy to get wrong. This module hides all of that
behind a simple API.

NOTE: Most methods in this class require a variable specification that
includes a sigil. If this sigil is absent, it is assumed to represent the
IO slot.

Due to limitations in the typeglob API available to perl code, and to
typeglob manipulation in perl being quite slow, this module provides two
implementations - one in pure perl, and one using XS. The XS implementation
is to be preferred for most usages; the pure perl one is provided for cases
where XS modules are not a possibility. The current implementation in use
can be set by setting '$ENV{PACKAGE_STASH_IMPLEMENTATION}' or
'$Package::Stash::IMPLEMENTATION' before loading Package::Stash (with the
environment variable taking precedence), otherwise, it will use the XS
implementation if possible, falling back to the pure perl one.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%if 0%{?suse_version} <= 1110
%patch1 -p1
rm -f t/00-compile.t
rm -f t/isa.t
%endif

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE README weaver.ini

%changelog