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-Convert-Color?expand=0&rev=10
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
# spec file for package perl-Convert-Color
 | 
					# spec file for package perl-Convert-Color
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Copyright (c) 2023 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,24 +18,37 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
%define cpan_name Convert-Color
 | 
					%define cpan_name Convert-Color
 | 
				
			||||||
Name:           perl-Convert-Color
 | 
					Name:           perl-Convert-Color
 | 
				
			||||||
Version:        0.17
 | 
					Version:        0.170.0
 | 
				
			||||||
Release:        0
 | 
					Release:        0
 | 
				
			||||||
 | 
					# 0.17 -> normalize -> 0.170.0
 | 
				
			||||||
 | 
					%define cpan_version 0.17
 | 
				
			||||||
License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
					License:        Artistic-1.0 OR GPL-1.0-or-later
 | 
				
			||||||
Summary:        Color space conversions and named lookups
 | 
					Summary:        Color space conversions and named lookups
 | 
				
			||||||
URL:            https://metacpan.org/release/%{cpan_name}
 | 
					URL:            https://metacpan.org/release/%{cpan_name}
 | 
				
			||||||
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{version}.tar.gz
 | 
					Source0:        https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{cpan_name}-%{cpan_version}.tar.gz
 | 
				
			||||||
Source1:        cpanspec.yml
 | 
					Source1:        cpanspec.yml
 | 
				
			||||||
BuildArch:      noarch
 | 
					BuildArch:      noarch
 | 
				
			||||||
BuildRequires:  perl
 | 
					BuildRequires:  perl
 | 
				
			||||||
BuildRequires:  perl-macros
 | 
					BuildRequires:  perl-macros
 | 
				
			||||||
BuildRequires:  perl(List::UtilsBy)
 | 
					BuildRequires:  perl(List::UtilsBy)
 | 
				
			||||||
BuildRequires:  perl(Module::Build) >= 0.400400
 | 
					BuildRequires:  perl(Module::Build) >= 0.4004
 | 
				
			||||||
BuildRequires:  perl(Module::Pluggable)
 | 
					BuildRequires:  perl(Module::Pluggable)
 | 
				
			||||||
BuildRequires:  perl(Sub::Util) >= 1.40
 | 
					BuildRequires:  perl(Sub::Util) >= 1.40
 | 
				
			||||||
BuildRequires:  perl(Test2::V0)
 | 
					BuildRequires:  perl(Test2::V0)
 | 
				
			||||||
Requires:       perl(List::UtilsBy)
 | 
					Requires:       perl(List::UtilsBy)
 | 
				
			||||||
Requires:       perl(Module::Pluggable)
 | 
					Requires:       perl(Module::Pluggable)
 | 
				
			||||||
Requires:       perl(Sub::Util) >= 1.40
 | 
					Requires:       perl(Sub::Util) >= 1.40
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::CMY) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::CMYK) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::HSL) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::HSV) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::RGB) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::RGB16) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::RGB8) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::VGA) = %{version}
 | 
				
			||||||
 | 
					Provides:       perl(Convert::Color::X11) = %{version}
 | 
				
			||||||
 | 
					%undefine       __perllib_provides
 | 
				
			||||||
%{perl_requires}
 | 
					%{perl_requires}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%description
 | 
					%description
 | 
				
			||||||
@@ -72,17 +85,17 @@ way to access predefined colors by names:
 | 
				
			|||||||
  * Convert::Color::X11 - named lookup of colors from X11's _rgb.txt_
 | 
					  * Convert::Color::X11 - named lookup of colors from X11's _rgb.txt_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%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
 | 
				
			||||||
./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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user