f8dd75389a
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Package-Stash?expand=0&rev=fa8dcdd2972e75b894933698726b0bd1
86 lines
2.9 KiB
RPMSpec
86 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package perl-Package-Stash
|
|
#
|
|
# Copyright (c) 2011 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.28
|
|
Release: 1
|
|
License: GPL+ or Artistic
|
|
%define cpan_name Package-Stash
|
|
Summary: routines for manipulating stashes
|
|
Url: http://search.cpan.org/dist/Package-Stash/
|
|
Group: Development/Libraries/Perl
|
|
#Source: http://www.cpan.org/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz
|
|
Source: %{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Package::DeprecationManager)
|
|
BuildRequires: perl(Package::Stash::XS) >= 0.22
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(Test::Fatal)
|
|
BuildRequires: perl(Test::Requires)
|
|
Requires: perl(Package::DeprecationManager)
|
|
Requires: perl(Package::Stash::XS) >= 0.22
|
|
Requires: perl(Scalar::Util)
|
|
%{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}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files -f %{name}.files
|
|
%defattr(644,root,root,755)
|
|
%doc Changes LICENSE README weaver.ini
|
|
|
|
%changelog
|