Files
perl-MediaWiki-Bot/perl-MediaWiki-Bot.spec
2025-08-12 18:15:24 +02:00

80 lines
2.5 KiB
RPMSpec

#
# spec file for package perl-MediaWiki-Bot
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name MediaWiki-Bot
Name: perl-MediaWiki-Bot
Version: 5.7.0
Release: 0
# 5.007000 -> normalize -> 5.7.0
%define cpan_version 5.007000
License: GPL-1.0-or-later
Summary: High-level bot framework for interacting with MediaWiki wikis
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SE/SETH/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Constant::Generate)
BuildRequires: perl(Digest::MD5) >= 2.39
BuildRequires: perl(HTML::Entities) >= 3.28
BuildRequires: perl(LWP::Protocol::https) >= 6.06
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(MediaWiki::API) >= 0.360
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Test::Is)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::RequiresInternet)
BuildRequires: perl(Test::Warn)
Requires: perl(Constant::Generate)
Requires: perl(Digest::MD5) >= 2.39
Requires: perl(HTML::Entities) >= 3.28
Requires: perl(LWP::Protocol::https) >= 6.06
Requires: perl(MediaWiki::API) >= 0.360
Requires: perl(Module::Pluggable)
Provides: perl(MediaWiki::Bot) = %{version}
Provides: perl(MediaWiki::Bot::Constants) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
*MediaWiki::Bot* is a framework that can be used to write bots which
interface with the MediaWiki API (http://en.wikipedia.org/w/api.php).
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING.md README README.mkdn
%license LICENSE
%changelog