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-File-Binary?expand=0&rev=6
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package perl-File-Binary
 | 
			
		||||
#
 | 
			
		||||
# 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,20 +18,22 @@
 | 
			
		||||
 | 
			
		||||
%define cpan_name File-Binary
 | 
			
		||||
Name:           perl-File-Binary
 | 
			
		||||
Version:        1.7
 | 
			
		||||
Version:        1.700.0
 | 
			
		||||
Release:        0
 | 
			
		||||
# 1.7 -> normalize -> 1.700.0
 | 
			
		||||
%define cpan_version 1.7
 | 
			
		||||
License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
			
		||||
Summary:        Binary file reading module
 | 
			
		||||
URL:            https://metacpan.org/release/%{cpan_name}
 | 
			
		||||
Source0:        https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz
 | 
			
		||||
Source0:        https://cpan.metacpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{cpan_version}.tar.gz
 | 
			
		||||
Source1:        cpanspec.yml
 | 
			
		||||
BuildArch:      noarch
 | 
			
		||||
BuildRequires:  perl
 | 
			
		||||
BuildRequires:  perl-macros
 | 
			
		||||
BuildRequires:  perl(IO::File) >= 1.14
 | 
			
		||||
BuildRequires:  perl(IO::Scalar) >= 1.126
 | 
			
		||||
BuildRequires:  perl(IO::Scalar) >= 1.126.0
 | 
			
		||||
Requires:       perl(IO::File) >= 1.14
 | 
			
		||||
Requires:       perl(IO::Scalar) >= 1.126
 | 
			
		||||
Requires:       perl(IO::Scalar) >= 1.126.0
 | 
			
		||||
%{perl_requires}
 | 
			
		||||
 | 
			
		||||
%description
 | 
			
		||||
@@ -51,8 +53,9 @@ module for cleanliness sakes and also because the old interface was pretty
 | 
			
		||||
braindead.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%autosetup  -n %{cpan_name}-%{version}
 | 
			
		||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
			
		||||
%autosetup  -n %{cpan_name}-%{cpan_version}
 | 
			
		||||
 | 
			
		||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
perl Makefile.PL INSTALLDIRS=vendor
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user