Files
perl-WWW-Wikipedia/perl-WWW-Wikipedia.spec
2025-08-12 18:18:31 +02:00

75 lines
2.4 KiB
RPMSpec

#
# spec file for package perl-WWW-Wikipedia
#
# 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 WWW-Wikipedia
Name: perl-WWW-Wikipedia
Version: 2.50.0
Release: 0
# 2.05 -> normalize -> 2.50.0
%define cpan_version 2.05
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Automated interface to the Wikipedia
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BR/BRICAS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Text::Autoformat)
BuildRequires: perl(URI)
Requires: perl(LWP::Protocol::https)
Requires: perl(LWP::UserAgent)
Requires: perl(Text::Autoformat)
Requires: perl(URI)
Provides: perl(WWW::Wikipedia) = %{version}
Provides: perl(WWW::Wikipedia::Entry) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
WWW::Wikipedia provides an automated interface to the Wikipedia
http://www.wikipedia.org, which is a free, collaborative, online
encyclopedia. This module allows you to search for a topic and return the
resulting entry. It also gives you access to related topics which are also
available via the Wikipedia for that entry.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
# MANUAL no testing (need network connection)
#make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%changelog