2010-09-21 14:24:09 +00:00
|
|
|
#
|
2011-02-24 21:53:40 +00:00
|
|
|
# spec file for package perl-MediaWiki-Bot
|
2010-09-21 14:24:09 +00:00
|
|
|
#
|
2024-08-25 17:45:33 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-09-21 14:24:09 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-09-27 15:56:24 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-09-21 14:24:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-09-27 15:56:24 +00:00
|
|
|
%define cpan_name MediaWiki-Bot
|
2010-08-26 08:16:48 +00:00
|
|
|
Name: perl-MediaWiki-Bot
|
2024-08-25 17:45:33 +00:00
|
|
|
Version: 5.7.0
|
2015-04-17 17:46:17 +00:00
|
|
|
Release: 0
|
2024-08-25 17:45:33 +00:00
|
|
|
# 5.007000 -> normalize -> 5.7.0
|
|
|
|
%define cpan_version 5.007000
|
2021-09-27 15:56:24 +00:00
|
|
|
License: GPL-1.0-or-later
|
2024-08-25 17:45:33 +00:00
|
|
|
Summary: High-level bot framework for interacting with MediaWiki wikis
|
2021-09-27 15:56:24 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-08-25 17:45:33 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SE/SETH/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-17 17:46:17 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:15:24 +02:00
|
|
|
Source100: README.md
|
2010-09-21 14:24:09 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-17 17:46:17 +00:00
|
|
|
BuildRequires: perl(Constant::Generate)
|
|
|
|
BuildRequires: perl(Digest::MD5) >= 2.39
|
2010-09-21 14:24:09 +00:00
|
|
|
BuildRequires: perl(HTML::Entities) >= 3.28
|
2016-07-08 16:57:45 +00:00
|
|
|
BuildRequires: perl(LWP::Protocol::https) >= 6.06
|
2015-04-17 17:46:17 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils)
|
2024-08-25 17:45:33 +00:00
|
|
|
BuildRequires: perl(MediaWiki::API) >= 0.360
|
2010-08-26 08:16:48 +00:00
|
|
|
BuildRequires: perl(Module::Pluggable)
|
2015-04-17 17:46:17 +00:00
|
|
|
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
|
2010-09-21 14:24:09 +00:00
|
|
|
Requires: perl(HTML::Entities) >= 3.28
|
2016-07-08 16:57:45 +00:00
|
|
|
Requires: perl(LWP::Protocol::https) >= 6.06
|
2024-08-25 17:45:33 +00:00
|
|
|
Requires: perl(MediaWiki::API) >= 0.360
|
2015-04-17 17:46:17 +00:00
|
|
|
Requires: perl(Module::Pluggable)
|
2024-08-25 17:45:33 +00:00
|
|
|
Provides: perl(MediaWiki::Bot) = %{version}
|
|
|
|
Provides: perl(MediaWiki::Bot::Constants) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2015-04-17 17:46:17 +00:00
|
|
|
%{perl_requires}
|
2010-08-26 08:16:48 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-17 17:46:17 +00:00
|
|
|
*MediaWiki::Bot* is a framework that can be used to write bots which
|
2016-07-08 16:57:45 +00:00
|
|
|
interface with the MediaWiki API (http://en.wikipedia.org/w/api.php).
|
2010-08-26 08:16:48 +00:00
|
|
|
|
|
|
|
%prep
|
2024-08-25 17:45:33 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2010-08-26 08:16:48 +00:00
|
|
|
|
|
|
|
%build
|
2021-09-27 15:56:24 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make_build
|
2010-08-26 08:16:48 +00:00
|
|
|
|
|
|
|
%check
|
2021-09-27 15:56:24 +00:00
|
|
|
make test
|
2010-09-21 14:24:09 +00:00
|
|
|
|
|
|
|
%install
|
2016-07-08 16:57:45 +00:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2010-09-21 14:24:09 +00:00
|
|
|
%perl_gen_filelist
|
2010-08-26 08:16:48 +00:00
|
|
|
|
2010-09-21 14:24:09 +00:00
|
|
|
%files -f %{name}.files
|
2021-09-27 15:56:24 +00:00
|
|
|
%doc Changes CONTRIBUTING.md README README.mkdn
|
|
|
|
%license LICENSE
|
2010-08-26 08:16:48 +00:00
|
|
|
|
2010-09-21 14:24:09 +00:00
|
|
|
%changelog
|