diff --git a/perl-Overload-FileCheck.spec b/perl-Overload-FileCheck.spec index 19a5779..35964f3 100644 --- a/perl-Overload-FileCheck.spec +++ b/perl-Overload-FileCheck.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Overload-FileCheck # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -18,18 +18,22 @@ %define cpan_name Overload-FileCheck Name: perl-Overload-FileCheck -Version: 0.013 +Version: 0.13.0 Release: 0 +# 0.013 -> normalize -> 0.13.0 +%define cpan_version 0.013 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Override/mock perl file check -X: -e, -f, -d, .. URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test2::Bundle::Extended) BuildRequires: perl(Test2::Plugin::NoWarnings) BuildRequires: perl(Test2::Tools::Explain) +Provides: perl(Overload::FileCheck) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -77,7 +81,7 @@ In addition it's also possible to mock the Perl OP 'stat' and 'lstat', read "Mocking stat and lstat" section for more details. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"