From dce5f83a5e441ed2f8d000b73f827a44efa8f2bd5b9f6f58ac5b1763ad6b1742 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Wed, 24 Jul 2024 20:32:58 +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-MediaWiki-API?expand=0&rev=13 --- perl-MediaWiki-API.spec | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/perl-MediaWiki-API.spec b/perl-MediaWiki-API.spec index eb97483..4e89c9e 100644 --- a/perl-MediaWiki-API.spec +++ b/perl-MediaWiki-API.spec @@ -1,7 +1,7 @@ # # spec file for package perl-MediaWiki-API # -# Copyright (c) 2020 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 @@ -16,19 +16,19 @@ # -Name: perl-MediaWiki-API -Version: 0.52 -Release: 0 -#Upstream: GPL-1.0-or-later %define cpan_name MediaWiki-API -Summary: Provides a Perl interface to the MediaWiki API (https://www.mediawiki.or[cut] +Name: perl-MediaWiki-API +Version: 0.520.0 +Release: 0 +# 0.52 -> normalize -> 0.520.0 +%define cpan_version 0.52 +#Upstream: GPL-1.0-or-later License: GPL-3.0-or-later -Group: Development/Libraries/Perl +Summary: Provides a Perl interface to the MediaWiki API (https://www.mediawiki.or[cut] URL: https://metacpan.org/release/%{cpan_name} -Source0: https://cpan.metacpan.org/authors/id/E/EX/EXOBUZZ/%{cpan_name}-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/E/EX/EXOBUZZ/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(JSON) @@ -37,17 +37,19 @@ BuildRequires: perl(Test::More) >= 0.98 Requires: perl(JSON) Requires: perl(LWP::UserAgent) Requires: perl(Test::More) >= 0.98 +Provides: perl(MediaWiki::API) = %{version} +%undefine __perllib_provides %{perl_requires} %description Provides a Perl interface to the MediaWiki API (https://www.mediawiki.org/wiki/API) %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -58,7 +60,6 @@ make test %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes CONTRIBUTING.md README %license LICENSE