forked from pool/perl-constant-defer
Compare commits
10 Commits
2ecaffc64c
...
fb21db55b2
Author | SHA256 | Date | |
---|---|---|---|
|
fb21db55b2 | ||
|
d5371fcc18 | ||
|
cfbf540ad4 | ||
|
300d0fa0e6 | ||
4259542263 | |||
|
1f82cdcac9 | ||
|
73146cd0ad | ||
|
4dfaaec264 | ||
|
46351aed33 | ||
|
0c4723fcf9 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:985fe4be377dc58d424dd3e6be1cab81f7ef4a75730d99298d94476aace0d215
|
||||
size 42516
|
3
constant-defer-6.tar.gz
Normal file
3
constant-defer-6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b21263198ca22686efff3ae987a240be423dd2160afdeb29fe716d032986ffa
|
||||
size 43427
|
21
cpanspec.yml
Normal file
21
cpanspec.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
license: GPL-3.0+
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 23 17:54:26 UTC 2015 - coolo@suse.com
|
||||
|
||||
- add the license to cpanspec.yml
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 23 09:07:46 UTC 2015 - cdenicolo@suse.com
|
||||
|
||||
- license update: GPL-3.0+
|
||||
license version is 3.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 20:23:03 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 6
|
||||
see /usr/share/doc/packages/perl-constant-defer/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 12:03:50 UTC 2014 - coolo@suse.com
|
||||
|
||||
- fix license - GPL-3.0+
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 14 08:00:18 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-constant-defer (Version 5)
|
||||
# spec file for package perl-constant-defer
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -15,44 +15,46 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-constant-defer
|
||||
Version: 5
|
||||
Release: 1
|
||||
License: GPL+
|
||||
Version: 6
|
||||
Release: 0
|
||||
#Upstream: GPL-1.0+
|
||||
%define cpan_name constant-defer
|
||||
Summary: Constant subs with deferred value calculation.
|
||||
Url: http://search.cpan.org/dist/constant-defer/
|
||||
Summary: Constant Subs with Deferred Value Calculation
|
||||
License: GPL-3.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/K/KR/KRYDE/%{cpan_name}-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/constant-defer/
|
||||
Source0: http://www.cpan.org/authors/id/K/KR/KRYDE/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test)
|
||||
BuildRequires: perl(vars)
|
||||
Requires: perl(Test)
|
||||
Requires: perl(vars)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
'constant::defer' creates a subroutine which on the first call runs given
|
||||
code to calculate its value, and on the second and subsequent calls just
|
||||
returns that value, like a constant. The value code is discarded once run,
|
||||
allowing it to be garbage collected.
|
||||
code to calculate its value, and on any subsequent calls just returns that
|
||||
value, like a constant. The value code is discarded once run, allowing it
|
||||
to be garbage collected.
|
||||
|
||||
Deferring a calculation is good if it might take a lot of work or produce a
|
||||
big result, but is only needed sometimes or only well into a program run.
|
||||
If it's never needed then the value code never runs.
|
||||
big result but is only needed sometimes or only well into a program run. If
|
||||
it's never needed then the value code never runs.
|
||||
|
||||
A deferred constant is generally not inlined or folded (see the
|
||||
perlop/Constant Folding manpage) like a plain 'constant' since it's not a
|
||||
single scalar value. In the current implementation a deferred constant
|
||||
becomes a plain one after the first use, so may inline etc in code compiled
|
||||
after that (see the /IMPLEMENTATION manpage below).
|
||||
perlop/Constant Folding manpage) since it's not a single scalar value. In
|
||||
the current implementation a deferred constant becomes a plain constant
|
||||
after the first use, so may inline etc in code compiled after that (see the
|
||||
/IMPLEMENTATION manpage below).
|
||||
|
||||
See _examples/simple.pl_ in the constant-defer source code for a complete
|
||||
sample program.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@@ -66,11 +68,8 @@ after that (see the /IMPLEMENTATION manpage below).
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc %attr(644,-,-) Changes COPYING README examples
|
||||
%doc Changes COPYING examples README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user