# # spec file for package perl-Dist-Zilla-Plugin-MetaResourcesFromGit # # 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 Dist-Zilla-Plugin-MetaResourcesFromGit Name: perl-Dist-Zilla-Plugin-MetaResourcesFromGit Version: 1.103.620 Release: 0 %define cpan_version 1.103620 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Metadata resource URLs from Git configuration URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/O/OL/OLIVER/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Config::INI::Reader) BuildRequires: perl(Dist::Zilla::Plugin::MetaResources) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31 BuildRequires: perl(Moose) BuildRequires: perl(Path::Class) BuildRequires: perl(String::Formatter) Requires: perl(Config::INI::Reader) Requires: perl(Dist::Zilla::Plugin::MetaResources) Requires: perl(Moose) Requires: perl(Path::Class) Requires: perl(String::Formatter) Provides: perl(Dist::Zilla::Plugin::MetaResourcesFromGit) = %{version} %undefine __perllib_provides %{perl_requires} %description This plugin is a drop-in replacement for Dist::Zilla::Plugin::MetaResources for users of Git. It _automatically_ provides three resource links to your distribution metadata, based on the name of the distribution and the remote URL of the Git repository you are working from. The default links are equivalent to: homepage = https://github.com/%a/%r/wiki bugtracker.web = https://rt.cpan.org/Public/Dist/Display.html?Name=%N repository.url = git://github.com/%a/%r.git repository.web = https://github.com/%a/%r repository.type = git Any other resources provided to this Plugin are passed through to the 'MetaResources' Plugin as-is. If you wish to override one of the above, use the formatting options below. If you wish to suppress the appearance of one of the above resources, set an empty or false value in 'dist.ini'. %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 README %license LICENSE %changelog