forked from pool/perl-MooseX-OneArgNew
Compare commits
10 Commits
33e3a62eee
...
34215298c4
Author | SHA256 | Date | |
---|---|---|---|
34215298c4 | |||
20e6102323 | |||
55a2041ef7 | |||
|
2bceb4fcdf | ||
|
e35d7df6f0 | ||
|
4b9d0b3b14 | ||
|
84da7fa341 | ||
|
97e054742d | ||
|
514129bd12 | ||
|
fb8cb14f7c |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f548f03f36943c42dd704c2dca10b76718ef4642a44d8740f175e7a0031add71
|
||||
size 10909
|
3
MooseX-OneArgNew-0.007.tar.gz
Normal file
3
MooseX-OneArgNew-0.007.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:84282435f1169cf09d7513fa9387e2091791635cf35a078b500b829aeea06138
|
||||
size 17094
|
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,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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user