Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Cache-FastMmap?expand=0&rev=15
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Cache-FastMmap
|
||||
#
|
||||
# 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,17 +18,22 @@
|
||||
|
||||
%define cpan_name Cache-FastMmap
|
||||
Name: perl-Cache-FastMmap
|
||||
Version: 1.57
|
||||
Version: 1.570.0
|
||||
Release: 0
|
||||
# 1.57 -> normalize -> 1.570.0
|
||||
%define cpan_version 1.57
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Uses an mmap'ed file to act as a shared memory interprocess cache
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBM/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROBM/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Deep)
|
||||
Requires: perl(Test::Deep)
|
||||
Provides: perl(Cache::FastMmap) = %{version}
|
||||
Provides: perl(Cache::FastMmap::OnLeave)
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -109,7 +114,7 @@ Will just work and will be read/written to the underlying data source as
|
||||
needed automatically.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
Reference in New Issue
Block a user