From 804749f220b4a899d10788ca9c57149929466971 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Jun 21 2021 10:03:54 +0000 Subject: Change provides version to 6 digits after the decimal to preserve upgrade path (bug#1974137) --- diff --git a/perl-Throwable.spec b/perl-Throwable.spec index 54b8dd0..c62e52c 100644 --- a/perl-Throwable.spec +++ b/perl-Throwable.spec @@ -1,11 +1,15 @@ +# Provides version needs 6 digits after the decimal to preserve upgrade path +%global cpan_version 0.201 +%global prov_version %{cpan_version}000 + Name: perl-Throwable Epoch: 1 -Version: 0.201 -Release: 2%{?dist} +Version: %{cpan_version} +Release: 3%{?dist} Summary: Role for classes that can be thrown License: GPL+ or Artistic URL: https://metacpan.org/release/Throwable -Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Throwable-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Throwable-%{cpan_version}.tar.gz BuildArch: noarch # Build BuildRequires: make @@ -31,15 +35,23 @@ Requires: perl(:MODULE_COMPAT_%(eval "$(/usr/bin/perl -V:version)"; echo $ Requires: perl(Devel::StackTrace) >= 1.32 Requires: perl(overload) +Provides: perl(StackTrace::Auto) = %{prov_version} +Provides: perl(Throwable) = %{prov_version} +Provides: perl(Throwable::Error) = %{prov_version} + %{?perl_default_filter} +# Remove provides with 3 digits after the decimal to preserve upgrade path +%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Throwable.*\\) +%global __provides_exclude %__provides_exclude|^perl\\(StackTrace::Auto\\) + %description Throwable is a role for classes that are meant to be thrown as exceptions to standard program flow. It is very simple and does only two things: saves any previous value for $@ and calls die $self. %prep -%setup -q -n Throwable-%{version} +%setup -q -n Throwable-%{cpan_version} %build /usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 @@ -59,6 +71,10 @@ any previous value for $@ and calls die $self. %{_mandir}/man3/* %changelog +* Mon Jun 21 2021 Jitka Plesnikova - 1:0.201-3 +- Change provides version to 6 digits after the decimal to preserve upgrade + path + * Mon Jun 21 2021 Jitka Plesnikova - 1:0.201-2 - Add epoch of 1 (0.200013 => 0.201) (bug#1974137)