From 403d30e6c9e77dfc102c83462410f96049c0eadf0f187b9c577e86a2daa602f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Fri, 19 Jul 2024 22:34:17 +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-Convert-Base32?expand=0&rev=5 --- perl-Convert-Base32.spec | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/perl-Convert-Base32.spec b/perl-Convert-Base32.spec index 0dd3d38..b082866 100644 --- a/perl-Convert-Base32.spec +++ b/perl-Convert-Base32.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Convert-Base32 # -# Copyright (c) 2015 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 @@ -12,26 +12,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # 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-Convert-Base32 -Version: 0.06 -Release: 0 %define cpan_name Convert-Base32 +Name: perl-Convert-Base32 +Version: 0.60.0 +Release: 0 +# 0.06 -> normalize -> 0.60.0 +%define cpan_version 0.06 +License: CHECK(Artistic-1.0 or GPL-1.0-or-later) Summary: Encoding and decoding of base32 strings -License: CHECK(GPL-1.0+ or Artistic-1.0) -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Convert-Base32/ -Source0: http://www.cpan.org/authors/id/I/IK/IKEGAMI/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/I/IK/IKEGAMI/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::Exception) Requires: perl(Test::Exception) +Provides: perl(Convert::Base32) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -42,14 +44,14 @@ non-ASCII characters in DNS-compatible host name parts. See http://tools.ietf.org/html/draft-ietf-idn-race-03 for more details. %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -57,7 +59,6 @@ See http://tools.ietf.org/html/draft-ietf-idn-race-03 for more details. %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes README %changelog