2013-01-25 19:23:49 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package perl-Object-Realize-Later
|
|
|
|
|
#
|
2015-04-15 07:10:03 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-01-25 19:23:49 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Object-Realize-Later
|
2015-04-15 07:10:03 +00:00
|
|
|
Version: 0.19
|
2013-01-25 19:23:49 +00:00
|
|
|
Release: 0
|
|
|
|
|
%define cpan_name Object-Realize-Later
|
2015-04-15 07:10:03 +00:00
|
|
|
Summary: Delayed creation of objects
|
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2013-01-25 19:23:49 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-15 07:10:03 +00:00
|
|
|
Url: http://search.cpan.org/dist/Object-Realize-Later/
|
|
|
|
|
Source: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
2013-01-25 19:23:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl-macros
|
2010-12-01 13:22:50 +00:00
|
|
|
%{perl_requires}
|
2006-10-28 20:50:17 +00:00
|
|
|
|
|
|
|
|
%description
|
2015-04-15 07:10:03 +00:00
|
|
|
The 'Object::Realize::Later' class helps with implementing transparent on
|
|
|
|
|
demand realization of object data. This is related to the tricks on
|
|
|
|
|
autoloading of data, the lesser known cousin of autoloading of
|
|
|
|
|
functionality.
|
|
|
|
|
|
|
|
|
|
On demand realization is all about performance gain. Why should you spent
|
|
|
|
|
costly time on realizing an object, when the data on the object is never
|
|
|
|
|
(or not yet) used? In interactive programs, postponed realization may boost
|
|
|
|
|
start-up: the realization of objects is triggered by the use, so spread
|
|
|
|
|
over time.
|
2006-10-28 20:50:17 +00:00
|
|
|
|
|
|
|
|
%prep
|
2013-01-25 19:23:49 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2006-10-28 20:50:17 +00:00
|
|
|
|
|
|
|
|
%build
|
2013-01-25 19:23:49 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
|
%{__make} %{?_smp_mflags}
|
2008-10-31 19:45:01 +00:00
|
|
|
|
|
|
|
|
%check
|
2013-01-25 19:23:49 +00:00
|
|
|
%{__make} test
|
2006-10-28 20:50:17 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
2013-01-25 19:23:49 +00:00
|
|
|
%perl_gen_filelist
|
2006-10-28 20:50:17 +00:00
|
|
|
|
2013-01-25 19:23:49 +00:00
|
|
|
%files -f %{name}.files
|
2015-04-15 07:10:03 +00:00
|
|
|
%defattr(-,root,root,755)
|
2006-10-28 20:50:17 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
|
|
%changelog
|