forked from pool/perl-Scope-Upper
0.12
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Scope-Upper?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
Scope-Upper-0.12.tar.gz
Normal file
3
Scope-Upper-0.12.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:bcec93ee65d13cc7849ef61a6f0aedfec6986442e55b165fc3626b0a85e832fb
|
||||||
|
size 33843
|
5
perl-Scope-Upper.changes
Normal file
5
perl-Scope-Upper.changes
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 4 19:38:22 UTC 2010 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- initial version (0.12)
|
||||||
|
|
67
perl-Scope-Upper.spec
Normal file
67
perl-Scope-Upper.spec
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
# vim: set sw=4 ts=4 et nu:
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
Name: perl-Scope-Upper
|
||||||
|
Version: 0.12
|
||||||
|
Release: 0
|
||||||
|
Summary: Act on upper scopes
|
||||||
|
Source: http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/Scope-Upper-%{version}.tar.gz
|
||||||
|
URL: http://search.cpan.org/dist/Scope-Upper
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
License: Perl License
|
||||||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||||
|
Requires: perl = %{perl_version}
|
||||||
|
BuildRequires: perl
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(XSLoader)
|
||||||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(Exporter)
|
||||||
|
BuildRequires: perl(Config)
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.22
|
||||||
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||||||
|
BuildRequires: perl(Test::Portability::Files)
|
||||||
|
BuildRequires: perl(Test::Kwalitee)
|
||||||
|
Requires: perl(base)
|
||||||
|
Requires: perl(XSLoader)
|
||||||
|
Requires: perl(Exporter)
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module lets you defer actions *at run-time* that will take place when
|
||||||
|
the control flow returns into an upper scope. Currently, you can:
|
||||||
|
* hook an upper scope end with "reap" ;
|
||||||
|
* localize variables, array/hash values or deletions of elements in
|
||||||
|
higher contexts with respectively "localize", "localize_elem" and
|
||||||
|
"localize_delete" ;
|
||||||
|
* return values immediately to an upper level with "unwind", and know
|
||||||
|
which context was in use then with "want_at".
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n "Scope-Upper-%{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
|
||||||
|
|
||||||
|
%check
|
||||||
|
%__make test
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc Changes README
|
||||||
|
%dir %{perl_vendorarch}/Scope
|
||||||
|
%{perl_vendorarch}/Scope/Upper.pm
|
||||||
|
%dir %{perl_vendorarch}/auto/Scope
|
||||||
|
%{perl_vendorarch}/auto/Scope/Upper
|
||||||
|
%doc %{perl_man3dir}/Scope::Upper.%{perl_man3ext}%{ext_man}
|
||||||
|
/var/adm/perl-modules/%{name}
|
||||||
|
|
Reference in New Issue
Block a user