2024-07-16 21:28:18 +00:00
committed by Git OBS Bridge
parent 006257daa9
commit 008482b5af

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Bot-BasicBot
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,30 +12,32 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-Bot-BasicBot
Version: 0.93
Release: 0
%define cpan_name Bot-BasicBot
Summary: Simple Irc Bot Baseclass
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Bot-BasicBot/
Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{version}.tar.gz
Name: perl-Bot-BasicBot
Version: 0.930.0
Release: 0
# 0.93 -> normalize -> 0.930.0
%define cpan_version 0.93
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple irc bot baseclass
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(IRC::Utils)
BuildRequires: perl(POE)
BuildRequires: perl(POE::Component::IRC) >= 6.90
BuildRequires: perl(POE::Component::IRC) >= 6.900.0
Requires: perl(IRC::Utils)
Requires: perl(POE)
Requires: perl(POE::Component::IRC) >= 6.90
Requires: perl(POE::Component::IRC) >= 6.900.0
Provides: perl(Bot::BasicBot) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -50,14 +52,14 @@ subclasses Bot::BasicBot, override various methods (documented below), then
call 'new' and 'run' on it.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -65,7 +67,6 @@ call 'new' and 'run' on it.
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes examples
%license LICENSE