8
0

Compare commits

...

10 Commits

Author SHA256 Message Date
15fbda3ab3 Accepting request 1055889 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1055889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Exporter-GlobExporter?expand=0&rev=9
2023-01-04 16:53:59 +00:00
9a29a05c72 Accepting request 1046487 from devel:languages:perl:autoupdate
- 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

OBS-URL: https://build.opensuse.org/request/show/1046487
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Exporter-GlobExporter?expand=0&rev=16
2023-01-04 15:35:23 +00:00
ffe3fec2f8 Accepting request 343861 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/343861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Exporter-GlobExporter?expand=0&rev=8
2015-11-12 18:41:16 +00:00
Stephan Kulow
efbefdf613 Accepting request 343818 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/343818
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Exporter-GlobExporter?expand=0&rev=14
2015-11-11 14:55:11 +00:00
Stephan Kulow
fc25162fc5 Accepting request 208664 from devel:languages:perl
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/208664
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Exporter-GlobExporter?expand=0&rev=6
2013-11-28 06:38:31 +00:00
Stephan Kulow
48216522c7 update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Exporter-GlobExporter?expand=0&rev=12
2013-11-25 10:13:20 +00:00
Stephan Kulow
8b7fb6c67b Accepting request 177603 from devel:languages:perl
- updated to 0.003
 fix some confusing mistakes in the docs (thanks, George Hartzell)
- remove Sub-Exporter-GlobExporter-Test_More.patch (forwarded request 177598 from coolo)

OBS-URL: https://build.opensuse.org/request/show/177603
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Exporter-GlobExporter?expand=0&rev=4
2013-06-06 11:29:13 +00:00
Stephan Kulow
94ce420d84 Accepting request 177598 from home:coolo:update-perl
- updated to 0.003
 fix some confusing mistakes in the docs (thanks, George Hartzell)
- remove Sub-Exporter-GlobExporter-Test_More.patch

OBS-URL: https://build.opensuse.org/request/show/177598
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Exporter-GlobExporter?expand=0&rev=10
2013-06-04 18:43:15 +00:00
Stephan Kulow
53f3cf8fc5 Accepting request 99451 from devel:languages:perl
new perl package

OBS-URL: https://build.opensuse.org/request/show/99451
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Sub-Exporter-GlobExporter?expand=0&rev=1
2012-01-09 20:44:07 +00:00
Stephan Kulow
3ba4837bba OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Sub-Exporter-GlobExporter?expand=0&rev=8 2012-01-09 10:53:42 +00:00
6 changed files with 102 additions and 55 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
#
# 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
# 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)
# 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
Summary: Export shared globs with Sub::Exporter collectors
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Version: 0.002
Name: perl-Sub-Exporter-GlobExporter
Version: 0.006
Release: 0
Url: http://search.cpan.org/dist/Sub-Exporter-GlobExporter/
#Source: http://www.cpan.org/authors/id/R/RJ/RJBS/Sub-Exporter-GlobExporter-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Patch: %{cpan_name}-Test_More.patch
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Export shared globs with Sub::Exporter collectors
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%if 0%{?suse_version} <= 1110
BuildRequires: perl(Test::More)
%else
BuildRequires: perl(Test::More) >= 0.96
%endif
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
BuildRequires: perl(Sub::Exporter)
Requires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 0.96
Requires: perl(Sub::Exporter)
%{perl_requires}
%description
This module enables you to export shared globs with Sub::Exporter
collectors
Sub::Exporter::GlobExporter provides only one routine, 'glob_exporter',
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
%setup -q -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
%autosetup -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes dist.ini LICENSE README
%doc Changes README
%license LICENSE
%changelog