2024-07-24 20:32:58 +00:00
committed by Git OBS Bridge
parent f22c9aca9d
commit dce5f83a5e

View File

@@ -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