Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37561707
en ru br
ALT Linux repos
S:0.03-alt2.1
5.0: 0.03-alt2

Group :: Development/Perl
RPM: perl-Tie-ToObject

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#
#   - Tie::ToObject -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       Tie::ToObject
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Tie-ToObject
%define m_distro Tie-ToObject
%define m_name Tie::ToObject
%define m_author_id NUFFIN
%define _enable_test 1

Name: perl-Tie-ToObject
Version: 0.03
Release: alt2.1

Summary: %m_name - Tie to an existing object

License: Artistic
Group: Development/Perl
Url: http://search.cpan.org/dist/Tie-ToObject/

Packager: Michael Bochkaryov <misha at altlinux.ru>

BuildArch: noarch
Source: %m_distro-%version.tar.gz

# Automatically added by buildreq on Wed Sep 17 2008 (-bi)

BuildRequires: perl-Test-use-ok
BuildRequires: perl-Tie-RefHash

%description
While "tie" in perldoc allows tying to an arbitrary object, the class in question
must support this in it's implementation of "TIEHASH", "TIEARRAY" or
whatever.

This class provides a very tie constructor that simply returns the object it
was given as it's first argument.

This way side effects of calling "$object->TIEHASH" are avoided.

This is used in Data::Visitor in order to tie a variable to an already
existing object. This is also useful for cloning, when you want to clone the
internal state object instead of going through the tie interface for that
variable.

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_privlib/Tie*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin