initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Lexical-Var?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
Lexical-Var-0.009.tar.gz
Normal file
3
Lexical-Var-0.009.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3a88efbef138dd7392169ed155c340db10d4d7c784b5e13eb7ec094ced98e319
|
||||
size 31859
|
||||
6
perl-Lexical-Var.changes
Normal file
6
perl-Lexical-Var.changes
Normal file
@@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 17 05:10:35 UTC 2015 - coolo@suse.com
|
||||
|
||||
- initial package $version
|
||||
* created by $NAME $VERSION
|
||||
|
||||
98
perl-Lexical-Var.spec
Normal file
98
perl-Lexical-Var.spec
Normal file
@@ -0,0 +1,98 @@
|
||||
#
|
||||
# spec file for package perl-Lexical-Var
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX 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-Var
|
||||
Version: 0.009
|
||||
Release: 0
|
||||
%define cpan_name Lexical-Var
|
||||
Summary: Static Variables Without Namespace Pollution
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Lexical-Var/
|
||||
Source0: http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/%{cpan_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::CBuilder) >= 0.15
|
||||
BuildRequires: perl(Lexical::SealRequireHints) >= 0.006
|
||||
BuildRequires: perl(Module::Build)
|
||||
Requires: perl(Lexical::SealRequireHints) >= 0.006
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This module implements lexical scoping of static variables and subroutines.
|
||||
Although it can be used directly, it is mainly intended to be
|
||||
infrastructure for modules that manage namespaces.
|
||||
|
||||
This module influences the meaning of single-part variable names that
|
||||
appear directly in code, such as "'$foo'". Normally, in the absence of any
|
||||
particular declaration, or under the effect of an 'our' declaration, this
|
||||
would refer to the scalar variable of that name located in the current
|
||||
package. A 'Lexical::Var' declaration can change this to refer to any
|
||||
particular scalar, bypassing the package system entirely. A variable name
|
||||
that includes an explicit package part, such as "'$main::foo'", always
|
||||
refers to the variable in the specified package, and is unaffected by this
|
||||
module. A symbolic reference through a string value, such as "'${'foo'}'",
|
||||
also looks in the package system, and so is unaffected by this module.
|
||||
|
||||
The types of name that can be influenced are scalar ("'$foo'"), array
|
||||
("'@foo'"), hash ("'%foo'"), subroutine ("'&foo'"), and glob ("'*foo'"). A
|
||||
definition for any of these names also affects code that logically refers
|
||||
to the same entity, even when the name is spelled without its usual sigil.
|
||||
For example, any definition of "'@foo'" affects element references such as
|
||||
"'$foo[0]'". Barewords in filehandle context actually refer to the glob
|
||||
variable. Bareword references to subroutines, such as "'foo(123)'", only
|
||||
work on Perl 5.11.2 and later; on earlier Perls you must use the '&' sigil,
|
||||
as in "'&foo(123)'".
|
||||
|
||||
Where a scalar name is defined to refer to a constant (read-only) scalar,
|
||||
references to the constant through the lexical namespace can participate in
|
||||
compile-time constant folding. This can avoid the need to check
|
||||
configuration values (such as whether debugging is enabled) at runtime.
|
||||
|
||||
A name definition supplied by this module takes effect from the end of the
|
||||
definition statement up to the end of the immediately enclosing block,
|
||||
except where it is shadowed within a nested block. This is the same lexical
|
||||
scoping that the 'my', 'our', and 'state' keywords supply. Definitions from
|
||||
the Lexical::Var manpage and from 'my'/'our'/'state' can shadow each other.
|
||||
These lexical definitions propagate into string 'eval's, on Perl versions
|
||||
that support it (5.9.3 and later).
|
||||
|
||||
This module only manages variables of static duration (the kind of duration
|
||||
that 'our' and 'state' variables have). To get a fresh variable for each
|
||||
invocation of a function, use 'my'.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user