Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-M
perl-Module-Patch
perl-Module-Patch.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Module-Patch.spec of Package perl-Module-Patch
# # spec file for package perl-Module-Patch # # 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 Module-Patch Name: perl-Module-Patch Version: 0.278 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Patch package with a set of patches URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Capture::Tiny) BuildRequires: perl(Log::ger) >= 0.038 BuildRequires: perl(Module::Load) BuildRequires: perl(Monkey::Patch::Action) >= 0.060 BuildRequires: perl(Package::Stash) BuildRequires: perl(Package::Util::Lite) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) >= 0.96 BuildRequires: perl(parent) Requires: perl(Log::ger) >= 0.038 Requires: perl(Monkey::Patch::Action) >= 0.060 Requires: perl(Package::Stash) Requires: perl(Package::Util::Lite) %{perl_requires} %description Module::Patch is basically a convenient way to define and bundle a set of patches. Actual patching is done by Monkey::Patch::Action, which provides lexically scoped patching. There are two ways to use this module: * * subclass it This is used for convenient bundling of patches. You create a _patch module_ (a module that monkey-patches other module by adding/replacing/wrapping/deleting subroutines of target module) by subclassing Module::Patch and providing the patches specification in patch_data() method. Patch module should be named _Some::Module_::Patch::_YourCategory_. _YourCategory_ should be a keyword or phrase (verb + obj) that describes what the patch does. For example, HTTP::Daemon::Patch::IPv6, LWP::UserAgent::Patch::LogResponse. Patch module should be use()'d, or require()'d + import()'ed instead of just require()'d, because the patching is done in import(). * * require/import it directly Module::Patch provides *patch_package* which is the actual routine to do the patching. %prep %autosetup -n %{cpan_name}-%{version} %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 %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor