File perl-Lexical-Persistence.spec of Package perl-Lexical-Persistence
# vim: set sw=3 ts=3 noet:
#
# spec file for package perl-Lexical-Persistence
#
# 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-Lexical-Persistence
Version: 1.020
Release: 0
Summary: Persistent lexical variable values for arbitrary calls
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Source: http://www.cpan.org/modules/by-module/Lexical/RCAPUTO/Lexical-Persistence-%{version}.tar.gz
Url: http://search.cpan.org/dist/Lexical-Persistence/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl
Requires: perl(Devel::LexAlias) >= 0.04
Requires: perl(PadWalker) >= 1.1
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Devel::LexAlias) >= 0.04
BuildRequires: perl(PadWalker) >= 1.1
%{perl_requires}
%description
Lexical::Persistence does a few things, all related. Note that all the
behaviors listed here are the defaults. Subclasses can override nearly every
aspect of Lexical::Persistence's behavior.
Lexical::Persistence lets your code access persistent data through lexical
variables. This example prints "some value" because the value of $x perists in
the $lp object between setter() and getter().
%prep
%setup -q -n "Lexical-Persistence-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc README
%dir %{perl_vendorlib}/Lexical
%{perl_vendorlib}/Lexical/Persistence.pm
%dir %{perl_vendorarch}/auto/Lexical
%{perl_vendorarch}/auto/Lexical/Persistence
%doc %{perl_man3dir}/Lexical::Persistence.%{perl_man3ext}%{ext_man}
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End:
%changelog