# # spec file for package perl-Devel-Local # # 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 Devel-Local Name: perl-Devel-Local Version: 0.220.0 Release: 0 # 0.22 -> normalize -> 0.220.0 %define cpan_version 0.22 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Use Development Code in Place URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(Devel::Local) = %{version} Provides: perl(Devel::Local::PATH) Provides: perl(Devel::Local::PERL5LIB) %undefine __perllib_provides %{perl_requires} %description Sometimes when you are developing Perl software there can several Perl module code repositories involved. This module lets you specify which repositories you want to load Perl modules from, and formats them into a PERL5LIB environment variable format. Devel::Local takes a list of Perl module repositories that you specify in your current directory or your home directory. It adds the lib/ subdirectories to the current value of PERL5LIB, and it also adds the bin/ subdirectories to your PATH environment variable. You can use absolute paths, relative paths and even type-globs. In addition to keeping a list of paths in specially named files, you can name a specific list file or name specific paths containing lib and bin dirs. Devel::Local always converts the paths to absolute forms, so switching directories should not break the behavior. %prep %autosetup -n %{cpan_name}-%{cpan_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 CONTRIBUTING README %license LICENSE %changelog