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>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,42 +18,46 @@
%define cpan_name File-Map
Name: perl-File-Map
Version: 0.71
Version: 0.710.0
Release: 0
# 0.71 -> normalize -> 0.710.0
%define cpan_version 0.71
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Memory mapping made simple and safe
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
Source100: README.md
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.280000
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001005
BuildRequires: perl(Module::Build) >= 0.280
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.1.5
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Warnings) >= 0.005
Requires: perl(Sub::Exporter::Progressive) >= 0.001005
BuildRequires: perl(Test::Warnings) >= 0.5
Requires: perl(Sub::Exporter::Progressive) >= 0.1.5
Provides: perl(File::Map) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
File::Map maps files or anonymous memory into perl variables.
%prep
%autosetup -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build build flags=%{?_smp_mflags}
perl Build.PL --installdirs=vendor optimize="%{optflags}"
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install destdir=%{buildroot} create_packlist=0
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes examples metamerge.yml README
%doc Changes examples README
%license LICENSE
%changelog