# # spec file for package perl-Test-PAUSE-Permissions # # 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 Test-PAUSE-Permissions Name: perl-Test-PAUSE-Permissions Version: 0.70.0 Release: 0 # 0.07 -> normalize -> 0.70.0 %define cpan_version 0.07 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Tests module permissions in your distribution URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Config::Identity) BuildRequires: perl(ExtUtils::MakeMaker::CPANfile) >= 0.08 BuildRequires: perl(PAUSE::Permissions) >= 0.90.0 BuildRequires: perl(Parse::CPAN::Meta) BuildRequires: perl(Parse::LocalDistribution) >= 0.80.0 BuildRequires: perl(Parse::PMFile) >= 0.15 BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::UseAllModules) >= 0.10 BuildRequires: perl(parent) Requires: perl(Config::Identity) Requires: perl(PAUSE::Permissions) >= 0.90.0 Requires: perl(Parse::CPAN::Meta) Requires: perl(Parse::LocalDistribution) >= 0.80.0 Requires: perl(Parse::PMFile) >= 0.15 Requires: perl(parent) Provides: perl(Test::PAUSE::Permissions) = %{version} %undefine __perllib_provides Recommends: perl(PAUSE::Permissions::MetaCPAN) %{perl_requires} %description This module is to test if modules in your distribution have proper permissions or not. You need to set RELEASE_TESTING to test this. If your distribution has modules/packages that should not be indexed, you might want to generate META files before you run this test to provide 'no_index' information to Test::PAUSE::Permissions. You might also want to prepare '.pause' file to show who is releasing the distribution (you should have one to release distributions anyway). %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 %changelog