From d6e3bbf90b3057ed0bbfad746ccf39e401b81a382e88160ec46f09ef93d44a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 26 Jul 2024 21:14:25 +0000 Subject: [PATCH] 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-PPI-HTML?expand=0&rev=8 --- perl-PPI-HTML.spec | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/perl-PPI-HTML.spec b/perl-PPI-HTML.spec index 8b1eb61..646d804 100644 --- a/perl-PPI-HTML.spec +++ b/perl-PPI-HTML.spec @@ -1,7 +1,7 @@ # # spec file for package perl-PPI-HTML # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,37 +16,41 @@ # -Name: perl-PPI-HTML -Version: 1.08 -Release: 0 %define cpan_name PPI-HTML -Summary: Generate syntax-hightlighted HTML for Perl using PPI +Name: perl-PPI-HTML +Version: 1.80.0 +Release: 0 +# 1.08 -> normalize -> 1.80.0 +%define cpan_version 1.08 License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{version}.tar.gz +Summary: Generate syntax-hightlighted HTML for Perl using PPI +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(CSS::Tiny) >= 1.10 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 BuildRequires: perl(PPI) >= 0.990 BuildRequires: perl(Params::Util) >= 0.05 Requires: perl(CSS::Tiny) >= 1.10 Requires: perl(PPI) >= 0.990 Requires: perl(Params::Util) >= 0.05 +Provides: perl(PPI::HTML) = %{version} +Provides: perl(PPI::HTML::Fragment) = %{version} +%undefine __perllib_provides %{perl_requires} %description PPI::HTML converts Perl documents into syntax highlighted HTML pages. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -57,7 +61,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %license LICENSE