2013-08-05 20:45:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-Without-Module
|
|
|
|
#
|
2022-12-13 12:45:32 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-08-05 20:45:09 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-12-13 12:45:32 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-08-05 20:45:09 +02:00
|
|
|
#
|
|
|
|
|
2010-07-25 09:51:34 +02:00
|
|
|
|
2022-12-13 12:45:32 +01:00
|
|
|
%define cpan_name Test-Without-Module
|
2010-07-25 09:51:34 +02:00
|
|
|
Name: perl-Test-Without-Module
|
2022-12-13 12:45:32 +01:00
|
|
|
Version: 0.21
|
2010-07-25 09:51:34 +02:00
|
|
|
Release: 0
|
2022-12-13 12:45:32 +01:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-07-25 09:51:34 +02:00
|
|
|
Summary: Test fallback behaviour in absence of modules
|
2022-12-13 12:45:32 +01:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2017-04-06 15:04:43 +02:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/C/CO/CORION/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2013-08-05 20:45:09 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
2010-12-03 15:53:20 +01:00
|
|
|
BuildRequires: perl-macros
|
2013-08-05 20:45:09 +02:00
|
|
|
%{perl_requires}
|
2010-07-25 09:51:34 +02:00
|
|
|
|
|
|
|
%description
|
2013-08-05 20:45:09 +02:00
|
|
|
This module allows you to deliberately hide modules from a program even
|
|
|
|
though they are installed. This is mostly useful for testing modules that
|
|
|
|
have a fallback when a certain dependency module is not installed.
|
2010-07-25 09:51:34 +02:00
|
|
|
|
|
|
|
%prep
|
2022-12-13 12:45:32 +01:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-07-25 09:51:34 +02:00
|
|
|
|
|
|
|
%build
|
2022-12-13 12:45:32 +01:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2013-08-05 20:45:09 +02:00
|
|
|
|
|
|
|
%check
|
2022-12-13 12:45:32 +01:00
|
|
|
make test
|
2010-07-25 09:51:34 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-08-05 20:45:09 +02:00
|
|
|
%perl_gen_filelist
|
2010-07-25 09:51:34 +02:00
|
|
|
|
2013-08-05 20:45:09 +02:00
|
|
|
%files -f %{name}.files
|
2017-04-06 15:04:43 +02:00
|
|
|
%doc Changes README README.mkdn
|
2010-07-25 09:51:34 +02:00
|
|
|
|
2013-08-05 20:45:09 +02:00
|
|
|
%changelog
|