1
0

Compare commits

...

10 Commits

Author SHA256 Message Date
34215298c4 Accepting request 1055897 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/1055897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-OneArgNew?expand=0&rev=10
2023-01-04 16:54:06 +00:00
20e6102323 Accepting request 1046387 from devel:languages:perl:autoupdate
- updated to 0.007
   see /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
  0.007     2022-12-31 21:16:30-05:00 America/New_York
          - update metadata: author address

OBS-URL: https://build.opensuse.org/request/show/1046387
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-OneArgNew?expand=0&rev=17
2023-01-04 15:38:38 +00:00
55a2041ef7 Accepting request 980449 from devel:languages:perl
OBS-URL: https://build.opensuse.org/request/show/980449
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-OneArgNew?expand=0&rev=9
2022-06-02 19:54:26 +00:00
Lars Vogdt
2bceb4fcdf Accepting request 979970 from devel:languages:perl:autoupdate
- updated to 0.006
   see /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
  0.006     2022-05-29 15:48:22-04:00 America/New_York
          - update metadata: author address, support window, etc.

OBS-URL: https://build.opensuse.org/request/show/979970
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-OneArgNew?expand=0&rev=15
2022-06-02 06:58:56 +00:00
Stephan Kulow
e35d7df6f0 Accepting request 317470 from devel:languages:perl
1

OBS-URL: https://build.opensuse.org/request/show/317470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-OneArgNew?expand=0&rev=8
2015-07-20 09:22:30 +00:00
Stephan Kulow
4b9d0b3b14 Accepting request 317373 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/317373
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-OneArgNew?expand=0&rev=13
2015-07-19 06:09:01 +00:00
Tomáš Chvátal
84da7fa341 Accepting request 202413 from devel:languages:perl
- updated to 0.004
  update repo and bugtracker metadata

OBS-URL: https://build.opensuse.org/request/show/202413
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-OneArgNew?expand=0&rev=6
2013-10-06 12:36:46 +00:00
Stephan Kulow
97e054742d - updated to 0.004
update repo and bugtracker metadata

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-OneArgNew?expand=0&rev=11
2013-10-06 12:16:55 +00:00
Stephan Kulow
514129bd12 Accepting request 177852 from devel:languages:perl
update (forwarded request 177817 from coolo)

OBS-URL: https://build.opensuse.org/request/show/177852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-MooseX-OneArgNew?expand=0&rev=4
2013-06-07 05:05:42 +00:00
Stephan Kulow
fb8cb14f7c Accepting request 177817 from home:coolo:update-perl
update

OBS-URL: https://build.opensuse.org/request/show/177817
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-OneArgNew?expand=0&rev=9
2013-06-06 05:10:52 +00:00
5 changed files with 100 additions and 33 deletions

View File

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

View File

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

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,44 @@
-------------------------------------------------------------------
Mon Jan 2 03:15:36 UTC 2023 - Tina Müller <timueller+perl@suse.de>
- updated to 0.007
see /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
0.007 2022-12-31 21:16:30-05:00 America/New_York
- update metadata: author address
-------------------------------------------------------------------
Mon May 30 03:07:23 UTC 2022 - Tina Müller <timueller+perl@suse.de>
- updated to 0.006
see /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
0.006 2022-05-29 15:48:22-04:00 America/New_York
- update metadata: author address, support window, etc.
-------------------------------------------------------------------
Sat Jul 18 08:54:46 UTC 2015 - coolo@suse.com
- updated to 0.005
see /usr/share/doc/packages/perl-MooseX-OneArgNew/Changes
0.005 2015-07-14 21:52:35-04:00 America/New_York
- bump required version of MXRP
-------------------------------------------------------------------
Sun Oct 6 12:16:28 UTC 2013 - coolo@suse.com
- updated to 0.004
update repo and bugtracker metadata
-------------------------------------------------------------------
Wed Jun 5 18:58:04 UTC 2013 - coolo@suse.com
- updated to 0.003
add a "coerce" parameter to the role; now ->new can accept one arg
that can be coerced to the expected type; suggested by Mark Jason
Dominus
-------------------------------------------------------------------
Mon Jan 9 11:54:10 UTC 2012 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-MooseX-OneArgNew
#
# 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,70 +12,73 @@
# 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-MooseX-OneArgNew
Version: 0.002
Release: 0
%define cpan_name MooseX-OneArgNew
Summary: teach ->new to accept single, non-hashref arguments
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-OneArgNew/
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/MooseX-OneArgNew-%{version}.tar.gz
Name: perl-MooseX-OneArgNew
Version: 0.007
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Teach ->new to accept single, non-hashref arguments
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
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(MooseX::Role::Parameterized) >= 1.01
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(namespace::autoclean)
Requires: perl(Moose::Util::TypeConstraints)
Requires: perl(MooseX::Role::Parameterized)
Requires: perl(MooseX::Role::Parameterized) >= 1.01
Requires: perl(namespace::autoclean)
%{perl_requires}
%description
MooseX::OneArgNew lets your constructor take a single argument, which will
be translated into the value for a one-entry hashref. It is a the
parameterized role|MooseX::Role::Parameterized manpage with two parameters:
be translated into the value for a one-entry hashref. It is a parameterized
role|MooseX::Role::Parameterized with three parameters:
* type
The Moose type that the single argument must be for the one-arg form to
work. This should be an existing type, and may be either a string type or
a MooseX::Type.
The Moose type that the single argument must be for the one-arg form to
work. This should be an existing type, and may be either a string type or a
MooseX::Type.
* init_arg
This is the string that will be used as the key for the hashref
constructed from the one-arg call to new.
This is the string that will be used as the key for the hashref constructed
from the one-arg call to new.
* coerce
If true, a single argument to new will be coerced into the expected type if
possible. Keep in mind that if there are no coercions for the type, this
will be an error, and that if a coercion from HashRef exists, you might be
getting yourself into a weird situation.
%prep
%setup -q -n %{cpan_name}-%{version}
%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(-,root,root,755)
%doc LICENSE README
%doc Changes README
%license LICENSE
%changelog