8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
Stephan Kulow
fb21db55b2 Accepting request 298845 from devel:languages:perl
- add the license to cpanspec.yml

OBS-URL: https://build.opensuse.org/request/show/298845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-constant-defer?expand=0&rev=4
2015-04-25 07:53:26 +00:00
Stephan Kulow
d5371fcc18 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=10
2015-04-23 17:54:41 +00:00
Stephan Kulow
cfbf540ad4 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=9
2015-04-23 17:48:10 +00:00
Stephan Kulow
300d0fa0e6 Accepting request 298787 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/298787
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-constant-defer?expand=0&rev=3
2015-04-23 17:42:03 +00:00
4259542263 Accepting request 298766 from home:dec16180:ldig:branches:devel:languages:perl
license update: GPL-3.0+
license version is 3.0

OBS-URL: https://build.opensuse.org/request/show/298766
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=7
2015-04-23 11:29:38 +00:00
Stephan Kulow
1f82cdcac9 Accepting request 296945 from devel:languages:perl:autoupdate
update to be fixed manually

OBS-URL: https://build.opensuse.org/request/show/296945
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=6
2015-04-15 18:33:30 +00:00
Stephan Kulow
73146cd0ad Accepting request 237515 from devel:languages:perl
needed for slic3r

OBS-URL: https://build.opensuse.org/request/show/237515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-constant-defer?expand=0&rev=1
2014-06-16 19:30:01 +00:00
Stephan Kulow
4dfaaec264 - fix license - GPL-3.0+
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=4
2014-06-16 12:04:06 +00:00
Stephan Kulow
46351aed33 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=3 2011-04-15 07:27:56 +00:00
Stephan Kulow
0c4723fcf9 fix file list for older distros
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-constant-defer?expand=0&rev=2
2011-04-14 08:30:18 +00:00
5 changed files with 71 additions and 29 deletions

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b21263198ca22686efff3ae987a240be423dd2160afdeb29fe716d032986ffa
size 43427

21
cpanspec.yml Normal file
View 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

View File

@@ -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

View File

@@ -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