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
|
||||
#
|
||||
# Copyright (c) 2023 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,24 +18,37 @@
|
||||
|
||||
%define cpan_name Convert-Color
|
||||
Name: perl-Convert-Color
|
||||
Version: 0.17
|
||||
Version: 0.170.0
|
||||
Release: 0
|
||||
# 0.17 -> normalize -> 0.170.0
|
||||
%define cpan_version 0.17
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Color space conversions and named lookups
|
||||
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
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(List::UtilsBy)
|
||||
BuildRequires: perl(Module::Build) >= 0.400400
|
||||
BuildRequires: perl(Module::Build) >= 0.4004
|
||||
BuildRequires: perl(Module::Pluggable)
|
||||
BuildRequires: perl(Sub::Util) >= 1.40
|
||||
BuildRequires: perl(Test2::V0)
|
||||
Requires: perl(List::UtilsBy)
|
||||
Requires: perl(Module::Pluggable)
|
||||
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}
|
||||
|
||||
%description
|
||||
@@ -72,17 +85,17 @@ way to access predefined colors by names:
|
||||
* Convert::Color::X11 - named lookup of colors from X11's _rgb.txt_
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Build.PL installdirs=vendor
|
||||
./Build build flags=%{?_smp_mflags}
|
||||
perl Build.PL --installdirs=vendor
|
||||
./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
|
||||
|
||||
Reference in New Issue
Block a user