# # spec file for package perl-Dist-Zilla-Plugin-Config-Git # # 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-Config-Git Name: perl-Dist-Zilla-Plugin-Config-Git Version: 0.920.0 Release: 0 # 0.92 -> normalize -> 0.920.0 %define cpan_version 0.92 License: Artistic-2.0 Summary: Plugin configuration containing settings for a Git repo URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BB/BBYRD/%{cpan_name}-%{cpan_version}.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Dist::Zilla::Role::Plugin) >= 1.000 BuildRequires: perl(Moose) >= 0.34 BuildRequires: perl(MooseX::Types) >= 0.06 BuildRequires: perl(String::Errf) >= 0.001 BuildRequires: perl(Test::CheckDeps) >= 0.010 BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(namespace::clean) >= 0.06 Requires: perl(Dist::Zilla::Role::Plugin) >= 1.000 Requires: perl(Moose) >= 0.34 Requires: perl(MooseX::Types) >= 0.06 Requires: perl(String::Errf) >= 0.001 Requires: perl(namespace::clean) >= 0.06 Provides: perl(Dist::Zilla::Plugin::Config::Git) = %{version} Provides: perl(Dist::Zilla::Role::GitConfig) = %{version} %undefine __perllib_provides %{perl_requires} %description This is a configuration plugin for Git reposolbranch information. A configuration plugin is sort of like a Stash, but is better suited for intra-plugin data sharing, using distro (not user) data. Why use this? To provide a standard set of information to other Git plugins easily, especially if the repo data is non-standard, or if you need more than one set of data. %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %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 README.html %license LICENSE %changelog