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-Color-Library?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Color-Library
|
# spec file for package perl-Color-Library
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# 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
|
||||||
@@ -12,22 +12,22 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: perl-Color-Library
|
|
||||||
Version: 0.021
|
|
||||||
Release: 0
|
|
||||||
%define cpan_name Color-Library
|
%define cpan_name Color-Library
|
||||||
|
Name: perl-Color-Library
|
||||||
|
Version: 0.21.0
|
||||||
|
Release: 0
|
||||||
|
# 0.021 -> normalize -> 0.21.0
|
||||||
|
%define cpan_version 0.021
|
||||||
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||||
Summary: An easy-to-use and comprehensive named-color library
|
Summary: An easy-to-use and comprehensive named-color library
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
Group: Development/Libraries/Perl
|
Source0: https://cpan.metacpan.org/authors/id/R/RO/ROKR/%{cpan_name}-%{cpan_version}.tar.gz
|
||||||
Url: http://search.cpan.org/dist/Color-Library/
|
|
||||||
Source0: http://www.cpan.org/authors/id/R/RO/ROKR/%{cpan_name}-%{version}.tar.gz
|
|
||||||
Source1: cpanspec.yml
|
Source1: cpanspec.yml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Class::Accessor::Fast)
|
BuildRequires: perl(Class::Accessor::Fast)
|
||||||
@@ -37,6 +37,32 @@ BuildRequires: perl(Test::Most)
|
|||||||
Requires: perl(Class::Accessor::Fast)
|
Requires: perl(Class::Accessor::Fast)
|
||||||
Requires: perl(Class::Data::Inheritable)
|
Requires: perl(Class::Data::Inheritable)
|
||||||
Requires: perl(Module::Pluggable)
|
Requires: perl(Module::Pluggable)
|
||||||
|
Provides: perl(Color::Library) = %{version}
|
||||||
|
Provides: perl(Color::Library::Color)
|
||||||
|
Provides: perl(Color::Library::Dictionary)
|
||||||
|
Provides: perl(Color::Library::Dictionary::HTML)
|
||||||
|
Provides: perl(Color::Library::Dictionary::IE)
|
||||||
|
Provides: perl(Color::Library::Dictionary::Mozilla)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::A)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::B)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::F)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::H)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::M)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::P)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::R)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::RC)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::S)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::SC)
|
||||||
|
Provides: perl(Color::Library::Dictionary::NBS_ISCC::TC)
|
||||||
|
Provides: perl(Color::Library::Dictionary::Netscape)
|
||||||
|
Provides: perl(Color::Library::Dictionary::SVG)
|
||||||
|
Provides: perl(Color::Library::Dictionary::Tango)
|
||||||
|
Provides: perl(Color::Library::Dictionary::VACCC)
|
||||||
|
Provides: perl(Color::Library::Dictionary::WWW)
|
||||||
|
Provides: perl(Color::Library::Dictionary::Windows)
|
||||||
|
Provides: perl(Color::Library::Dictionary::X11)
|
||||||
|
%undefine __perllib_provides
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -45,14 +71,14 @@ Currently provides coverage for www (svg, html, css) colors, x11 colors,
|
|||||||
and more.
|
and more.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make} %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
@@ -60,7 +86,6 @@ and more.
|
|||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,755)
|
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user