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-HTML-Strip?expand=0&rev=8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-HTML-Strip
|
||||
#
|
||||
# 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,17 +18,21 @@
|
||||
|
||||
%define cpan_name HTML-Strip
|
||||
Name: perl-HTML-Strip
|
||||
Version: 2.12
|
||||
Version: 2.120.0
|
||||
Release: 0
|
||||
# 2.12 -> normalize -> 2.120.0
|
||||
%define cpan_version 2.12
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Perl extension for stripping HTML markup from text
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: https://cpan.metacpan.org/authors/id/K/KI/KILINRAX/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::Exception)
|
||||
Requires: perl(Test::Exception)
|
||||
Provides: perl(HTML::Strip) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -80,7 +84,7 @@ calls to 'parse()', or set 'auto_reset' to true (either on the constructor
|
||||
or with 'set_auto_reset') so that the parser will reset after each call.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
|
||||
Reference in New Issue
Block a user