Files
perl-Data-Alias/perl-Data-Alias.spec
Stephan Kulow c7df4b51c2 - updated to 1.18
* bugfix: store peep chain link reliably under threads
 
   * update tests for Perl 5.19.4's removal of the special treatment of
     aliased undef in arrays
 
   * in doc, switch to consistent use of British English spellings
 
   * doc typo fix
 
 version 1.17; 2013-08-04
 
   * bugfix: correct the dtrace-related macro squashing for Perls prior
     to 5.13.8, where the macros had the wrong number of parameters and
     prevented compilation
 
   * bugfix: use core's PL_no_localize_ref string constant as data string
     rather than format string
 
   * update to handle the new padrange op type in Perl 5.17.6
 
   * update to handle the new op allocation mechanism in Perl 5.17.2
 
   * clarify and expand documentation around list-like assignments
 
   * clarify documentation of deref() regarding lvalueness
 
   * remove the bulk of the documentation from the README file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Alias?expand=0&rev=15
2014-11-23 11:40:37 +00:00

77 lines
2.3 KiB
RPMSpec

#
# spec file for package perl-Data-Alias
#
# Copyright (c) 2014 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-Data-Alias
Version: 1.18
Release: 0
%define cpan_name Data-Alias
Summary: Comprehensive set of aliasing operations
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-Alias/
Source: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
Aliasing is the phenomenon where two different expressions actually refer
to the same thing. Modifying one will modify the other, and if you take a
reference to both, the two values are the same.
Aliasing occurs in Perl for example in for-loops and sub-calls:
for $var ($x) {
# here $var is an alias to $x
}
foo($y);
sub foo {
# here $_[0] is an alias to $y
}
Data::Alias is a module that allows you to apply "aliasing semantics" to a
section of code, causing aliases to be made wherever Perl would normally
make copies instead. You can use this to improve efficiency and
readability, when compared to using references.
The exact details of aliasing semantics are below under the /DETAILS
manpage.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__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 README
%changelog