forked from pool/perl-Params-Coerce
Compare commits
10 Commits
ade5c91a39
...
f9a9be5c37
Author | SHA256 | Date | |
---|---|---|---|
f9a9be5c37 | |||
b822e48eba | |||
e24d995b25 | |||
|
3821c260e3 | ||
|
770aafd115 | ||
|
c221be9d9a | ||
|
bc7e6effb9 | ||
|
dda63d544f | ||
|
10f57dbd8e | ||
|
d7a12d569b |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8431e2871c899aecab48561cff32247b075cd4dd7260a71ead520b38b6a7fd75
|
||||
size 23061
|
3
Params-Coerce-0.15.tar.gz
Normal file
3
Params-Coerce-0.15.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:03bc2471a7e6aa927ba313eda7d73c50820694e801a5bbe2fddcded8f493b67f
|
||||
size 31426
|
3
cpanspec.yml
Normal file
3
cpanspec.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
post_prep:
|
||||
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
@@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 9 03:09:21 UTC 2021 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.15
|
||||
see /usr/share/doc/packages/perl-Params-Coerce/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 08:19:37 UTC 2017 - coolo@suse.com
|
||||
|
||||
- patch the Makefile to build with perl 5.26
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 18 11:07:33 UTC 2011 - coolo@suse.com
|
||||
|
||||
- use original .tar.gz
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 30 19:20:36 UTC 2010 - coolo@novell.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Params-Coerce (Version 0.14)
|
||||
# spec file for package perl-Params-Coerce
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,72 +12,54 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: perl-Params-Coerce
|
||||
%define cpan_name Params-Coerce
|
||||
Name: perl-Params-Coerce
|
||||
Version: 0.15
|
||||
Release: 0
|
||||
Summary: Allows your classes to do coercion of parameters
|
||||
Version: 0.14
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Params-Coerce/
|
||||
#Source: http://www.cpan.org/modules/by-module/Params/Params-Coerce-%{version}.tar.gz
|
||||
Source: %{cpan_name}-%{version}.tar.bz2
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More) >= 0.47
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Params::Util) >= 0.05
|
||||
BuildRequires: perl(Scalar::Util) >= 1.11
|
||||
#
|
||||
Requires: perl(Carp)
|
||||
Requires: perl(Params::Util) >= 0.05
|
||||
Requires: perl(Scalar::Util) >= 1.11
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
A big part of good API design is that we should be able to be flexible in the
|
||||
ways that we take parameters.
|
||||
A big part of good API design is that we should be able to be flexible in
|
||||
the ways that we take parameters.
|
||||
|
||||
Params::Coerce attempts to encourage this, by making it easier to take a
|
||||
variety of different arguments, while adding negligable additional complexity
|
||||
to your code.
|
||||
|
||||
Author:
|
||||
-------
|
||||
Adam Kennedy <adamk@cpan.org>
|
||||
variety of different arguments, while adding negligible additional
|
||||
complexity to your code.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
# MANUAL BEGIN
|
||||
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse inc::Module::Install/' Makefile.PL
|
||||
# MANUAL END
|
||||
|
||||
%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
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE README
|
||||
%doc Changes CONTRIBUTING README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user