forked from pool/perl-Sub-Exporter-GlobExporter
Compare commits
10 Commits
47b32a07ae
...
15fbda3ab3
Author | SHA256 | Date | |
---|---|---|---|
15fbda3ab3 | |||
9a29a05c72 | |||
ffe3fec2f8 | |||
|
efbefdf613 | ||
|
fc25162fc5 | ||
|
48216522c7 | ||
|
8b7fb6c67b | ||
|
94ce420d84 | ||
|
53f3cf8fc5 | ||
|
3ba4837bba |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:dd850ac0e2b995d13955f50858e47e157d820c6a7df0f40b654552a4c4dc8045
|
|
||||||
size 11204
|
|
3
Sub-Exporter-GlobExporter-0.006.tar.gz
Normal file
3
Sub-Exporter-GlobExporter-0.006.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:de743f08026701c2a6a222a8b41c4cdc254b1a4afe7ef98987cd3aba4ce52696
|
||||||
|
size 17178
|
@@ -1,18 +0,0 @@
|
|||||||
diff -ruN Sub-Exporter-GlobExporter-0.002-orig/t/export.t Sub-Exporter-GlobExporter-0.002/t/export.t
|
|
||||||
--- Sub-Exporter-GlobExporter-0.002-orig/t/export.t 2010-11-24 00:34:48.000000000 +0100
|
|
||||||
+++ Sub-Exporter-GlobExporter-0.002/t/export.t 2011-02-01 18:08:47.000000000 +0100
|
|
||||||
@@ -1,7 +1,7 @@
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
|
|
||||||
-use Test::More;
|
|
||||||
+use Test::More qw(no_plan);
|
|
||||||
|
|
||||||
use lib 't/lib';
|
|
||||||
use TestGlob qw($Alpha);
|
|
||||||
@@ -31,4 +31,4 @@
|
|
||||||
main::is($Ctx, 2, 'imported $Alpha as Ctx');
|
|
||||||
}
|
|
||||||
|
|
||||||
-done_testing;
|
|
||||||
+#done_testing;
|
|
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
#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: SUSE-NonFree
|
||||||
|
#skip_noarch: 1
|
||||||
|
#custom_build: |-
|
||||||
|
#./Build build flags=%{?_smp_mflags} --myflag
|
||||||
|
#custom_test: |-
|
||||||
|
#startserver && make test
|
||||||
|
#ignore_requires: Bizarre::Module
|
@@ -1,3 +1,36 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 03:10:01 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||||
|
|
||||||
|
- updated to 0.006
|
||||||
|
see /usr/share/doc/packages/perl-Sub-Exporter-GlobExporter/Changes
|
||||||
|
|
||||||
|
0.006 2022-12-31 16:56:16-05:00 America/New_York
|
||||||
|
- update packaging and metadata
|
||||||
|
- minimum required Perl is now v5.12
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 11 10:31:21 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.005
|
||||||
|
see /usr/share/doc/packages/perl-Sub-Exporter-GlobExporter/Changes
|
||||||
|
|
||||||
|
0.005 2015-11-04 23:27:05-05:00 America/New_York
|
||||||
|
the "-as" argument can now be a scalar ref, to which the glob will be
|
||||||
|
assigned
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 25 07:36:02 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.004
|
||||||
|
fix links to github!
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 4 18:31:06 UTC 2013 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 0.003
|
||||||
|
fix some confusing mistakes in the docs (thanks, George Hartzell)
|
||||||
|
- remove Sub-Exporter-GlobExporter-Test_More.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 1 17:16:30 UTC 2011 - chris@computersalat.de
|
Tue Feb 1 17:16:30 UTC 2011 - chris@computersalat.de
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Sub-Exporter-GlobExporter
|
# spec file for package perl-Sub-Exporter-GlobExporter
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,63 +12,72 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
Name: perl-Sub-Exporter-GlobExporter
|
|
||||||
%define cpan_name Sub-Exporter-GlobExporter
|
%define cpan_name Sub-Exporter-GlobExporter
|
||||||
Summary: Export shared globs with Sub::Exporter collectors
|
Name: perl-Sub-Exporter-GlobExporter
|
||||||
License: GPL-1.0+ or Artistic-1.0
|
Version: 0.006
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
Version: 0.002
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://search.cpan.org/dist/Sub-Exporter-GlobExporter/
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-GlobExporter-%{version}.tar.gz
|
Summary: Export shared globs with Sub::Exporter collectors
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Patch: %{cpan_name}-Test_More.patch
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
%if 0%{?suse_version} <= 1110
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
||||||
BuildRequires: perl(Test::More)
|
|
||||||
%else
|
|
||||||
BuildRequires: perl(Test::More) >= 0.96
|
|
||||||
%endif
|
|
||||||
BuildRequires: perl(Scalar::Util)
|
|
||||||
BuildRequires: perl(Sub::Exporter)
|
BuildRequires: perl(Sub::Exporter)
|
||||||
Requires: perl(Scalar::Util)
|
BuildRequires: perl(Test::More) >= 0.96
|
||||||
Requires: perl(Sub::Exporter)
|
Requires: perl(Sub::Exporter)
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module enables you to export shared globs with Sub::Exporter
|
Sub::Exporter::GlobExporter provides only one routine, 'glob_exporter',
|
||||||
collectors
|
which may be called either by its full name or may be imported on request.
|
||||||
|
|
||||||
|
my $exporter = glob_exporter( $default_name, $globref_locator );
|
||||||
|
|
||||||
|
The routine returns a collection validator that will export a glob into the
|
||||||
|
importing package. It will export it under the name '$default_name', unless
|
||||||
|
an alternate name is given (as shown above). The glob that is installed is
|
||||||
|
specified by the '$globref_locator', which can be either the globref
|
||||||
|
itself, or a reference to a string which will be called on the exporter
|
||||||
|
|
||||||
|
For an example, see the SYNOPSIS, in which a method is defined to produce
|
||||||
|
the globref to share. This allows the glob-exporting package to be
|
||||||
|
subclassed, so the subclass may choose to either re-use the same glob when
|
||||||
|
exporting or to export a new one.
|
||||||
|
|
||||||
|
If there are entries in the arguments to the globref-exporting collector
|
||||||
|
_other_ than those beginning with a dash, a hashref of them will be passed
|
||||||
|
to the globref locator. In other words, if we were to write this:
|
||||||
|
|
||||||
|
use Shared::Symbol '$Symbol' => { arg => 1, -as => 2 };
|
||||||
|
|
||||||
|
It would result in a call like the following:
|
||||||
|
|
||||||
|
my $globref = Shared::Symbol->_shared_globref({ arg => 1 });
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{version}
|
||||||
%if 0%{?suse_version} <= 1110
|
|
||||||
%patch -p1
|
|
||||||
%{__perl} -p -i -e 's|use ExtUtils::MakeMaker 6.31;|use ExtUtils::MakeMaker 6.30;|' Makefile.PL
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(644,root,root,755)
|
%doc Changes README
|
||||||
%doc Changes dist.ini LICENSE README
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user