8
0
forked from pool/perl-File-Map

Normalize CPAN version

See https://github.com/openSUSE/cpanspec/issues/47 for details
This commit is contained in:
2025-10-14 14:40:04 +02:00
parent cd49e866ce
commit 828410d4cf
2 changed files with 22 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 14 12:39:46 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Apr 11 03:07:49 UTC 2023 - Tina Müller <timueller+perl@suse.de> Tue Apr 11 03:07:49 UTC 2023 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-File-Map # spec file for package perl-File-Map
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,42 +18,46 @@
%define cpan_name File-Map %define cpan_name File-Map
Name: perl-File-Map Name: perl-File-Map
Version: 0.71 Version: 0.710.0
Release: 0 Release: 0
# 0.71 -> normalize -> 0.710.0
%define cpan_version 0.71
License: Artistic-1.0 OR GPL-1.0-or-later License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Memory mapping made simple and safe Summary: Memory mapping made simple and safe
URL: https://metacpan.org/release/%{cpan_name} URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz Source0: https://cpan.metacpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml Source1: cpanspec.yml
Source100: README.md Source100: README.md
BuildRequires: perl BuildRequires: perl
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.280000 BuildRequires: perl(Module::Build) >= 0.280
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001005 BuildRequires: perl(Sub::Exporter::Progressive) >= 0.1.5
BuildRequires: perl(Test::Fatal) BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Warnings) >= 0.005 BuildRequires: perl(Test::Warnings) >= 0.5
Requires: perl(Sub::Exporter::Progressive) >= 0.001005 Requires: perl(Sub::Exporter::Progressive) >= 0.1.5
Provides: perl(File::Map) = %{version}
%undefine __perllib_provides
%{perl_requires} %{perl_requires}
%description %description
File::Map maps files or anonymous memory into perl variables. File::Map maps files or anonymous memory into perl variables.
%prep %prep
%autosetup -n %{cpan_name}-%{version} %autosetup -n %{cpan_name}-%{cpan_version} -p1
%build %build
perl Build.PL installdirs=vendor optimize="%{optflags}" perl Build.PL --installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags} ./Build build --flags=%{?_smp_mflags}
%check %check
./Build test ./Build test
%install %install
./Build install destdir=%{buildroot} create_packlist=0 ./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist %perl_gen_filelist
%files -f %{name}.files %files -f %{name}.files
%doc Changes examples metamerge.yml README %doc Changes examples README
%license LICENSE %license LICENSE
%changelog %changelog