Files
perl-IOC/perl-IOC.spec
2025-08-12 18:14:47 +02:00

97 lines
3.6 KiB
RPMSpec

#
# spec file for package perl-IOC
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name IOC
Name: perl-IOC
Version: 0.290.0
Release: 0
# 0.29 -> normalize -> 0.290.0
%define cpan_version 0.29
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Lightweight IOC (Inversion of Control) framework
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/ST/STEVAN/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
Patch0: defined-array-ConstructorInjection.patch
Patch1: defined-array-SetterInjection.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Class::Interfaces) >= 0.10.0
BuildRequires: perl(Class::StrongSingleton) >= 0.10.0
BuildRequires: perl(Class::Throwable) >= 0.40.0
BuildRequires: perl(Test::Exception) >= 0.15
BuildRequires: perl(XML::SAX) >= 0.12
Requires: perl(Class::Interfaces) >= 0.10.0
Requires: perl(Class::StrongSingleton) >= 0.10.0
Requires: perl(Class::Throwable) >= 0.40.0
Requires: perl(Test::Exception) >= 0.15
Requires: perl(XML::SAX) >= 0.12
Provides: perl(IOC) = %{version}
Provides: perl(IOC::Config::XML) = 0.30.0
Provides: perl(IOC::Config::XML::SAX::Handler) = 0.20.0
Provides: perl(IOC::Container) = 0.140.0
Provides: perl(IOC::Container::MethodResolution) = 0.20.0
Provides: perl(IOC::Exceptions) = 0.70.0
Provides: perl(IOC::Interfaces) = 0.20.0
Provides: perl(IOC::Proxy) = 0.70.0
Provides: perl(IOC::Proxy::Interfaces) = 0.20.0
Provides: perl(IOC::Registry) = 0.50.0
Provides: perl(IOC::Service) = 0.80.0
Provides: perl(IOC::Service::ConstructorInjection) = 0.70.0
Provides: perl(IOC::Service::Deferred) = 0.20.0
Provides: perl(IOC::Service::Literal) = 0.10.0
Provides: perl(IOC::Service::Parameterized) = 0.10.0
Provides: perl(IOC::Service::Prototype) = 0.20.0
Provides: perl(IOC::Service::Prototype::ConstructorInjection) = 0.10.0
Provides: perl(IOC::Service::Prototype::SetterInjection) = 0.10.0
Provides: perl(IOC::Service::SetterInjection) = 0.60.0
Provides: perl(IOC::Visitor::SearchForContainer) = 0.30.0
Provides: perl(IOC::Visitor::SearchForService) = 0.30.0
Provides: perl(IOC::Visitor::ServiceLocator) = 0.20.0
Provides: perl(Test::IOC) = 0.10.0
%undefine __perllib_provides
%{perl_requires}
%description
This module provide a lightweight IOC or Inversion of Control framework.
Inversion of Control, sometimes called Dependency Injection, is a component
management style which aims to clean up component configuration and provide
a cleaner, more flexible means of configuring a large application.
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog