See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Module-Install-AutomatedTester?expand=0&rev=6
		
			
				
	
	
		
			71 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			RPMSpec
		
	
	
	
	
	
#
 | 
						|
# spec file for package perl-Module-Install-AutomatedTester
 | 
						|
#
 | 
						|
# 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-Install-AutomatedTester
 | 
						|
Name:           perl-Module-Install-AutomatedTester
 | 
						|
Version:        0.40.0
 | 
						|
Release:        0
 | 
						|
# 0.04 -> normalize -> 0.40.0
 | 
						|
%define cpan_version 0.04
 | 
						|
License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
						|
Summary:        Module::Install extension to detect whether we are being tested by CPAN Testers
 | 
						|
URL:            https://metacpan.org/release/%{cpan_name}
 | 
						|
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{cpan_version}.tar.gz
 | 
						|
Source1:        cpanspec.yml
 | 
						|
BuildArch:      noarch
 | 
						|
BuildRequires:  perl
 | 
						|
BuildRequires:  perl-macros
 | 
						|
BuildRequires:  perl(Capture::Tiny) >= 0.05
 | 
						|
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.59
 | 
						|
BuildRequires:  perl(Module::Install) >= 0.85
 | 
						|
Requires:       perl(Module::Install) >= 0.85
 | 
						|
Provides:       perl(Module::Install::AutomatedTester) = %{version}
 | 
						|
%undefine       __perllib_provides
 | 
						|
%{perl_requires}
 | 
						|
 | 
						|
%description
 | 
						|
CPAN Testers are great and do a worthy and thankless job, testing all the
 | 
						|
distributions uploaded to CPAN. Sometimes we want to know if our
 | 
						|
distribution is being tested by one of these gallant individuals and make
 | 
						|
them do some extra work.
 | 
						|
 | 
						|
Module::Install::AutomatedTesters is a Module::Install extension that adds
 | 
						|
two extra commands to detect if the disttribution is being run under a CPAN
 | 
						|
Tester environment so that we can do extra stuff or skip stuff.
 | 
						|
 | 
						|
%prep
 | 
						|
%autosetup  -n %{cpan_name}-%{cpan_version}
 | 
						|
 | 
						|
%build
 | 
						|
PERL_USE_UNSAFE_INC=1 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 have_make README
 | 
						|
%license LICENSE
 | 
						|
 | 
						|
%changelog
 |