2011-07-20 09:10:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-MooseX-Types
|
|
|
|
#
|
2025-05-20 11:36:51 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2011-07-20 09:10:04 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2025-05-20 11:36:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-20 09:10:04 +00:00
|
|
|
#
|
|
|
|
|
2010-11-04 22:03:26 +00:00
|
|
|
|
2025-05-20 11:36:51 +00:00
|
|
|
%define cpan_name MooseX-Types
|
2010-02-09 11:04:46 +00:00
|
|
|
Name: perl-MooseX-Types
|
2025-05-24 16:17:17 +00:00
|
|
|
Version: 0.510.0
|
2011-12-06 12:51:20 +00:00
|
|
|
Release: 0
|
2025-05-24 16:17:17 +00:00
|
|
|
# 0.51 -> normalize -> 0.510.0
|
|
|
|
%define cpan_version 0.51
|
2025-05-20 11:36:51 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-02-09 11:04:46 +00:00
|
|
|
Summary: Organise your Moose types in libraries
|
2025-05-20 11:36:51 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-08-20 10:51:43 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:48 +02:00
|
|
|
Source100: README.md
|
2012-05-30 12:30:47 +00:00
|
|
|
BuildArch: noarch
|
2010-11-04 22:03:26 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:43:42 +00:00
|
|
|
BuildRequires: perl-macros
|
2025-05-20 11:36:51 +00:00
|
|
|
BuildRequires: perl(Carp::Clan) >= 6.0.0
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.34
|
2016-12-15 18:16:38 +00:00
|
|
|
BuildRequires: perl(Module::Metadata)
|
2013-10-04 15:29:49 +00:00
|
|
|
BuildRequires: perl(Module::Runtime)
|
2012-05-30 12:30:47 +00:00
|
|
|
BuildRequires: perl(Moose) >= 1.06
|
2013-07-24 12:28:23 +00:00
|
|
|
BuildRequires: perl(Moose::Exporter)
|
|
|
|
BuildRequires: perl(Moose::Meta::TypeConstraint::Union)
|
|
|
|
BuildRequires: perl(Moose::Role)
|
|
|
|
BuildRequires: perl(Moose::Util::TypeConstraints)
|
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.19
|
|
|
|
BuildRequires: perl(Sub::Exporter)
|
2015-08-20 10:51:43 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter::ForMethods) >= 0.100052
|
2016-12-15 18:16:38 +00:00
|
|
|
BuildRequires: perl(Sub::Install)
|
2025-05-24 16:17:17 +00:00
|
|
|
BuildRequires: perl(Sub::Util)
|
2011-06-08 13:08:00 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2014-09-15 13:10:45 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2025-05-24 16:17:17 +00:00
|
|
|
BuildRequires: perl(Test::Needs)
|
2025-05-20 11:36:51 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean) >= 0.160
|
2025-05-24 16:17:17 +00:00
|
|
|
BuildRequires: perl(parent)
|
2025-05-20 11:36:51 +00:00
|
|
|
Requires: perl(Carp::Clan) >= 6.0.0
|
2013-10-04 15:29:49 +00:00
|
|
|
Requires: perl(Module::Runtime)
|
2011-06-08 13:08:20 +00:00
|
|
|
Requires: perl(Moose) >= 1.06
|
2013-07-24 12:28:23 +00:00
|
|
|
Requires: perl(Moose::Exporter)
|
|
|
|
Requires: perl(Moose::Meta::TypeConstraint::Union)
|
|
|
|
Requires: perl(Moose::Util::TypeConstraints)
|
|
|
|
Requires: perl(Scalar::Util) >= 1.19
|
|
|
|
Requires: perl(Sub::Exporter)
|
2015-08-20 10:51:43 +00:00
|
|
|
Requires: perl(Sub::Exporter::ForMethods) >= 0.100052
|
2016-12-15 18:16:38 +00:00
|
|
|
Requires: perl(Sub::Install)
|
2025-05-24 16:17:17 +00:00
|
|
|
Requires: perl(Sub::Util)
|
2025-05-20 11:36:51 +00:00
|
|
|
Requires: perl(namespace::autoclean) >= 0.160
|
2025-05-24 16:17:17 +00:00
|
|
|
Requires: perl(parent)
|
2025-05-20 11:36:51 +00:00
|
|
|
Provides: perl(MooseX::Types) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::Base) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::CheckedUtilExports) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::Combine) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::Moose) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::TypeDecorator) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::UndefinedType) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::Util) = %{version}
|
|
|
|
Provides: perl(MooseX::Types::Wrapper) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2012-05-30 12:30:47 +00:00
|
|
|
%{perl_requires}
|
2010-02-09 11:04:46 +00:00
|
|
|
|
|
|
|
%description
|
2012-05-30 12:30:47 +00:00
|
|
|
The type system provided by Moose effectively makes all of its builtin type
|
|
|
|
global, as are any types you declare with Moose. This means that every
|
2013-10-04 15:29:49 +00:00
|
|
|
module that declares a type named 'PositiveInt' is sharing the same type
|
2012-05-30 12:30:47 +00:00
|
|
|
object. This can be a problem when different parts of the code base want to
|
|
|
|
use the same name for different things.
|
|
|
|
|
|
|
|
This package lets you declare types using short names, but behind the
|
|
|
|
scenes it namespaces all your type declarations, effectively prevent name
|
|
|
|
clashes between packages.
|
|
|
|
|
|
|
|
This is done by creating a type library module like 'MyApp::Types' and then
|
|
|
|
importing types from that module into other modules.
|
|
|
|
|
|
|
|
As a side effect, the declaration mechanism allows you to write type names
|
|
|
|
as barewords (really function calls), which catches typos in names at
|
|
|
|
compile time rather than run time.
|
|
|
|
|
|
|
|
This module also provides some helper functions for using Moose types
|
|
|
|
outside of attribute declarations.
|
|
|
|
|
|
|
|
If you mix string-based names with types created by this module, it will
|
|
|
|
warn, with a few exceptions. If you are declaring a 'class_type()' or
|
|
|
|
'role_type()' within your type library, or if you use a fully qualified
|
|
|
|
name like '"MyApp::Foo"'.
|
2010-02-09 11:04:46 +00:00
|
|
|
|
|
|
|
%prep
|
2025-05-20 11:36:51 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
2010-02-09 11:04:46 +00:00
|
|
|
|
|
|
|
%build
|
2025-05-20 11:36:51 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2013-10-04 15:29:49 +00:00
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2012-05-30 12:30:47 +00:00
|
|
|
|
|
|
|
%check
|
2013-10-04 15:29:49 +00:00
|
|
|
./Build test
|
2010-02-09 11:04:46 +00:00
|
|
|
|
|
|
|
%install
|
2013-10-04 15:29:49 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2012-05-30 12:30:47 +00:00
|
|
|
%perl_gen_filelist
|
2011-06-08 13:08:20 +00:00
|
|
|
|
2012-05-30 12:30:47 +00:00
|
|
|
%files -f %{name}.files
|
2025-05-20 11:36:51 +00:00
|
|
|
%doc Changes CONTRIBUTING README
|
|
|
|
%license LICENCE
|
2011-11-18 11:40:04 +00:00
|
|
|
|
2011-07-20 09:10:04 +00:00
|
|
|
%changelog
|