diff --git a/perl-Unicode-Collate.changes b/perl-Unicode-Collate.changes index 3d51a56..e4aa16b 100644 --- a/perl-Unicode-Collate.changes +++ b/perl-Unicode-Collate.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 6 10:30:46 UTC 2021 - Dirk Müller + +- ensure rebuild to be always newer than the perl-core provided + version (see bsc#1185600) + ------------------------------------------------------------------- Sun Sep 27 03:19:39 UTC 2020 - Tina Müller diff --git a/perl-Unicode-Collate.spec b/perl-Unicode-Collate.spec index 21f421a..01f8fb3 100644 --- a/perl-Unicode-Collate.spec +++ b/perl-Unicode-Collate.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Unicode-Collate # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,19 +16,22 @@ # +%define cpan_name Unicode-Collate Name: perl-Unicode-Collate Version: 1.29 Release: 0 -%define cpan_name Unicode-Collate Summary: Unicode Collation Algorithm 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/S/SA/SADAHIRO/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros +# special case as perl itself provides Unicode-Collate as well, however +# in an older version. we need to rebuild on version updates +# to ensure we are always newer than the perl-core provided version (bsc#1185600) +%requires_eq perl %{perl_requires} %description @@ -40,10 +43,10 @@ UTS #10) - Unicode Collation Algorithm (a.k.a. UCA). %build perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -make %{?_smp_mflags} +%make_build %check -make test +%make_build test %install %perl_make_install