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-Test-PostgreSQL?expand=0&rev=9
This commit is contained in:
		@@ -1,3 +1,3 @@
 | 
				
			|||||||
version https://git-lfs.github.com/spec/v1
 | 
					version https://git-lfs.github.com/spec/v1
 | 
				
			||||||
oid sha256:234faccf9d1d67ac6fcce3bea30433d82ca0af7a37bcab0db543fe07f1ae6864
 | 
					oid sha256:18acf7e589ca4cca9cde47609b536c9d823c8562d1aa5210c168e5eb1b8e4f9e
 | 
				
			||||||
size 20220
 | 
					size 20230
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# spec file for package perl-Test-PostgreSQL
 | 
					# spec file for package perl-Test-PostgreSQL
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Copyright (c) 2022 SUSE LLC
 | 
					# Copyright (c) 2024 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,12 +18,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
%define cpan_name Test-PostgreSQL
 | 
					%define cpan_name Test-PostgreSQL
 | 
				
			||||||
Name:           perl-Test-PostgreSQL
 | 
					Name:           perl-Test-PostgreSQL
 | 
				
			||||||
Version:        1.29
 | 
					Version:        1.290.0
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
 | 
					# 1.29 -> normalize -> 1.290.0
 | 
				
			||||||
 | 
					%define cpan_version 1.29
 | 
				
			||||||
License:        Artistic-2.0
 | 
					License:        Artistic-2.0
 | 
				
			||||||
Summary:        PostgreSQL runner for tests
 | 
					Summary:        PostgreSQL runner for tests
 | 
				
			||||||
URL:            https://metacpan.org/release/%{cpan_name}
 | 
					URL:            https://metacpan.org/release/%{cpan_name}
 | 
				
			||||||
Source0:        https://cpan.metacpan.org/authors/id/N/NO/NOHUHU/%{cpan_name}-%{version}.tar.gz
 | 
					Source0:        https://cpan.metacpan.org/authors/id/T/TJ/TJC/%{cpan_name}-%{cpan_version}.tar.gz
 | 
				
			||||||
Source1:        cpanspec.yml
 | 
					Source1:        cpanspec.yml
 | 
				
			||||||
BuildArch:      noarch
 | 
					BuildArch:      noarch
 | 
				
			||||||
BuildRequires:  perl
 | 
					BuildRequires:  perl
 | 
				
			||||||
@@ -32,6 +34,7 @@ BuildRequires:  perl(DBD::Pg)
 | 
				
			|||||||
BuildRequires:  perl(DBI)
 | 
					BuildRequires:  perl(DBI)
 | 
				
			||||||
BuildRequires:  perl(File::Which)
 | 
					BuildRequires:  perl(File::Which)
 | 
				
			||||||
BuildRequires:  perl(Function::Parameters)
 | 
					BuildRequires:  perl(Function::Parameters)
 | 
				
			||||||
 | 
					BuildRequires:  perl(Module::Build)
 | 
				
			||||||
BuildRequires:  perl(Module::Build::Tiny) >= 0.035
 | 
					BuildRequires:  perl(Module::Build::Tiny) >= 0.035
 | 
				
			||||||
BuildRequires:  perl(Moo)
 | 
					BuildRequires:  perl(Moo)
 | 
				
			||||||
BuildRequires:  perl(Test::SharedFork) >= 0.06
 | 
					BuildRequires:  perl(Test::SharedFork) >= 0.06
 | 
				
			||||||
@@ -46,6 +49,8 @@ Requires:       perl(Moo)
 | 
				
			|||||||
Requires:       perl(Tie::Hash::Method)
 | 
					Requires:       perl(Tie::Hash::Method)
 | 
				
			||||||
Requires:       perl(Try::Tiny)
 | 
					Requires:       perl(Try::Tiny)
 | 
				
			||||||
Requires:       perl(Types::Standard)
 | 
					Requires:       perl(Types::Standard)
 | 
				
			||||||
 | 
					Provides:       perl(Test::PostgreSQL) = %{version}
 | 
				
			||||||
 | 
					%undefine       __perllib_provides
 | 
				
			||||||
%{perl_requires}
 | 
					%{perl_requires}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
@@ -56,7 +61,7 @@ This module is a fork of Test::postgresql, which was abandoned by its
 | 
				
			|||||||
author several years ago.
 | 
					author several years ago.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%prep
 | 
					%prep
 | 
				
			||||||
%autosetup  -n %{cpan_name}-%{version}
 | 
					%autosetup  -n %{cpan_name}-%{cpan_version}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%build
 | 
					%build
 | 
				
			||||||
perl Build.PL --installdirs=vendor
 | 
					perl Build.PL --installdirs=vendor
 | 
				
			||||||
@@ -70,7 +75,7 @@ perl Build.PL --installdirs=vendor
 | 
				
			|||||||
%perl_gen_filelist
 | 
					%perl_gen_filelist
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%files -f %{name}.files
 | 
					%files -f %{name}.files
 | 
				
			||||||
%doc Changes minil.toml README.md
 | 
					%doc Changes README.md
 | 
				
			||||||
%license LICENSE
 | 
					%license LICENSE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%changelog
 | 
					%changelog
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user